Line 257:
Line 257:
Above syntax will return the gallery as shown below:
Above syntax will return the gallery as shown below:
<gallery mode=packed heights=200px>
<gallery mode=packed heights=200px>
−
File:Detroit Publishing Co. - A Yeoman of the Guard (N.B. actually a Yeoman Warder), full restoration.jpg|A Yeoman Warder, from a Victorian-era [[photochrom]]
+
File:Detroit Publishing Co. - A Yeoman of the Guard (N.B. actually a Yeoman Warder), full restoration.jpg|A Yeoman Warder, from a Victorian-era photochrom
File:Official_program_-_Woman_suffrage_procession_March_3,_1913_-_crop.jpg|The Official program of the 1913 Woman Suffrage Procession held in Washington, D.C.
File:Official_program_-_Woman_suffrage_procession_March_3,_1913_-_crop.jpg|The Official program of the 1913 Woman Suffrage Procession held in Washington, D.C.
−
File:Thurston, the famous magician - East Indian Rope Trick.jpg|[[Howard Thurston]] performing the [[Indian rope trick]]
+
File:Thurston, the famous magician - East Indian Rope Trick.jpg|Howard Thurston performing the Indian rope trick
−
File:Joseph Ferdinand Keppler - The Pirate Publisher - Puck Magazine - Restoration by Adam Cuerden.jpg|"The Pirate Publisher", a satire of copyright infringement from the magazine [[Puck (magazine)|Puck]].
+
File:Joseph Ferdinand Keppler - The Pirate Publisher - Puck Magazine - Restoration by Adam Cuerden.jpg|"The Pirate Publisher", a satire of copyright infringement from the magazine Puck (magazine).
</gallery>
</gallery>
+
+
To left-align the captions, specify the CSS declaration <code>text-align:left</code> in the <code>style=</code> attribute:
+
+
<source lang="xml">
+
<gallery mode=packed heights=150px style="text-align:left">
+
File:Detroit Publishing Co. - A Yeoman of the Guard (N.B. actually a Yeoman Warder), full restoration.jpg|A Yeoman Warder, from a Victorian-era photochrom
+
File:Official_program_-_Woman_suffrage_procession_March_3,_1913_-_crop.jpg|The Official program of the 1913 Woman Suffrage Procession held in Washington, D.C.
+
File:Joseph Ferdinand Keppler - The Pirate Publisher - Puck Magazine - Restoration by Adam Cuerden.jpg|"The Pirate Publisher", a satire of copyright infringement from the magazine Puck (magazine).
+
</gallery>
+
</source>
+
+
gives:
+
+
<gallery mode=packed heights=150px style="text-align:left">
+
File:Detroit Publishing Co. - A Yeoman of the Guard (N.B. actually a Yeoman Warder), full restoration.jpg|A Yeoman Warder, from a Victorian-era photochrom
+
File:Official_program_-_Woman_suffrage_procession_March_3,_1913_-_crop.jpg|The Official program of the 1913 Woman Suffrage Procession held in Washington, D.C.
+
File:Joseph Ferdinand Keppler - The Pirate Publisher - Puck Magazine - Restoration by Adam Cuerden.jpg|"The Pirate Publisher", a satire of copyright infringement from the magazine Puck (magazine).
+
</gallery>
+
Captions for the gallery can also be added with <code>caption</code> inside the <nowiki> <gallery> </nowiki> tag:
Captions for the gallery can also be added with <code>caption</code> inside the <nowiki> <gallery> </nowiki> tag:
Line 270:
Line 289:
File:Example.png|Captioned
File:Example.png|Captioned
File:Example.png|Captioned with alt text|alt=The Wikipedia logo
File:Example.png|Captioned with alt text|alt=The Wikipedia logo
−
File:Example.png|[[Help:Contents/Links|Links]] can be put in captions.
+
File:Example.png|[[TOER wiki help|Links]] can be put in captions.
−
File:Example.png|Full [[MediaWiki]] <br/>[[syntax]] may now be used...
+
File:Example.png|Full MediaWiki <br/>syntax may now be used...
</gallery>
</gallery>
</source>
</source>