Template:MT: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
Properly conditionalized the STAB markup.
Tags: Manual revert Reverted
Line 2: Line 2:
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}}
<tr style="background-color:#FFFFFF;">
<tr style="background-color:#FFFFFF;">
<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><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}}}}]]{{#if:{{{a|}}}|<nowiki>*</nowiki>{{#vardefine:asterisk|{{{a|}}}}}}} {{#if:{{{p|}}} | <span style="font-weight: normal;">({{{p|}}})</span>}}</span></td>
<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 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 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:#{{{{#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>

Revision as of 17:13, 31 March 2022