Difference between revisions of "Template:Gallery"

From MansonWiki, the Marilyn Manson encyclopedia
Jump to: navigation, search
m
Line 1: Line 1:
<includeonly>
+
<includeonly><center>
 
+
DEBUG PERROW: {{{/perrow|5}}}
+
 
+
<center>
+
 
{{#tag:gallery
 
{{#tag:gallery
 
| {{#forargs: | K | V |<nowiki/>
 
| {{#forargs: | K | V |<nowiki/>
 
     {{#switch: {{#var: K}}
 
     {{#switch: {{#var: K}}
     | /perrow = <!-- reserved keyword -->
+
     | /perrow =
     | /widths = <!-- reserved keyword -->
+
     | /widths =
     | /heights = <!-- reserved keyword -->
+
     | /heights =
 
     | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
 
     | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
     }} <!-- #switch -->
+
     }}
   }} <!-- #forargs -->
+
   }}
 
| widths = {{{/widths|120px}}}
 
| widths = {{{/widths|120px}}}
 
| heights = {{{/heights|170px}}}
 
| heights = {{{/heights|170px}}}
 
| perrow = {{{/perrow|5}}}
 
| perrow = {{{/perrow|5}}}
}} <!-- #tag -->
 
</center></includeonly><noinclude>
 
 
<pre><nowiki>
 
{{Photos
 
| filename1.jpg = Description 1
 
| filename2.jpg = &lt;!-- just leave empty if no description --&gt;
 
| filename3.jpg = Description 3
 
| /perrow      = 3 &lt;!-- three photos per row --&gt;
 
| /widths      = 100px &lt;!-- thumb placeholder width is 100 px --&gt;
 
| /heights      = 50px &lt;!-- thumb placeholder height is 50px --&gt;
 
|
 
...
 
 
}}
 
}}
</nowiki></pre>
+
</center></includeonly>
 
+
</noinclude>
+

Revision as of 12:39, 6 August 2014