Template:Move: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
Registered array indices for Pokemon data; this will be seminal to optimizing the templates since it will sift through the data needed from these arrays, as opposed to the inordinacy of data calls that it needs to individually transclude, otherwise.
Line 36: Line 36:
</includeonly>
</includeonly>
<includeonly>{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#vardefine:stab|1}} }} }}</includeonly>
<includeonly>{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#vardefine:stab|1}} }} }}</includeonly>
<includeonly>{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|data=number=Pokedex Number,name=Name,type1=Type1,type2=Type2}}
{{#arraydefine:name|
{{#for_external_table:
{{{name}}},
}}
}}
{{#arraydefine:number|
{{#for_external_table:
{{{number}}},
}}
}}
{{#arraydefine:type1|
{{#for_external_table:
{{{type1}}},
}}
}}
{{#arraydefine:type2|
{{#for_external_table:
{{{type2}}},
}}
}}
</includeonly>
<includeonly>
<includeonly>
[[Category:Move techniques]] [[Category:{{#external_value:movetype}}-type moves]] [[Category:{{#external_value:category}} moves]] {{#ifeq:{{#external_value:broken}} | Y | [[Category:Broken moves]]}} {{#if: {{#external_value:tm}} | [[Category:TM-learnable moves]]}} {{#ifeq:{{#external_value:tutor}} | Y | [[Category:Tutor-teachable moves]]}} {{#ifeq:{{#external_value:egg}} | Y | [[Category:Egg-inheritable moves]]}} {{#ifexpr:{{#external_value:priority}} != 0 | {{#ifexpr:{{#external_value:priority}} > 0 | [[Category:Increased-priority moves]] | [[Category:Decreased-priority moves]]}}}} {{#ifeq:{{#external_value:typeless}}|Y|[[Category:Typeless moves]]}}
[[Category:Move techniques]] [[Category:{{#external_value:movetype}}-type moves]] [[Category:{{#external_value:category}} moves]] {{#ifeq:{{#external_value:broken}} | Y | [[Category:Broken moves]]}} {{#if: {{#external_value:tm}} | [[Category:TM-learnable moves]]}} {{#ifeq:{{#external_value:tutor}} | Y | [[Category:Tutor-teachable moves]]}} {{#ifeq:{{#external_value:egg}} | Y | [[Category:Egg-inheritable moves]]}} {{#ifexpr:{{#external_value:priority}} != 0 | {{#ifexpr:{{#external_value:priority}} > 0 | [[Category:Increased-priority moves]] | [[Category:Decreased-priority moves]]}}}} {{#ifeq:{{#external_value:typeless}}|Y|[[Category:Typeless moves]]}}
</includeonly>
</includeonly>

Revision as of 02:58, 1 September 2017

Use this on any individualized move-technique pages; it will automatically glean data collated on RawMovesList to tabulate the data.

If you wish to edit the move-attribute data, you will need to do so on RawMovesList.