Template:MTP: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<noinclude>Use this in tandem with Template:MoveTableGeneric to construct the move-data rows in it. The only argument needed is the Pokemon's name; the rest of the Pokemo..."
 
Optimized the if-block nest with the advent of the pre-declared STAB flag.
Line 8: Line 8:
<td>{{#external_value:number}}</td>
<td>{{#external_value:number}}</td>
<td>[[File:{{#external_value:number}}Icon.png]]</td>
<td>[[File:{{#external_value:number}}Icon.png]]</td>
<td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }}">[[{{#external_value:name}}]]</span></td>
<td><span style="{{#ifeq: {{#var:stab}} | 1 | {{#ifeq:{{#external_value:type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }}">[[{{#external_value:name}}]]</span></td>
<td style="background-color: #{{{{#external_value:type1}}_color}}; border: 2px solid #{{{{#external_value:type1}}_color_dark}};">[[{{#external_value:type1}}_(type)|<span style="color:#FFFFFF;">{{#external_value:type1}}</span>]]</td>
<td style="background-color: #{{{{#external_value:type1}}_color}}; border: 2px solid #{{{{#external_value:type1}}_color_dark}};">[[{{#external_value:type1}}_(type)|<span style="color:#FFFFFF;">{{#external_value:type1}}</span>]]</td>
<td style="background-color: #{{{{#external_value:type2}}_color}}; border: 2px solid #{{{{#external_value:type2}}_color_dark}};">[[{{#external_value:type2}}_(type)|<span style="color:#FFFFFF;">{{#external_value:type2}}</span>]]</td>
<td style="background-color: #{{{{#external_value:type2}}_color}}; border: 2px solid #{{{{#external_value:type2}}_color_dark}};">[[{{#external_value:type2}}_(type)|<span style="color:#FFFFFF;">{{#external_value:type2}}</span>]]</td>
</tr>
</tr>
</includeonly>
</includeonly>

Revision as of 19:03, 3 February 2017

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

The only argument needed is the Pokemon's name; the rest of the Pokemon-relevant data will be gleaned from PokemonRawList.