Template:PTANRow: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
m Omitted the Pokemon-name row initially.
Omitted the abilities submodule initially.
 
(2 intermediate revisions 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}}}|data=name=Name,number=Pokedex Number,ab1=Ability 1}}
<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>[[{{{Ab|{{#external_value:ab1}}}}}_(ability)|{{{Ab|{{#external_value:ab1}}}}}]]</td>
<td>{{#arrayprint:abilities|,&nbsp;|ab|{{Ab|ab}}}}</td>
<td>{{{Nat|}}}</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}}}.