Template:PKM: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Revamped the template in accordance to the intra-transclusionary method that I have just devised for optimizational purposes; will test it out, momentarily. |
||
Line 1: | Line 1: | ||
<noinclude>Use this in tandem with [[Template:MoveLevelUpTable]] to construct the move-data rows in it.</noinclude> | <noinclude>Use this in tandem with [[Template:MoveLevelUpTable]] to construct the move-data rows in it.</noinclude> | ||
<includeonly> | <includeonly> | ||
<tr style="background-color:#FFFFFF;"> | <tr style="background-color:#FFFFFF;"> | ||
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Name}}}}}}}}} | |||
<td>{{#arrayindex:name|{{#var:iteration}}}}</td> | |||
<td>{{# | <td>[[File:{{#arrayindex:number|{{#var:iteration}}}}Icon.png]]</td> | ||
<td>[[File:{{# | <td><span style="{{#ifeq: {{#var:stab}} | 1 | {{#ifeq:{{#arrayindex:type1|{{#var:iteration}}}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#arrayindex:type2|{{#var:iteration}}}} | {{#external_value:movetype}} | font-weight: bold;}} }} }}">[[{{{Name}}}]]</span></td> | ||
<td><span style="{{#ifeq: {{#var:stab}} | 1 | {{#ifeq:{{# | <td style="background-color: #{{{{#arrayindex:type1|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:type1|{{#var:iteration}}}}_color_dark}};">[[{{#arrayindex:type1|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:type1|{{#var:iteration}}}}</span>]]</td> | ||
<td style="background-color: #{{{{# | <td style="background-color: #{{{{#arrayindex:type2|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:type2|{{#var:iteration}}}}_color_dark}};">[[{{#arrayindex:type2|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:type2|{{#var:iteration}}}}</span>]]</td> | ||
<td style="background-color: #{{{{# | |||
<td>{{#if:{{{l|}}}| {{{l}}} | —}}</td> | <td>{{#if:{{{l|}}}| {{{l}}} | —}}</td> | ||
</tr> | </tr> | ||
</includeonly> | </includeonly> |
Revision as of 03:07, 1 September 2017
Use this in tandem with Template:MoveLevelUpTable to construct the move-data rows in it.