Difference between revisions of "Template:Gallery"

From MansonWiki, the Marilyn Manson encyclopedia
Jump to: navigation, search
Line 3: Line 3:
 
| {{#forargs: | K | V |<nowiki/>
 
| {{#forargs: | K | V |<nowiki/>
 
     {{#switch: {{#var: K}}
 
     {{#switch: {{#var: K}}
 +
    | /caption =
 +
    | /heights =
 
     | /perrow =
 
     | /perrow =
 
     | /widths =
 
     | /widths =
    | /heights =
 
 
     | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
 
     | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
 
     }}
 
     }}
 
   }}
 
   }}
| widths = {{{/widths|150px}}}
+
| caption = {{{/caption|}}}
| heights = {{{/heights|200px}}}
+
 
| perrow = {{{/perrow|5}}}
 
| perrow = {{{/perrow|5}}}
 +
| heights = {{{/heights|200px}}}
 +
| widths = {{{/widths|150px}}}
 
}}
 
}}
 
</center></includeonly><noinclude>
 
</center></includeonly><noinclude>

Revision as of 14:34, 12 November 2014

Sample usage:

{{Photos
| /perrow               = 3
| /widths               = 200
| /heights              = 200
| Gloria.jpg            = Photo: Photo credit and thanks to Gloria
| Charlotte_Sumisu.jpg  = Photo: Photo credit and thanks to Charlotte Sumisu
| Charlotte_Sumisu2.jpg = Photo: Photo credit and thanks to Charlotte Sumisu
| Charlotte_Sumisu3.jpg = Photo: Photo credit and thanks to Charlotte Sumisu
| V_mera_Luna.jpg       = Photo: [https://www.facebook.com/events/177705679104830/ M'era Luna Festival]
}}