Template:TM: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m Added zero-padding for TM nomenclatures. |
||
Line 4: | Line 4: | ||
<tr style="background-color:#FFFFFF;"> | <tr style="background-color:#FFFFFF;"> | ||
<td>[[File:TM-{{#arrayindex:movetype|{{#var:iteration}}}}.png]]</td> | <td>[[File:TM-{{#arrayindex:movetype|{{#var:iteration}}}}.png]]</td> | ||
<td>TM{{#arrayindex:tm|{{#var:iteration}}}}</td> | <td>TM{{padleft:{{#arrayindex:tm|{{#var:iteration}}}}|2}}</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}}}}]]</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}}}}]]</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> |
Latest revision as of 19:18, 8 September 2023
Use this in tandem with Template:MoveTableTM to construct the move-data rows in it.