Template:PKM: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Revamped the template in accordance to the intra-transclusionary method that I have just devised for optimizational purposes; will test it out, momentarily.
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<tr style="background-color:#FFFFFF;">
<tr style="background-color:#FFFFFF;">
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Name}}}}}}}}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Name}}}}}}}}}
<td>{{#arrayindex:name|{{#var:iteration}}}}</td>
<td>{{padleft:{{#arrayindex:number|{{#var:iteration}}}}|3}}</td>
<td>[[File:{{#arrayindex:number|{{#var:iteration}}}}Icon.png]]</td>
<td>[[File:{{#arrayindex:number|{{#var:iteration}}}}Icon.png]]</td>
<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:{{#arrayindex:type1|{{#var:iteration}}}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#arrayindex:type2|{{#var:iteration}}}} | {{#external_value:movetype}} | font-weight: bold;}} }} }}">[[{{{Name}}}]]</span></td>

Latest revision as of 03:09, 1 September 2017

Use this in tandem with Template:MoveLevelUpTable to construct the move-data rows in it.