Template:Move: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
fixed the 'Unexpected Operator' errors on non-priority moves |
||
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> | ||
'''Test Move template:''' | |||
{{Move|Move=Trick Room}} | |||
</noinclude> | |||
<includeonly>{{#get_web_data:url=http://wiki.pokemonrevolution.net/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name= | <includeonly>{{#get_web_data:url=http://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}}}} | {{{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}}}} | ||
Line 16: | 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: 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> | <tr> | ||
{{# | <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: 1px solid {{#var:background}}; margin-bottom: 7px;">[[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>}} | {{#if:{{#external_value:priority|}}| | ||
<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}}; 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: 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> | [[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> | ||
Line 97: | 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}} | {{#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]]}} {{# | [[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> |
Revision as of 20:18, 19 April 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:
<table class="informational-box" align="right" style="border: 4px solid
- {{Error: no local variable "movetype" has been set._color_dark}}; background-color:
- {{Error: no local variable "movetype" has been set._color}}; width: 42%; max-width: 52%; padding: 4px; border-radius: 25px; text-align: center; border-spacing: 5px;">
<td colspan="5" style="color:
- {{Error: no local variable "movetype" has been set._color_dark}}; font-weight: bold; font-size: 18px; background-color:
- {{Error: no local variable "movetype" has been set._color_light}}; border-radius: 25px; border: 3px solid
- {{Error: no local variable "movetype" has been set._color_dark}};">Error: no local variable "technique" has been set.
<td style="color:
- {{Error: no local variable "movetype" has been set._color_dark}}; background-color:
- {{Error: no local variable "movetype" has been set._color_light}}; border-radius: 25px; font-weight: bold; border: 3px solid
- {{Error: no local variable "movetype" has been set._color_dark}}; font-weight: bold; padding: 3px;">Categories
- {{Error: no local variable "movetype" has been set._color_light}}; width: 33%; background-color:
- {{Error: no local variable "movetype" has been set._color_dark}}; font-weight: bold; border: 1px solid
- {{Error: no local variable "movetype" has been set._color}}; padding: 7px;">Element<div style="background-color:
- {{Error: no local variable "movetype" has been set._color_light}}; border-radius: 25px; border: 1px solid
- {{Error: no local variable "movetype" has been set._color}}; width: 58%; margin: auto auto; color:#000000; font-weight: normal;">[[Error: no local variable "movetype" has been set._(type)|Error: no local variable "movetype" has been set.]]
- {{Error: no local variable "movetype" has been set._color_light}}; background-color:
- {{Error: no local variable "movetype" has been set._color_dark}}; width: 33%; font-weight: bold; border: 1px solid
- {{Error: no local variable "movetype" has been set._color}}; margin-bottom: 7px; border-radius: 1px 25px 25px 1px;">Type<div style="background-color:#{{Error: no local variable "category" has been set._color}}; border-radius: 25px; border: 2px solid #{{Error: no local variable "category" has been set._color_dark}}; width: 63%; margin: auto auto; font-weight: normal;">[[Error: no local variable "category" has been set. moves|Error: no local variable "category" has been set.]]
<td style="color:
- {{Error: no local variable "movetype" has been set._color_dark}}; background-color:
- {{Error: no local variable "movetype" has been set._color_light}}; border-radius: 25px; font-weight: bold; border: 3px solid
- {{Error: no local variable "movetype" has been set._color_dark}}; font-weight: bold; padding: 3px;">Statistical Attributes
- {{Error: no local variable "movetype" has been set._color_light}}; background-color:
- {{Error: no local variable "movetype" has been set._color_dark}}; font-weight: bold; border: 1px solid
- {{Error: no local variable "movetype" has been set._color}}; padding: 7px;">Base Power<div style="background-color:#FFFFFF; border: 1px solid
- {{Error: no local variable "movetype" has been set._color_dark}}; color:#000000; border-radius: 25px; width: 38%; margin: auto auto; font-weight: normal;">Error: no local variable "power" has been set.
- {{Error: no local variable "movetype" has been set._color_light}}; width: 25%; background-color:
- {{Error: no local variable "movetype" has been set._color_dark}}; font-weight: bold; border: 1px solid
- {{Error: no local variable "movetype" has been set._color}}; 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
- {{Error: no local variable "movetype" has been set._color_dark}};">Error: no local variable "accuracy" has been set.
- {{Error: no local variable "movetype" has been set._color_light}}; width: 25%; background-color:
- {{Error: no local variable "movetype" has been set._color_dark}}; border-radius: 1px 25px 25px 1px; font-weight: bold; border: 1px solid
- {{Error: no local variable "movetype" has been set._color}}; padding: 7px;">PP<div style="background-color:#FFFFFF; border-radius: 25px; border: 2px solid
- {{Error: no local variable "movetype" has been set._color_dark}}; width: 35%; margin: auto auto; color:#000000; font-weight: normal; border: 1px solid
- {{Error: no local variable "movetype" has been set._color_dark}};">Error: no local variable "pp" has been set.
<table style="color:
- {{Error: no local variable "movetype" has been set._color_dark}}; background-color:
- {{Error: no local variable "movetype" has been set._color_light}}; border-radius: 25px; font-weight: bold; border: 3px solid
- {{Error: no local variable "movetype" has been set._color_dark}}; font-weight: bold; padding: 3px; width: 100%;">
Obtainability
<th style="background-color:- {{Error: no local variable "movetype" has been set._color_dark}}; color:
- {{Error: no local variable "movetype" has been set._color_light}}; border-radius: 25px 25px 1px 1px;">Natural methods
|
- {{Error: no local variable "movetype" has been set._color_dark}}; border-radius: 25px 25px 1px 1px;"><span style="color: #{{Error: no local variable "movetype" has been set._color_light}};">TMError: no local variable "tm" has been set.
|
[[Category:Error: no local variable "movetype" has been set.-type moves]] [[Category:Error: no local variable "category" has been set. moves]]
Expression error: Unexpected < operator.