Template:GymLeaderInfo: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
Cae (talk | contribs)
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:border|#{{{{{Type|Normal}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}
<includeonly>{{#if:{{#var:moveArray}}||{{MoveArray}}{{#vardefine:moveArray|1}}}}{{#vardefine:border|#{{{{{Type|Normal}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}
<table style="width: 69%; border: 5px solid {{#var:border}}; border-radius: 25px; background-color:{{#var:background}}; text-align: center; padding: 5px;">
<table style="width: 69%; border: 5px solid {{#var:border}}; border-radius: 25px; background-color:{{#var:background}}; text-align: center; padding: 5px;">
<tr style="background-color:{{#var:cell}}; color:{{#var:border}};"><th colspan="2" style="border-radius: 25px; border: 3px solid {{#var:border}};">
<tr style="background-color:{{#var:cell}}; color:{{#var:border}};"><th colspan="2" style="border-radius: 25px; border: 3px solid {{#var:border}};">
Line 14: Line 14:
{{#if:{{#arrayindex:lineup|{{#var:pokelineup}}}} |  
{{#if:{{#arrayindex:lineup|{{#var:pokelineup}}}} |  
{{#arraydefine:moves|{{{Moves{{#var:pokelineup}}}}}}}
{{#arraydefine:moves|{{{Moves{{#var:pokelineup}}}}}}}
{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/{{#ifexpr:{{#arrayindex:mega|{{#var:pokelineup}}}} > 0|RawMegaPokemonList|PokemonRawList}}|format=CSV with header|filters=Name={{#arrayindex:lineup|{{#var:pokelineup}}}}|data=name=Name,number=Pokedex Number,type1=Type1,type2=Type2}}
{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/{{#ifexpr:{{#arrayindex:mega|{{#var:pokelineup}}}} > 0|RawMegaPokemonList|PokemonRawList}}|format=CSV with header|filters=Name={{#arrayindex:lineup|{{#var:pokelineup}}}}|data=name=Name,number=Pokedex Number,type1=Type1,type2=Type2}}
<tr>
<tr>
<td style="background-color:{{#var:border}}; border-radius: 25px; padding: 5px;">
<td style="background-color:{{#var:border}}; border-radius: 25px; padding: 5px;">
Line 25: Line 25:
<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;">Move</th><th>Type</th><th>Category</th><th>Base Power</th><th style="border-radius: 1px 15px 1px 1px;">Accuracy</th>
<th>Move</th><th>Type</th><th>Category</th><th>Base Power</th><th>Accuracy</th>
</tr>
</tr>
<tr style="background-color:#FFFFFF; color:#000000;">
<tr style="background-color:#FFFFFF; color:#000000;">
{{#iferror:{{#external_value:technique-{{#arrayindex:moves|0}}}}|{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves|0}}|data=technique-{{#arrayindex:moves|0}}=Name,movetype-{{#arrayindex:moves|0}}=Type,category-{{#arrayindex:moves|0}}=Category,power-{{#arrayindex:moves|0}}=Power,accuracy-{{#arrayindex:moves|0}}=Accuracy,broken-{{#arrayindex:moves|0}}=Broken,typeless-{{#arrayindex:moves|0}}=Typeless}}|}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|0}}}}}}}}
<td><span style="{{#ifeq: {{#external_value:category-{{#arrayindex:moves|0}}}} | Status | | {{#ifeq:{{#external_value:typeless-{{#arrayindex:moves|0}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype-{{#arrayindex:moves|0}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype-{{#arrayindex:moves|0}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#external_value:broken-{{#arrayindex:moves|0}}}} | Y | font-style: italic;}}">[[{{#external_value:technique-{{#arrayindex:moves|0}}}}]]</span></td>
<td><span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</span></td>
<td style="background-color: #{{{{#external_value:movetype-{{#arrayindex:moves|0}}}}_color}};">[[{{#external_value:movetype-{{#arrayindex:moves|0}}}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype-{{#arrayindex:moves|0}}}}</span>]]</td>
<td style="background-color: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</span>]]</td>
<td style="background-color:#{{{{#external_value:category-{{#arrayindex:moves|0}}}}_color}};">[[{{#external_value:category-{{#arrayindex:moves|0}}}} Moves|<span style="color:#FFFFFF;">{{#external_value:category-{{#arrayindex:moves|0}}}}</span>]]</td>
<td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}};">[[{{#arrayindex:category|{{#var:iteration}}}} Moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
<td>{{#if:{{#external_value:power-{{#arrayindex:moves|0}}}} | {{#external_value:power-{{#arrayindex:moves|0}}}} | — }}</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#external_value:accuracy-{{#arrayindex:moves|0}}}}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
</tr>
<tr style="background-color:#FFFFFF; color:#000000;">
<tr style="background-color:#FFFFFF; color:#000000;">
{{#iferror:{{#external_value:technique-{{#arrayindex:moves|1}}}}|{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves|1}}|data=technique-{{#arrayindex:moves|1}}=Name,movetype-{{#arrayindex:moves|1}}=Type,category-{{#arrayindex:moves|1}}=Category,power-{{#arrayindex:moves|1}}=Power,accuracy-{{#arrayindex:moves|1}}=Accuracy,broken-{{#arrayindex:moves|1}}=Broken,typeless-{{#arrayindex:moves|1}}=Typeless}}|}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|1}}}}}}}}
<td><span style="{{#ifeq: {{#external_value:category-{{#arrayindex:moves|1}}}} | Status | | {{#ifeq:{{#external_value:typeless-{{#arrayindex:moves|1}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype-{{#arrayindex:moves|1}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype-{{#arrayindex:moves|1}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#external_value:broken-{{#arrayindex:moves|1}}}} | Y | font-style: italic;}}">[[{{#external_value:technique-{{#arrayindex:moves|1}}}}]]</span></td>
<td><span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</span></td>
<td style="background-color: #{{{{#external_value:movetype-{{#arrayindex:moves|1}}}}_color}};">[[{{#external_value:movetype-{{#arrayindex:moves|1}}}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype-{{#arrayindex:moves|1}}}}</span>]]</td>
<td style="background-color: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</span>]]</td>
<td style="background-color:#{{{{#external_value:category-{{#arrayindex:moves|1}}}}_color}};">[[{{#external_value:category-{{#arrayindex:moves|1}}}} Moves|<span style="color:#FFFFFF;">{{#external_value:category-{{#arrayindex:moves|1}}}}</span>]]</td>
<td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}};">[[{{#arrayindex:category|{{#var:iteration}}}} Moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
<td>{{#if:{{#external_value:power-{{#arrayindex:moves|1}}}} | {{#external_value:power-{{#arrayindex:moves|1}}}} | — }}</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#external_value:accuracy-{{#arrayindex:moves|1}}}}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
</tr>
<tr style="background-color:#FFFFFF; color:#000000;">
<tr style="background-color:#FFFFFF; color:#000000;">
{{#iferror:{{#external_value:technique-{{#arrayindex:moves|2}}}}|{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves|2}}|data=technique-{{#arrayindex:moves|2}}=Name,movetype-{{#arrayindex:moves|2}}=Type,category-{{#arrayindex:moves|2}}=Category,power-{{#arrayindex:moves|2}}=Power,accuracy-{{#arrayindex:moves|2}}=Accuracy,broken-{{#arrayindex:moves|2}}=Broken,typeless-{{#arrayindex:moves|2}}=Typeless}}|}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|2}}}}}}}}
<td><span style="{{#ifeq: {{#external_value:category-{{#arrayindex:moves|2}}}} | Status | | {{#ifeq:{{#external_value:typeless-{{#arrayindex:moves|2}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype-{{#arrayindex:moves|2}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype-{{#arrayindex:moves|2}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#external_value:broken-{{#arrayindex:moves|2}}}} | Y | font-style: italic;}}">[[{{#external_value:technique-{{#arrayindex:moves|2}}}}]]</span></td>
<td><span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</span></td>
<td style="background-color: #{{{{#external_value:movetype-{{#arrayindex:moves|2}}}}_color}};">[[{{#external_value:movetype-{{#arrayindex:moves|2}}}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype-{{#arrayindex:moves|2}}}}</span>]]</td>
<td style="background-color: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</span>]]</td>
<td style="background-color:#{{{{#external_value:category-{{#arrayindex:moves|2}}}}_color}};">[[{{#external_value:category-{{#arrayindex:moves|2}}}} Moves|<span style="color:#FFFFFF;">{{#external_value:category-{{#arrayindex:moves|2}}}}</span>]]</td>
<td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}};">[[{{#arrayindex:category|{{#var:iteration}}}} Moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
<td>{{#if:{{#external_value:power-{{#arrayindex:moves|2}}}} | {{#external_value:power-{{#arrayindex:moves|2}}}} | — }}</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#external_value:accuracy-{{#arrayindex:moves|2}}}}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
</tr>
<tr style="background-color:#FFFFFF; color:#000000;">
<tr style="background-color:#FFFFFF; color:#000000;">
{{#iferror:{{#external_value:technique-{{#arrayindex:moves|3}}}}|{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves|3}}|data=technique-{{#arrayindex:moves|3}}=Name,movetype-{{#arrayindex:moves|3}}=Type,category-{{#arrayindex:moves|3}}=Category,power-{{#arrayindex:moves|3}}=Power,accuracy-{{#arrayindex:moves|3}}=Accuracy,broken-{{#arrayindex:moves|3}}=Broken,typeless-{{#arrayindex:moves|3}}=Typeless}}|}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|3}}}}}}}}
<td><span style="{{#ifeq: {{#external_value:category-{{#arrayindex:moves|3}}}} | Status | | {{#ifeq:{{#external_value:typeless-{{#arrayindex:moves|3}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype-{{#arrayindex:moves|3}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype-{{#arrayindex:moves|3}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#external_value:broken-{{#arrayindex:moves|3}}}} | Y | font-style: italic;}}">[[{{#external_value:technique-{{#arrayindex:moves|3}}}}]]</span></td>
<td><span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</span></td>
<td style="background-color: #{{{{#external_value:movetype-{{#arrayindex:moves|3}}}}_color}};">[[{{#external_value:movetype-{{#arrayindex:moves|3}}}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype-{{#arrayindex:moves|3}}}}</span>]]</td>
<td style="background-color: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</span>]]</td>
<td style="background-color:#{{{{#external_value:category-{{#arrayindex:moves|3}}}}_color}};">[[{{#external_value:category-{{#arrayindex:moves|3}}}} Moves|<span style="color:#FFFFFF;">{{#external_value:category-{{#arrayindex:moves|3}}}}</span>]]</td>
<td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}};">[[{{#arrayindex:category|{{#var:iteration}}}} Moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
<td>{{#if:{{#external_value:power-{{#arrayindex:moves|3}}}} | {{#external_value:power-{{#arrayindex:moves|3}}}} | — }}</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#external_value:accuracy-{{#arrayindex:moves|3}}}}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
</tr>
</table>
</table>

Latest revision as of 15:03, 28 August 2025