Template:Move: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
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.
Cae (talk | contribs)
mNo edit summary
 
(36 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>Use this on any individualized move-technique pages; it will automatically glean data collated on [[RawMovesList]] to tabulate the data.  
<noinclude>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]].</noinclude>
If you wish to edit the move-attribute data, you will need to do so on [[RawMovesList]].<br>
<includeonly>{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name=
'''Test Move template:'''
{{PAGENAME}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless,tm=TM,priority=Priority,tm=TM,tutor=Move Tutor,egg=Egg}}{{#vardefine:border|#{{{{#external_value:movetype}}_color_dark}}}}{{#vardefine:background|#{{{{#external_value:movetype}}_color}}}}{{#vardefine:cell|#{{{{#external_value:movetype}}_color_light}}}}
{{Move|Move=Trick Room}}
</noinclude>
<includeonly>{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name=
{{{Move|{{PAGENAME}}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless,tm=TM,priority=Priority,tm=TM,tutor=Move Tutor,egg=Egg}}{{#vardefine:border|#{{{{#external_value:movetype}}_color_dark}}}}{{#vardefine:background|#{{{{#external_value:movetype}}_color}}}}{{#vardefine:cell|#{{{{#external_value:movetype}}_color_light}}}}
<table class="informational-box" align="right" style="border: 4px solid {{#var: border}}; background-color: {{#var:background}}; width: 42%; max-width: 52%; padding: 4px; border-radius: 25px; text-align: center; border-spacing: 5px;">
<table class="informational-box" align="right" style="border: 4px solid {{#var: border}}; background-color: {{#var:background}}; width: 42%; max-width: 52%; padding: 4px; border-radius: 25px; text-align: center; border-spacing: 5px;">
<tr><td colspan="5" style="color:{{#var:border}}; font-weight: bold; font-size: 18px; background-color: {{#var:cell}}; border-radius: 25px; border: 3px solid {{#var:border}};">{{#external_value:technique}}</td></tr>
<tr><td colspan="5" style="color:{{#var:border}}; font-weight: bold; font-size: 18px; background-color: {{#var:cell}}; border-radius: 25px; border: 3px solid {{#var:border}};">{{#external_value:technique}}</td></tr>
Line 9: Line 12:
<table width="100%" style="border-spacing: 4px; padding: 5px;">
<table width="100%" style="border-spacing: 4px; padding: 5px;">
<tr><td colspan="3"></tr>
<tr><td colspan="3"></tr>
<tr><td style="border-radius: 25px 1px 1px 25px; color:{{#var:cell}}; width: 33%; background-color:{{#var:border}}; font-weight: bold; border: 3px solid {{#var:background}}; padding: 7px;">Element<div style="background-color:{{#var:cell}}; border-radius: 25px; border: 2px solid {{#var:background}}; width: 58%; margin: auto auto; color:#000000; font-weight: normal;">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</div></td>
<tr><td style="border-radius: 25px 1px 1px 25px; color:{{#var:cell}}; width: 33%; background-color:{{#var:border}}; font-weight: bold; border: 1px solid {{#var:background}}; padding: 7px;">Element<div style="background-color:{{#var:cell}}; border-radius: 25px; border: 1px solid {{#var:background}}; width: 58%; margin: auto auto; color:#000000; font-weight: normal;">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</div></td>
<td style="color:{{#var:cell}}; background-color:{{#var:border}}; width: 33%; font-weight: bold; border: 3px solid {{#var:background}}; margin-bottom: 7px;">Type<div style="background-color:#{{{{#external_value:category}}_color}}; border-radius: 25px; border: 2px solid #{{{{#external_value:category}}_color_dark}}; width: 63%; margin: auto auto; font-weight: normal;">[[{{#external_value:category}} moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</div></td>
<td style="color:{{#var:cell}}; background-color:{{#var:border}}; width: 33%; font-weight: bold; border: 1px solid {{#var:background}}; margin-bottom: 7px; border-radius: 1px 25px 25px 1px;">Type<div style="background-color:#{{{{#external_value:category}}_color}}; border-radius: 25px; border: 2px solid #{{{{#external_value:category}}_color_dark}}; width: 63%; margin: auto auto; font-weight: normal;">[[{{#external_value:category}} moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</div></td></tr>
<td style="color:{{#var:cell}}; width: 33%; background-color:{{#var:border}}; border-radius: 1px 25px 25px 1px; font-weight: bold; border: 3px solid {{#var:background}}; padding: 7px;">[[:Category:Broken moves|<span style="color:{{#var:cell}};">Broken?</span>]]<div style="background-color:#FFFFFF; border-radius: 25px; border: 2px solid {{#var:border}}; width: 40%; margin: auto auto; color:#000000; font-weight: normal;">{{#ifeq:{{#external_value:broken}} | Y | Yes | No}}</div></td></tr>
</table>
</table>
</td></tr>
</td></tr>
Line 17: Line 19:
<table width="100%" style="border-spacing: 3px; padding: 5px;">
<table width="100%" style="border-spacing: 3px; padding: 5px;">
<tr><td colspan="4"></tr>
<tr><td colspan="4"></tr>
<tr><td style="width: 25%; border-radius: 25px 1px 1px 25px; color:{{#var:cell}}; background-color:{{#var:border}}; font-weight: bold; border: 3px solid {{#var:background}}; padding: 7px;">Base Power<div style="background-color:#FFFFFF; color:#000000; border-radius: 25px; width: 38%; margin: auto auto; font-weight: normal;">{{#if: {{#external_value:power}} | {{#external_value:power}} | —}}</div></td>
<tr>
{{#ifexpr:{{#external_value:priority}} != 0 |
<td style="width: 25%; border-radius: 25px 1px 1px 25px; color:{{#var:cell}}; background-color:{{#var:border}}; font-weight: bold; border: 1px solid {{#var:background}}; padding: 7px;">Base Power<div style="background-color:#FFFFFF; border: 1px solid {{#var:border}}; color:#000000; border-radius: 25px; width: 38%; margin: auto auto; font-weight: normal;">{{#if: {{#external_value:power}} | {{#external_value:power}} | —}}</div></td>
<td style="color:{{#var:cell}}; width: 25%; background-color:{{#var:border}}; font-weight: bold; border: 3px solid {{#var:background}}; margin-bottom: 7px;">Priority<div style="background-color:#FFFFFF; color:#000000; border-radius: 25px; width: 37%; margin: auto auto; font-weight: normal;">{{#ifexpr:{{#external_value:priority}} > 0 |+|-}}{{#external_value:priority}}</div></td>}}
{{#if:{{#external_value:priority|}}|
<td style="color:{{#var:cell}}; width: 25%; background-color:{{#var:border}}; font-weight: bold; border: 3px solid {{#var:background}}; margin-bottom: 7px;">Accuracy<div style="background-color:#FFFFFF; color:#000000; border-radius: 25px; width: 39%; margin: auto auto; font-weight: normal;">{{#external_value:accuracy}}</div></td>
<td style="color:{{#var:cell}}; width: 25%; background-color:{{#var:border}}; font-weight: bold; border: 1px solid {{#var:background}}; margin-bottom: 7px;">
<td style="color:{{#var:cell}}; width: 25%; background-color:{{#var:border}}; border-radius: 1px 25px 25px 1px; font-weight: bold; border: 3px solid {{#var:background}}; padding: 7px;">Power Points<div style="background-color:#FFFFFF; border-radius: 25px; border: 2px solid {{#var:border}}; width: 35%; margin: auto auto; color:#000000; font-weight: normal;">{{#external_value:pp}}</div></td></tr>
[[Priority moves|<span style="color: {{#var:cell}};>Priority</span>]]
<div style="background-color:#FFFFFF; color:#000000; border-radius: 25px; width: 37%; margin: auto auto; font-weight: normal; border: 1px solid {{#var:border}};">
{{#ifexpr:{{#external_value:priority}} > 0 |+|}}{{#external_value:priority}}
</div>
</td>
}}
<td style="color:{{#var:cell}}; width: 25%; background-color:{{#var:border}}; font-weight: bold; border: 1px solid {{#var:background}}; margin-bottom: 7px;">Accuracy<div style="background-color:#FFFFFF; color:#000000; border-radius: 25px; width: 39%; margin: auto auto; font-weight: normal; border: 1px solid {{#var:border}};">{{#external_value:accuracy}}</div></td>
<td style="color:{{#var:cell}}; width: 25%; background-color:{{#var:border}}; border-radius: 1px 25px 25px 1px; font-weight: bold; border: 1px solid {{#var:background}}; padding: 7px;">PP<div style="background-color:#FFFFFF; border-radius: 25px; border: 2px solid {{#var:border}}; width: 35%; margin: auto auto; color:#000000; font-weight: normal; border: 1px solid {{#var:border}};">{{#external_value:pp}}</div></td>
</tr>
</table>
</table>
</td></tr>
</td></tr>
<tr><td style="color:{{#var:border}}; background-color: {{#var:cell}}; border-radius: 25px; font-weight: bold; border: 3px solid {{#var:border}}; font-weight: bold; padding: 3px;">Availability
{{#if:{{{Extra|}}}|<tr><td colspan="4" style="background-color: {{#var:cell}}; border: 3px solid {{#var:border}}; border-radius: 25px 25px 1px 1px; color: {{#var:border}}; font-weight: bold;">Extra Information</td></tr>
<tr><td colspan="4" style="background-color: #FFFFFF; border-radius: 1px 1px 25px 25px; border: solid 3px {{#var:border}}; text-align: left;"><ul>{{#replace:<li>{{{Extra}}}</li></ul></td></tr>|,|</li><li>}}}}
{{#if: {{#external_value:tm}}{{#external_value:tutor}}|<tr><td><table style="color:{{#var:border}}; background-color: {{#var:cell}}; border-radius: 25px; font-weight: bold; border: 3px solid {{#var:border}}; font-weight: bold; padding: 3px; width: 100%;">
<tr><td>Obtainability</td></tr>
{{#if:{{{NoLvl|Placeholder}}}|<tr><td>
<tr><td>
<table width="100%" style="border-spacing: 3px; padding: 5px;">
<tr><th style="background-color: {{#var:border}}; color: {{#var:cell}}; border-radius: 25px 25px 1px 1px;">Natural methods</th></tr>
<tr><td style="background-color: #FFFFFF; border-radius: 1px 1px 25px 25px;"><ul style="text-align: left; color:#000000; font-weight: normal;">
<li style="margin-left: 40px;">Level-up/instinctual</li>
{{#ifeq:{{#external_value:egg}} | Y | <li style="margin-left: 40px;">[[Egg Moves]] tutors</li> }}
{{#if:{{{MI|}}} | <li style="margin-left: 40px;">[[Move tutors#Move inheritors|Move Inheritors]]</li>}}
</ul></td></tr>
</table>
</td>
</tr>
}}
{{#if: {{#external_value:tm}}  |
<tr><td>
<table width="100%" style="border-spacing: 3px; padding: 5px;">
<table width="100%" style="border-spacing: 3px; padding: 5px;">
<tr><th style="background-color: {{#var:border}}; border-radius: 25px 25px 1px 1px;">[[TMs and HMs|<span style="color: {{#var:cell}};">{{{DEV|TM}}}{{padleft:{{#external_value:tm}}|2}}</span>]]</th></tr>
<tr><td style="background-color: #FFFFFF; border-radius: 1px 1px 25px 25px;"><ul style="text-align: left; color:#000000; font-weight: normal;">
{{#replace:<li style="margin-left: 40px;">{{{TMLocations}}} </li>|\|</li><li style="margin-left: 40px;">}}
</ul></td></tr>
</table>
</td>
</tr>
}}{{#if: {{{MTLocations|}}} |
<tr><td>
<tr><td>
<ul style="text-align: left; color:#000000; font-weight: normal; width: 52%; background-color:#FFFFFF; border-radius: 25px; margin: auto auto; padding: 5px;">
<table width="100%" style="border-spacing: 3px; padding: 5px;">
{{#if:{{{NoLvl|Placeholder}}}|<li style="margin-left: 40px;">Level-up/instinction</li>}} {{#if: {{#external_value:tm}}  | <li style="margin-left: 40px;">[[TMs and HMs|{{{DEV|TM}}}{{padleft:{{#external_value:tm}}|2}}]]</li>}} {{#ifeq:{{#external_value:tutor}} | Y | <li style="margin-left: 40px;">[[Move tutors|Move-tutor]]</li>}} {{#ifeq:{{#external_value:egg}} | Y | <li style="margin-left: 40px;">[[Egg-Inheritable Moves|Hereditary move-tutor]]</li>}}
<tr><th style="background-color: {{#var:border}}; border-radius: 25px 25px 1px 1px;">[[Move tutors|<span style="color: {{#var:cell}};">Move tutors</span>]]</th></tr>
</ul>
<tr><td style="background-color: #FFFFFF; border-radius: 1px 1px 25px 25px;"><ul style="text-align: left; color:#000000; font-weight: normal">
{{#replace:<li style="margin-left: 40px;">{{{MTLocations}}} </li>|\|</li><li style="margin-left: 40px;">}}
</ul></td></tr>
</table>
</td></tr>
</td></tr>
}}{{#if:{{{ETList|}}} |
<tr><td>
<table width="100%" style="border-spacing: 3px; padding: 5px;">
<tr><th style="background-color: {{#var:border}}; border-radius: 25px 25px 1px 1px;">[[Move tutors#Events|<span style="color: {{#var:cell}};">Event tutors</span>]]</th></tr>
<tr><td style="background-color: #FFFFFF; border-radius: 1px 1px 25px 25px;"><ul style="text-align: left; color:#000000; font-weight: normal">
{{#replace:<li style="margin-left: 40px;">{{{ETList}}} </li>|\|</li><li style="margin-left: 40px;">}}
</ul></td></tr>
</table>
</table>
</td></tr>
</td></tr>
}}
</table>
</td>}}
</table>
</table>
</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}}
<includeonly>{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|data=number=Pokedex Number,name=Name,type1=Type1,type2=Type2}}
{{#arraydefine:name|
{{#arraydefine:name|
{{#for_external_table:
{{#for_external_table:
Line 59: Line 108:
</includeonly>
</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}} | {{#ifeq:{{{DEV|}}}|HM|[[Category:HM-learnable moves]]|[[Category:TM-learnable moves]]}}}} {{#ifeq:{{#external_value:tutor}} | Y | [[Category:Tutor-teachable moves]]}} {{#ifeq:{{#external_value:egg}} | Y | [[Category:Egg-inheritable moves]]}}  
{{#if:{{#external_value:priority}}|{{#ifexpr:{{#external_value:priority}} > 0 | [[Category:Increased-priority moves]] | [[Category:Decreased-priority moves]]}}}} {{#ifeq:{{#external_value:typeless}}|Y|[[Category:Typeless moves]]}}
</includeonly>
</includeonly>

Latest revision as of 16:30, 28 August 2025

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.
Test Move template:


Trick Room
Categories
Element Type
Statistical Attributes
Base Power

Priority

-7

Accuracy
PP
5
Obtainability
Natural methods
  • Level-up/instinctual
TM148
  • {{{TMLocations}}}