Template:SpoilerGallery: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 5: Line 5:
<tr>
<tr>
{{#loop: mounts|
{{#loop: mounts|
0|
1|
{{#arraysize:pokemon}}|
{{#arraysize:pokemon}}|
{{#vardefine:vector|{{#expr:{{#var:mounts}} + 1}}}}
<td>
<td>
{{#arrayindex:pokemon|{{#var:mounts}}}}<br>
{{#arrayindex:pokemon|{{#var:vector}}}}<br>
<spoiler hide="Show Spoiler!" show="Collapse Spoiler!">[[File:{{#if:{{{Shiny|}}}|Shiny_}}{{#arrayindex:pokemon|{{#var:mounts}}}}_Mount.gif]]</spoiler></td>
<spoiler hide="Show Spoiler!" show="Collapse Spoiler!">[[File:{{#if:{{{Shiny|}}}|Shiny_}}{{#arrayindex:pokemon|{{#var:mounts}}}}_Mount.gif]]</spoiler></td>
{{#ifexpr:{{#var:mounts}} / 6 = {{#var:placeholder}} | {{#vardefine:placeholder|{{#expr:{{#var:placeholder}} + 1}}}} </tr><tr> }}
{{#ifexpr:{{#var:mounts}} / 6 = {{#var:placeholder}} | {{#vardefine:placeholder|{{#expr:{{#var:placeholder}} + 1}}}} </tr><tr> }}

Revision as of 09:02, 2 March 2017

A template used to plug in variables and output them into a collated gallery. It is currently used strictly within the purview of Pokemon mounts; however, I may parlay its scalability later to be more all-purpose in its applicative complexion.