Template:Move: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(2 intermediate revisions by 2 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= | '''Test Move template:''' | ||
{{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}}}} | {{{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;"> | ||
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 74: | Line 85: | ||
</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= | <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 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> |
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
| ||||||||
Statistical Attributes
| ||||||||
|