Template:TM: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m Added zero-padding for TM nomenclatures. |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>Use this in tandem with [[Template:MoveTableTM]] to construct the move-data rows in it.</noinclude> | <noinclude>Use this in tandem with [[Template:MoveTableTM]] to construct the move-data rows in it.</noinclude> | ||
<includeonly> | <includeonly> | ||
{{# | {{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}} | ||
<tr style="background-color:#FFFFFF;"> | <tr style="background-color:#FFFFFF;"> | ||
<td>[[File:TM-{{# | <td>[[File:TM-{{#arrayindex:movetype|{{#var:iteration}}}}.png]]</td> | ||
<td>TM{{# | <td>TM{{padleft:{{#arrayindex:tm|{{#var:iteration}}}}|2}}</td> | ||
<td><span style="{{#ifeq: {{# | <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}}}}]]</span></td> | ||
<td style="background-color: #{{{{# | <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:#{{{{# | <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>{{#if:{{# | <td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td> | ||
<td>{{# | <td>{{#arrayindex:accuracy|{{#var:iteration}}}}</td> | ||
<td>{{# | <td>{{#arrayindex:pp|{{#var:iteration}}}}</td> | ||
</tr> | </tr> | ||
</includeonly> | </includeonly> |
Latest revision as of 19:18, 8 September 2023
Use this in tandem with Template:MoveTableTM to construct the move-data rows in it.