Difference between revisions of "Template:Photos"

From MansunWiki
Jump to: navigation, search
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><center>
+
<includeonly>{{#if: {{{/source|}}} | :Source: {{{/source}}} }}
{{#tag:image
+
<center>
 +
{{#tag:gallery
 
| {{#forargs: | K | V |<nowiki/>
 
| {{#forargs: | K | V |<nowiki/>
 
     {{#switch: {{#var: K}}
 
     {{#switch: {{#var: K}}
 
     | /caption =
 
     | /caption =
     | /heights =
+
     | /source =
     | /perrow =
+
     | File:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
    | /widths =
+
    | Image:{{#var: K}} {{!}} <center>'' {{#var: V}} ''</center>
+
 
     }}
 
     }}
 
   }}
 
   }}
| mode = packed
+
| mode = overlay
 
| caption = {{{/caption|}}}
 
| caption = {{{/caption|}}}
| perrow = {{{/perrow|5}}}
+
| heights = 200px
| heights = {{{/heights|200px}}}
+
| widths = 150px
| widths = {{{/widths|150px}}}
+
 
}}
 
}}
 
</center></includeonly><noinclude>
 
</center></includeonly><noinclude>
 
Sample usage:
 
Sample usage:
 
+
[[Category:Broken templates]]
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Photos
 
{{Photos
 
| /caption              = Some photos
 
| /caption              = Some photos
| /perrow               = 3
+
| /source               = Source description
 
| /widths              = 200
 
| /widths              = 200
 
| /heights              = 200
 
| /heights              = 200
Line 30: Line 28:
 
| Charlotte_Sumisu3.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]
 
| V_mera_Luna.jpg      = Photo: [https://www.facebook.com/events/177705679104830/ M'era Luna Festival]
 +
| PACKED MODE DOES NOT WORK
 
}}
 
}}
</nowiki></pre>
+
</nowiki></pre></noinclude>
[[Category:Templates]]</noinclude>
+

Latest revision as of 23:24, 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]
| PACKED MODE DOES NOT WORK
}}