Difference between revisions of "Template:Photos"

From MansunWiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<includeonly><center>
+
<includeonly>{{#if: {{{/source|}}} | :Source: {{{/source}}} }}
 +
<center>
 
{{#tag:gallery
 
{{#tag:gallery
 
| {{#forargs: | K | V |<nowiki/>
 
| {{#forargs: | K | V |<nowiki/>
 
     {{#switch: {{#var: K}}
 
     {{#switch: {{#var: K}}
 
     | /caption =
 
     | /caption =
     | /heights =
+
     | /source =
    | /perrow =
+
    | /widths =
+
 
     | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
 
     | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
 
     }}
 
     }}
 
   }}
 
   }}
| mode = packed-hover
+
| mode = packed
 
| caption = {{{/caption|}}}
 
| caption = {{{/caption|}}}
| perrow = {{{/perrow|5}}}
+
| heights = 200px
| heights = {{{/heights|200px}}}
+
| widths = 150px
| widths = {{{/widths|150px}}}
+
 
}}
 
}}
 
</center></includeonly><noinclude>
 
</center></includeonly><noinclude>
Line 22: Line 20:
 
{{Photos
 
{{Photos
 
| /caption              = Some photos
 
| /caption              = Some photos
| /perrow               = 3
+
| /source               = Source description
 
| /widths              = 200
 
| /widths              = 200
 
| /heights              = 200
 
| /heights              = 200
Line 31: Line 29:
 
| 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>
+

Revision as of 21:20, 2 September 2015

Sample usage:

{{Photos
| /caption              = Some photos
| /source               = Source description
| /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]
}}