Difference between revisions of "Template:Gallery"

From MansonWiki, the Marilyn Manson encyclopedia
Jump to: navigation, search
Line 15: Line 15:
 
{{#tag:gallery
 
{{#tag:gallery
 
| {{#forargs: | K | V |<nowiki/>
 
| {{#forargs: | K | V |<nowiki/>
{{#switch: {{#len: {{#var: K}} }}
+
    {{#switch: {{#var: K}}
| 1 =
+
    | /perrow =
| Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
+
    | /widths =
}} <!-- #switch -->
+
    | /heights =
}} <!-- #forargs -->
+
    | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
 +
    }} <!-- #switch -->
 +
  }} <!-- #forargs -->
 
| widths = {{{/widths|120px}}}
 
| widths = {{{/widths|120px}}}
 
| heights = {{{/heights|170px}}}
 
| heights = {{{/heights|170px}}}

Revision as of 12:34, 6 August 2014


{{Photos
| filename1.jpg = Description 1
| filename2.jpg = <!-- just leave empty if no description -->
| filename3.jpg = Description 3
| perrow:3        <!-- three photos per row -->
| widths:100px    <!-- thumb placeholder width is 100 px -->
| heights:50px    <!-- thumb placeholder height is 50px -->
|
...
}}