Template:Move: Difference between revisions
Jump to navigation
Jump to search
Modularizing in the groundwork for the central move-page table. |
No edit summary |
||
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. | |||
If you wish to edit the move-attribute data, you will need to do so on [[RawMovesList]].</noinclude> | |||
<includeonly> | <includeonly> | ||
{{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{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}} | {{stub}} | ||
{{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name= | |||
{{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:border|#{{{{#external_value:movetype}}_color_dark}}}} | ||
{{#vardefine:background|#{{{{#external_value:movetype}}_color}}}} | {{#vardefine:background|#{{{{#external_value:movetype}}_color}}}} | ||
Line 6: | Line 12: | ||
<table class="informational-box" align="right" style="border: 4px solid {{#var: border}}; background-color: {{#var:background}}; width: 42%; max-width: 55%; 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: 55%; 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> | ||
<tr><td style="color:{{#var:border}}; background-color: {{#var:cell}}; border-radius: 25px; font-weight: bold; border: 3px solid {{#var:border}};"> | <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;">Categories | ||
<table width="100%"> | <table width="100%" style="border-spacing: 4px; padding: 5px;"> | ||
<tr><td colspan=" | <tr><td colspan="3"></tr> | ||
<tr><td style="border-radius: 25px 1px 1px 25px; border: 3px solid {{#var:border}}; color:{{#var:border}}; background-color:{{#var:cell}}; font-weight: bold;"> | <tr><td style="border-radius: 25px 1px 1px 25px; color:{{#var:cell}}; 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: 45%; 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}}; 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: 45%; margin: auto auto; font-weight: normal;">[[{{#external_value:category}} Moves|<span style="color:#{{{{#external_value:category}}_color_light}}; font-weight: bold;">{{#external_value:category}}</span>]]</div></td><td style="color:{{#var:cell}}; background-color:{{#var:border}}; border-radius: 1px 25px 25px 1px; font-weight: bold; border: 3px solid {{#var:background}}; padding: 7px;">Broken?<div style="background-color:#FFFFFF; border-radius: 25px; border: 2px solid {{#var:border}}; width: 45%; margin: auto auto; color:#000000; font-weight: normal;">{{#ifeq:{{#external_value:broken}} | Y | Yes | No}}</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;">Statistical Attributes | |||
<table width="100%" style="border-spacing: 3px; padding: 5px;"> | |||
<tr><td colspan="4"></tr> | |||
<tr><td style="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: 30%; margin: auto auto; font-weight: normal;">{{#external_value:power}}</div></td> | |||
{{#ifexpr:{{#external_value:priority}} != 0 | | |||
<td style="color:{{#var:cell}}; 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: 30%; margin: auto auto; font-weight: normal;">{{#ifexpr:{{#external_value:priority}} > 0 |+|-}}{{#external_value:priority}}</div></td>}} | |||
<td style="color:{{#var:cell}}; 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: 30%; margin: auto auto; font-weight: normal;">{{#external_value:accuracy}}</div></td><td style="color:{{#var:cell}}; 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: 30%; margin: auto auto; color:#000000; font-weight: normal;">{{#external_value:pp}}</div></td></tr> | |||
</table> | </table> | ||
</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 | |||
<table width="100%" style="border-spacing: 3px; padding: 5px;"> | |||
<tr><td> | |||
<ul style="text-align: left; color:#000000; font-weight: normal; width: 50%; background-color:#FFFFFF; border-radius: 25px; margin: auto auto;"> | |||
<li style="margin-left: 40px;">Level-up</li> | |||
{{#ifexpr: {{#external_value:tm}} > 0 | <li style="margin-left: 40px;">TM{{padleft:{{#external_value:tm}}|2}}</li>}} | |||
{{#ifeq:{{#external_value:tutor}} | Y | <li style="margin-left: 40px;">Move-tutor</li>}} | |||
{{#ifeq:{{#external_value:egg}} | Y | <li style="margin-left: 40px;">[[Egg-Inheritable Moves|Hereditary move-tutor]]</li>}} | |||
</ul> | |||
</td></tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
[[Category:Move techniques]] [[Category:{{#external_value:type}}-type moves]] [[Category:{{#external_value:category moves]] {{#ifeq:{{#external_value:broken}} | Y | [[Category:Broken moves]]}} {{#ifexpr: {{#external_value:tm}} > 0 | [[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 | [[Category:Priority moves]]}} | |||
</includeonly> | </includeonly> |
Revision as of 08:54, 4 January 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.