| Line 243: |
Line 243: |
| | | | |
| | ===Inserting Gallery=== | | ===Inserting Gallery=== |
| − | When more two or more images needs to shown in a wikipage, it is recemonded to use Gallery feature in a wiki. This can be using <nowiki><gallery></nowiki> tag in the source editor. Please follow below steps to do that - | + | When more two or more images needs to shown in a wikipage, it is recommended to use Gallery feature in a wiki. This can be using <nowiki><gallery></nowiki> tag in the source editor. Please follow below steps to do that - |
| | # Click on Edit source of the page or section where the gallery needs to be inserted. | | # Click on Edit source of the page or section where the gallery needs to be inserted. |
| | # Insert the Filenames the images you want withing the <nowiki><gallery></nowiki> as shown below: | | # Insert the Filenames the images you want withing the <nowiki><gallery></nowiki> as shown below: |
| | <source lang="xml"> | | <source lang="xml"> |
| − | <gallery mode=packed> | + | <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. |
| Line 254: |
Line 254: |
| | </gallery> | | </gallery> |
| | </source> | | </source> |
| − | # 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]] |
| Line 261: |
Line 262: |
| | 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)|Puck]]. |
| | </gallery> | | </gallery> |
| | + | |
| | + | Captions for the gallery can also be added with <code>caption</code> inside the <code><gallery></code> tag: |
| | + | |
| | + | <source lang="xml"> |
| | + | <gallery caption="Sample gallery" widths="180px" heights="120px" > |
| | + | File:Wiki.png |
| | + | File:Wiki.png|Captioned |
| | + | File:Wiki.png|Captioned with alt text|alt=The Wikipedia logo |
| | + | File:Wiki.png|[[Help:Contents/Links|Links]] can be put in captions. |
| | + | File:Wiki.png|Full [[MediaWiki]] <br/>[[syntax]] may now be used... |
| | + | </gallery> |
| | + | </source> |
| | + | |
| | + | Which produces: |
| | + | |
| | + | <gallery caption="Sample gallery" widths="180px" heights="120px" > |
| | + | File:Wiki.png |
| | + | File:Wiki.png|Captioned |
| | + | File:Wiki.png|Captioned with alt text|alt=The Wikipedia logo |
| | + | File:Wiki.png|[[Help:Contents/Links|Links]] can be put in captions. |
| | + | File:Wiki.png|Full [[MediaWiki]] <br/>[[syntax]] may now be used... |
| | + | </gallery> |
| | + | |
| | + | Complete reference for all the available modes and options can be seen here - https://en.wikipedia.org/wiki/Help:Gallery_tag |
| | | | |
| | ==Math Formula== | | ==Math Formula== |