Image Gallery: Difference between revisions

From UNB Archives and Special Collections
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Image galleries are an attractive way to draw in an audience and encourage browsing.
Image galleries are an attractive way to draw in an audience and encourage browsing.


To initiate an image gallery, enter the WikiTextEditor on the destination [[Entries and Pages|page]]. The function is initiated by inserting: <nowiki><gallery mode="packed-hover"></nowiki>; and ended with: <nowiki></gallery></nowiki>. In between those two commands, the image file names must be placed - each should be placed on its own line. A [[Mark-up Language|pipe]] is used to separate the image title from the caption, which should be a link to the entry associated with that image.
To initiate an image gallery, enter the WikiTextEditor on the [[Entries and Pages|destination page]]. The function is initiated by inserting: <nowiki><gallery mode="packed-hover"></nowiki>; and ended with: <nowiki></gallery></nowiki>. In between those two commands, the image file names must be placed - each should be placed on its own line. A [[Mark-up Language|pipe]] is used to separate the image title from the caption, which should be [[Linking|a link]] to the entry associated with that image.


<br/>'''Example:'''
*'''packed-hover''' is the style of gallery that presents most attractively and should be used.
<br/><nowiki><gallery mode="packed-hover"></nowiki>
<br/><nowiki>File:Image1.jpg|[[Entry 1]]</nowiki>
<br/><nowiki>File:Image2.jpg|[[Entry 2]]</nowiki>
<br/><nowiki></gallery></nowiki>


<br/>'''Example:'''<br/><nowiki><gallery mode="packed-hover"></nowiki><br/><nowiki>File:Image1.jpg|[[Entry 1]]</nowiki><br/><nowiki>File:Image2.jpg|[[Entry 2]]</nowiki><br/>etc.<br/><nowiki></gallery></nowiki>


*'''packed-hover''' is the style of gallery that presents most attractively and should be used.
Image titles can be found at the top of an [[Image Pages|image page]]. As you will likely be making a gallery of entries that have already been finished, it should be easy enough to—from the selected entry—click the image to be brought to the image page, copy the image title from the top of that page, paste in to the correct location (on the destination page of the gallery), go back to the entry associated with the image and copy that title to create a link to the entry; repeating as many times as images and entries that you'd like to include. Voilà, a gallery!
 
<br/>

Latest revision as of 09:46, 8 August 2014

Image galleries are an attractive way to draw in an audience and encourage browsing.

To initiate an image gallery, enter the WikiTextEditor on the destination page. The function is initiated by inserting: <gallery mode="packed-hover">; and ended with: </gallery>. In between those two commands, the image file names must be placed - each should be placed on its own line. A pipe is used to separate the image title from the caption, which should be a link to the entry associated with that image.

  • packed-hover is the style of gallery that presents most attractively and should be used.


Example:
<gallery mode="packed-hover">
File:Image1.jpg|[[Entry 1]]
File:Image2.jpg|[[Entry 2]]
etc.
</gallery>

Image titles can be found at the top of an image page. As you will likely be making a gallery of entries that have already been finished, it should be easy enough to—from the selected entry—click the image to be brought to the image page, copy the image title from the top of that page, paste in to the correct location (on the destination page of the gallery), go back to the entry associated with the image and copy that title to create a link to the entry; repeating as many times as images and entries that you'd like to include. Voilà, a gallery!