Template:MT: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
m Undo revision 28794 by Naero (talk)
Tag: Undo
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{{Move}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless,tm=TM}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}}
<tr style="background-color:#FFFFFF;">
<tr style="background-color:#FFFFFF;">
<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}}]]{{#if:{{{a|}}} | <nowiki>*</nowiki> {{#vardefine:asterisk|{{{a|}}} }}}}</span></td>
<td><span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#var:primaryType}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold; | {{#ifeq: {{#var:secondaryType}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]{{#if:{{{a|}}}|<nowiki>*</nowiki>{{#vardefine:asterisk|{{{a|}}}}}}} {{#if:{{{p|}}} | <span style="font-weight: normal;">({{{p|}}})</span>}}</span></td>
<td style="background-color: #{{{{#external_value:movetype}}_color}}; border: 2px solid #{{{{#external_value:movetype}}_color_dark}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]
<td style="background-color: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color_dark}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</span>]]</td>
</td>
<td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:category|{{#var:iteration}}}}_color_dark}};">[[{{#arrayindex:category|{{#var:iteration}}}} moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
<td style="background-color:#{{{{#external_value:category}}_color}}; border: 2px solid #{{{{#external_value:category}}_color_dark}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#if:{{#external_value:power}} | {{#external_value:power}} | — }}</td>
<td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
<td>{{#external_value:accuracy}}</td>
<td>{{#arrayindex:pp|{{#var:iteration}}}}</td>
<td>{{#external_value:pp}}</td>
</tr>
</tr>
</includeonly>
</includeonly>

Latest revision as of 17:18, 31 March 2022