Difference between revisions of "Template:Gallery"
From MansonWiki, the Marilyn Manson encyclopedia
Line 15: | Line 15: | ||
{{#tag:gallery | {{#tag:gallery | ||
| {{#forargs: | K | V |<nowiki/> | | {{#forargs: | K | V |<nowiki/> | ||
− | {{#switch | + | {{#switch: {{#var: K}} |
− | | | + | | /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 --> | ... }}