Jump to content

Template:PTANRow: Difference between revisions

From Pokémon Revolution Online Wiki
Augmented the Ab parameter to expand the argument's cardinality.
Omitted the abilities submodule initially.
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>Use this in tandem with [[Template:PokemonTableAbNat]] to construct the tabular contents in it. The parameters are {{{Ab}}} (defaults to Ability 1) and {{{Nat}}}.</noinclude>
<noinclude>Use this in tandem with [[Template:PokemonTableAbNat]] to construct the tabular contents in it. The parameters are {{{Ab}}} (defaults to Ability 1) and {{{Nat}}}.</noinclude>
<includeonly>
<includeonly>{{#vardefine:PokemonNo|{{PokemonNo|{{{Pokemon}}}}}}}{{#arraydefine:abilities|{{{Ab|}}}|,}}
{{#get_web_data:url=http://wiki.pokemonrevolution.net/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{{Pokemon|Barboach}}}|data=name=Name,number=Pokedex Number}}{{#arraydefine:abilities|{{{Ab|}}}|,}}
<tr style="background-color:#FFFFFF; color:#000000;">
<tr style="background-color:#FFFFFF; color:#000000;">
<td>#{{padleft:{{#external_value:number}}|3}}</td>
<td>#{{padleft:{{#var:PokemonNo}}|3}}</td>
<td>[[File:{{#external_value:number}}Icon.png]]</td>
<td>[[File:{{#var:PokemonNo}}Icon.png]]</td>
<td>[[{{#external_value:name}}]]</td>
<td>[[{{{Pokemon}}}]]</td>
<td>{{#arrayprint:abilities|,&nbsp;|ab|{{Ab|ab}}}}</td>
<td>{{#arrayprint:abilities|,&nbsp;|ab|{{Ab|ab}}}}</td>
<td>{{{Nat|Jolly, Naive, Adamant, Hasty}}}</td>
<td>{{{Nat|Jolly, Naive, Adamant, Hasty}}}</td>
</tr>
</tr>
</includeonly>
</includeonly>

Latest revision as of 18:34, 26 September 2023

Use this in tandem with Template:PokemonTableAbNat to construct the tabular contents in it. The parameters are {{{Ab}}} (defaults to Ability 1) and {{{Nat}}}.