Template:GymLeaderInfo: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
</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;">

Revision as of 23:52, 10 April 2018