Template:SpoilerGallery: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Used the wrong operand for row-offsettings. >.<
No edit summary
Line 10: Line 10:
<td>
<td>
{{#arrayindex:pokemon|{{#var:mounts}}}}<br>
{{#arrayindex:pokemon|{{#var:mounts}}}}<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:vector}}}}_Mount.gif]]</spoiler></td>
{{#ifexpr:{{#var:vector}} / 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> }}
}}
}}
</tr>
</tr>
</table>
</table>
</includeonly>
</includeonly>

Revision as of 01:03, 10 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.