Template:OverworldPokemon: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
Cae (talk | contribs)
mNo edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 2: Line 2:


It accepts two arguments: {{{Pokemon}}} for the Pokemon's name, and {{{Moves}}} for their moveset.</noinclude>
It accepts two arguments: {{{Pokemon}}} for the Pokemon's name, and {{{Moves}}} for their moveset.</noinclude>
<includeonly>{{#get_web_data:url=https://prowiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{{Pokemon}}}|data=name=Name,number=Pokedex Number,type1=Type1,type2=Type2}}
<includeonly>{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{{Pokemon}}}|data=name=Name,number=Pokedex Number,type1=Type1,type2=Type2}}
{{#if:{{{Theme|}}}|{{#vardefine:border|#{{{{{Theme}}}_color_dark}}}}{{#vardefine:background|#{{{{{Theme}}}_color}}}}{{#vardefine:cell|#{{{{{Theme}}}_color_light}}}}}}
{{#if:{{{Theme|}}}|{{#vardefine:border|#{{{{{Theme}}}_color_dark}}}}{{#vardefine:background|#{{{{{Theme}}}_color}}}}{{#vardefine:cell|#{{{{{Theme}}}_color_light}}}}}}
<table style="width: 66%; padding: 4px; text-align: center;">
<table style="width: 66%; padding: 4px; text-align: center;">
Line 15: Line 15:
<table class="collapsible collapsed" style="width: 100%; text-align: center; padding: 4px;">
<table class="collapsible collapsed" style="width: 100%; text-align: center; padding: 4px;">
<tr style="background-color: {{#var:cell}}; color:{{#var:border}};">
<tr style="background-color: {{#var:cell}}; color:{{#var:border}};">
<th style="border-radius: 15px 1px 1px 1px; border: 1px solid {{#var:border}};">Move</th><th style="border: 1px solid {{#var:border}};">Type</th><th style="border: 1px solid {{#var:border}};">Category</th><th style="border: 1px solid {{#var:border}};>Base Power</th><th style="border-radius: 1px 15px 1px 1px; border: 1px solid {{#var:border}};">Accuracy</th>
<th style="border: 1px solid {{#var:border}};">Move</th><th style="border: 1px solid {{#var:border}};">Type</th><th style="border: 1px solid {{#var:border}};">Category</th><th style="border: 1px solid {{#var:border}};>Base Power</th><th style="border: 1px solid {{#var:border}};">Accuracy</th>
</tr>
</tr>
{{#arraydefine:moves|{{{Moves}}}}}
{{#if:{{{Moves|}}}|{{#arraydefine:moves|{{{Moves}}}}}
{{#loop:vector|
{{#loop:vector|
0|
0|
4|
{{#arraysize:moves}}|
<tr style="background-color:#FFFFFF; color:#000000;">
<tr style="background-color:#FFFFFF; color:#000000;">
{{#get_web_data:url=https://prowiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves|{{#var:vector}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}}
{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves|{{#var:vector}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}}
<td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td>
<td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td>
<td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
<td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
Line 29: Line 29:
<td>{{#external_value:accuracy}}</td>
<td>{{#external_value:accuracy}}</td>
</tr>
</tr>
}}
}}}}
</table>
</table>
</td>
</td>
</tr>
</tr>
</table></td></table></includeonly>
</table></td></table></includeonly>

Latest revision as of 16:38, 28 August 2025

To be used for battlable overworld-interactable Pokémon—usually Legendary Pokémon—on area pages.

It accepts two arguments: {{{Pokemon}}} for the Pokemon's name, and {{{Moves}}} for their moveset.