Difference between revisions of "Template:Gallery"

From MansonWiki, the Marilyn Manson encyclopedia
Jump to: navigation, search
m (Scarshock moved page Template:Photos to Template:Gallery without leaving a redirect)
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><center class="x-debug">
+
<includeonly><center>
 
{{#tag:gallery
 
{{#tag:gallery
 
| {{#forargs: | K | V |<nowiki/>
 
| {{#forargs: | K | V |<nowiki/>
 
     {{#switch: {{#var: K}}
 
     {{#switch: {{#var: K}}
 +
    | /class =
 +
    | /caption =
 +
    | /heights =
 +
    | /mode =
 
     | /perrow =
 
     | /perrow =
 
     | /widths =
 
     | /widths =
    | /heights =
+
     | Image:{{#var: K}} {{!}} <center>{{#var: V}}</center>
     | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
+
 
     }}
 
     }}
 
   }}
 
   }}
| widths = {{{/widths|150px}}}
+
| mode = {{{/mode|packed}}}
| heights = {{{/heights|200px}}}
+
| class = decreaseCaptions {{{/class|}}}
 +
| caption = {{{/caption|}}}
 
| perrow = {{{/perrow|5}}}
 
| perrow = {{{/perrow|5}}}
 +
| heights = {{{/heights|200px}}}
 +
| widths = {{{/widths|150px}}}
 
}}
 
}}
 
</center></includeonly><noinclude>
 
</center></includeonly><noinclude>
Line 18: Line 24:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Photos
 
{{Photos
 +
| /class                = bold-first-line
 +
| /caption              = Some photos
 +
| /mode                = packed
 
| /perrow              = 3
 
| /perrow              = 3
 
| /widths              = 200
 
| /widths              = 200
Line 27: Line 36:
 
| V_mera_Luna.jpg      = Photo: [https://www.facebook.com/events/177705679104830/ M'era Luna Festival]
 
| V_mera_Luna.jpg      = Photo: [https://www.facebook.com/events/177705679104830/ M'era Luna Festival]
 
}}
 
}}
</nowiki></pre>
+
</nowiki></pre></noinclude>
[[Category:Templates]]</noinclude>
+

Latest revision as of 13:10, 8 February 2024

Sample usage:

{{Photos
| /class                = bold-first-line
| /caption              = Some photos
| /mode                 = packed
| /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]
}}