Template:TMTable: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
<includeonly> | <includeonly> | ||
{{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name= | {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name= | ||
{{{Move}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless,priority=Priority,tm=TM}} | {{{Move}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless,priority=Priority,tm=TM}}{{#vardefine:cell|#{{{{#external_value:movetype}}_color_light}}}}{{#vardefine:background|#{{{{#external_value:movetype}}_color}}}}{{#vardefine:border|#{{{{#external_value:movetype}}_color_dark}}}} | ||
{{#vardefine:cell|#{{{{#external_value:movetype}}_color_light}}}} | |||
{{#vardefine:background|#{{{{#external_value:movetype}}_color}}}} | |||
{{#vardefine:border|#{{{{#external_value:movetype}}_color_dark}}}} | |||
<table style="width:50%; background-color:{{#var:background}}; border: 5px solid {{#var:border}}; font-weight: bold; color: {{#var:border}}; border-radius: 25px; padding: 4px; text-align: center;"> | <table style="width:50%; background-color:{{#var:background}}; border: 5px solid {{#var:border}}; font-weight: bold; color: {{#var:border}}; border-radius: 25px; padding: 4px; text-align: center;"> | ||
<tr style="background-color:{{#var:cell}}; "><td colspan="2" style="border-radius: 25px 1px 1px 25px; padding: 3px; border: 3px solid {{#var:border}};"><table align="center"><tr><td style="background-color:#FFFFFF; border-radius: 25px; padding: 3px;">[[File:TM-{{#external_value:movetype}}.png]]</td><td>{{{Scope|TM}}}{{padleft:{{#external_value:tm}}|2}}</td></tr></table></td><td colspan="2" style="border-radius: 1px 25px 25px 1px; border: 3px solid {{#var:border}};>[[{{#external_value:technique}}|<span style="color:{{#var:border}};">{{#external_value:technique}}</span>]]</td></tr> | <tr style="background-color:{{#var:cell}}; "><td colspan="2" style="border-radius: 25px 1px 1px 25px; padding: 3px; border: 3px solid {{#var:border}};"><table align="center"><tr><td style="background-color:#FFFFFF; border-radius: 25px; padding: 3px;">[[File:TM-{{#external_value:movetype}}.png]]</td><td>{{{Scope|TM}}}{{padleft:{{#external_value:tm}}|2}}</td></tr></table></td><td colspan="2" style="border-radius: 1px 25px 25px 1px; border: 3px solid {{#var:border}};>[[{{#external_value:technique}}|<span style="color:{{#var:border}};">{{#external_value:technique}}</span>]]</td></tr> |
Revision as of 03:17, 14 January 2017
Use this to construct informational boxes for TM/HM data—namely on the TMs and HMs page.
Specify the move name with the {{{Move}}} variable.
Use locations in a \-delimited notation to specify where it can be obtained (example: Locations=Place 1\Place 2\Place 3\etc.)
If it's an HM box, add HM as an argument to {{{Scope}}} (Scope=HM).