Template:SpoilerGallery: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<noinclude>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 par..."
 
m Not an ideal template, but I've made a necessary modification for special-counterpart nameframes.
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>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.</noinclude>
<noinclude>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.</noinclude>
<includeonly>{{#arraydefine:pokemon|{{{Items}}}}}
<includeonly>{{#arraydefine:pokemon|{{{Items}}}}}
<table style="text-align: centerl">
<table style="text-align: center;">
{{#vardefine:placeholder|1}}
{{#vardefine:placeholder|1}}
<tr>
<tr>
{{#loop: mounts|
{{#loop: mounts|
0|
1|
{{#arraysize:pokemon}}|
{{#arraysize:pokemon}}|
{{#vardefine:vector|{{#expr:{{#var:mounts}} - 1}}}}
<td>
<td>
{{#arrayindex:pokemon|{{#var:mounts}}}} Mount<br>
{{#arrayindex:pokemon|{{#var:vector}}}}<br>
<spoiler hide="Show Spoiler!" show="Collapse Spoiler!">[[File:{{#arrayindex:pokemon|{{#if:{{{Shiny|}}}|Shiny_}}{{#var:mounts}}}}_Mount.gif]]</spoiler></td>
<spoiler hide="Show Spoiler!" show="Collapse Spoiler!">[[File:{{#if:{{{Form|}}}|{{{Form}}}_}}{{#arrayindex:pokemon|{{#var:vector}}}}_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> }}
}}
}}
</tr>
</tr>
</table>
</table>
{{#var:placeholder}}</includeonly>
</includeonly>

Latest revision as of 23:51, 23 January 2023

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.