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
 
(16 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 5: Line 5:
<tr>
<tr>
<td colspan="2" style="border-radius: 25px; padding: 3px;">[[File:{{{Leader}}}.png]]</td></tr>
<td colspan="2" style="border-radius: 25px; padding: 3px;">[[File:{{{Leader}}}.png]]</td></tr>
<tr><td>[[File:{{{Badge}}}_Badge_Icon.png]]</td><td style="color: {{#var:border}}; font-weight: bold;">{{{Leader}}}</td></tr>
<tr><td>[[File:{{{Badge}}}_Badge_Icon.png]]</td><td style="color: {{#var:border}}; font-weight: bold;">{{{Leader}}}</td></tr></table></th></tr><tr><td><table style="background-color: {{#var:cell}}; border-radius: 25px; border: 3px solid {{#var:border}}; width: 100%; padding: 5px; border-spacing: 5px;"><tr style="color: {{#var:cell}}; font-weight: bold; background-color: {{#var:border}};"><td style="border-radius: 25px; width: 33%;">Type
</table>
</th></tr>
<tr><td>
<table style="background-color: {{#var:cell}}; border-radius: 25px; border: 3px solid {{#var:border}}; width: 100%; padding: 5px; border-spacing: 8px;">
<tr style="color: {{#var:cell}}; font-weight: bold; background-color: {{#var:border}};"><td style="border-radius: 25px; width: 33%;">Type
</td><td style="border-radius: 25px; width: 33%;">Town</td><td style="border-radius: 25px; width: 33%;">Badge</td></tr>
</td><td style="border-radius: 25px; width: 33%;">Town</td><td style="border-radius: 25px; width: 33%;">Badge</td></tr>
<tr style="background-color: #FFFFFF;"><td style="border-radius: 25px;>[[{{{Type}}} (type)|{{{Type}}}]]</td><td style="border-radius: 25px;>[[{{{Town}}}]]</td><td style="border-radius: 25px;">{{{Badge}}} Badge</td></tr>
<tr style="background-color: #FFFFFF;"><td style="border-radius: 25px;>[[{{{Type}}} (type)|{{{Type}}}]]</td><td style="border-radius: 25px;>[[{{{Town}}}]]</td><td style="border-radius: 25px;">{{{Badge}}} Badge</td></tr>
</table></td></tr><tr><td colspan="3"><table class="collapsible collapsed" style="width: 100%; padding: 5px; text-align: center;">
</table></td></tr><tr><td colspan="3"><table class="collapsible collapsed" style="width: 100%; padding: 5px; text-align: center;"><tr><th style="color: {{#var:border}}; background-color: {{#var:cell}}; border: 3px solid {{#var:border}}; border-radius: 25px;">Pokémon Lineup</th></tr>{{#arraydefine:lineup|{{{Lineup}}}}}{{#arraydefine:mega|{{{Mega|0,0,0,0,0,0}}}}}
<tr><th style="color: {{#var:border}}; background-color: {{#var:cell}}; border: 3px solid {{#var:border}}; border-radius: 25px;">Pokémon Lineup</th></tr>
{{#arraydefine:lineup|{{{Lineup}}}}}
{{#arraydefine:mega|{{{Mega|0,0,0,0,0,0}}}}}
{{#loop:pokelineup|
{{#loop:pokelineup|
0|
0|
Line 22: 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;">
<table width="100%" style="text-align: center; padding: 5px;">
<table width="100%" style="text-align: center; padding: 5px;">
<tr>
<tr>
<td colspan="5"><div style="background-color:#{{{{#external_value:type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">{{#if:{{{Sprite{{#var:pokelineup}}|}}}|[[File:{{{Sprite{{#var:pokelineup}}}}}.png|50px]] | [[File:{{#ifexpr:{{#arrayindex:mega|{{#var:pokelineup}}}} > 0|Mega_}}{{#external_value:name}}_Front_Sprite.png|50px]]}}<div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:type1}}_color_dark}}; padding: 3px; margin: auto auto; margin-top: 5px; width: 45%;">{{#ifexpr:{{#arrayindex:mega|{{#var:pokelineup}}}} > 0|Mega}} [[{{#external_value:name}}]]</div></div></td>
<td colspan="5"><div style="background-color:#{{{{#external_value:type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">{{#if:{{{Sprite{{#var:pokelineup}}|}}}|[[File:{{{Sprite{{#var:pokelineup}}}}}.png]] | [[File:{{#ifexpr:{{#arrayindex:mega|{{#var:pokelineup}}}} > 0|Mega_}}{{#external_value:name}}_Front_Sprite.png]]}}<div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:type1}}_color_dark}}; padding: 3px; margin: auto auto; margin-top: 5px; width: 45%;">{{#ifexpr:{{#arrayindex:mega|{{#var:pokelineup}}}} > 0|Mega}} [[{{#external_value:name}}]]</div></div></td>
</tr>
</tr>
<tr>
<tr>
Line 33: 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 style="background-color:#FFFFFF; color:#000000;">
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|0}}}}}}}}
<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: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</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:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
<tr style="background-color:#FFFFFF; color:#000000;">
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|1}}}}}}}}
<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: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</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:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
<tr style="background-color:#FFFFFF; color:#000000;">
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|2}}}}}}}}
<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: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</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:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
</tr>
{{#loop:vector|
0|
4|
<tr style="background-color:#FFFFFF; color:#000000;">
<tr style="background-color:#FFFFFF; color:#000000;">
{{#get_web_data:url=http://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}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{#arrayindex:moves|3}}}}}}}}
<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: {{#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}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</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}}_color}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</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}} | {{#external_value:power}} | — }}</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#external_value:accuracy}}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
</tr>
}}
</table>
</table>
</td>
</td>

Latest revision as of 15:03, 28 August 2025