Template:TMTable: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
Cae (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 8: Line 8:
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name=
{{#get_web_data:url=https://wiki.pokemonrevolution.net/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}}{{#vardefine:cell|#{{{{#external_value:movetype}}_color_light}}}}{{#vardefine:background|#{{{{#external_value:movetype}}_color}}}}{{#vardefine:border|#{{{{#external_value:movetype}}_color_dark}}}}
{{{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}}}}
<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;">
Line 23: Line 23:
<td style="border: 3px solid {{#var:border}};">Accuracy<div style="background-color:#FFFFFF; border: 1px solid {{#var:border}}; width: 30%; border-radius: 25px; margin: auto auto; color:#000000; font-weight: normal;">{{#external_value:accuracy}}</div></td>
<td style="border: 3px solid {{#var:border}};">Accuracy<div style="background-color:#FFFFFF; border: 1px solid {{#var:border}}; width: 30%; border-radius: 25px; margin: auto auto; color:#000000; font-weight: normal;">{{#external_value:accuracy}}</div></td>
<td style="border: 3px solid {{#var:border}}; padding: 4px;">[[Priority Moves|<span style="color:{{#var:border}};">Priority</span>]]
<td style="border: 3px solid {{#var:border}}; padding: 4px;">[[Priority Moves|<span style="color:{{#var:border}};">Priority</span>]]
<div style="background-color:#FFFFFF; border: 1px solid {{#var:border}}; border-radius: 25px; width: 30%; margin: auto auto; color:#000000; font-weight: normal;">{{#ifexpr:{{#external_value:priority}} > 0 | +}}{{#external_value:priority}}</div>
<div style="background-color:#FFFFFF; border: 1px solid {{#var:border}}; border-radius: 25px; width: 30%; margin: auto auto; color:#000000; font-weight: normal;">{{#iferror:{{#ifexpr:{{#external_value:priority}} > 0 | +}}{{#external_value:priority}}|0}}</div>
</td>
</td>
<td style="border-radius: 1px 25px 25px 1px; border: 3px solid {{#var:border}}; padding: 4px;">PP
<td style="border-radius: 1px 25px 25px 1px; border: 3px solid {{#var:border}}; padding: 4px;">PP
Line 31: Line 31:
<td colspan="4" style="border-radius: 25px; border: 3px solid {{#var:border}}; background-color:{{#var:cell}}; padding: 3px;"><table class="collapsible collapsed" width="100%"><tr><th>Obtainability</th></tr>
<td colspan="4" style="border-radius: 25px; border: 3px solid {{#var:border}}; background-color:{{#var:cell}}; padding: 3px;"><table class="collapsible collapsed" width="100%"><tr><th>Obtainability</th></tr>
<tr><td style="padding: 10px;"><ul style="background-color:#FFFFFF; border: 1px solid {{#var:border}}; border-radius: 20px; text-align: left; font-weight: normal; color:#000000;">
<tr><td style="padding: 10px;"><ul style="background-color:#FFFFFF; border: 1px solid {{#var:border}}; border-radius: 20px; text-align: left; font-weight: normal; color:#000000;">
{{#replace:\|</li><li style="margin-left: 50px;">|<li style="margin-left: 50px;">{{{Locations}}} </li>}}
{{#replace:<li style="margin-left: 50px;">{{{Locations}}} </li>|\|</li><li style="margin-left: 50px;">}}
</ul></td></tr>
</ul></td></tr>
</table></td></tr>
</table></td></tr>
</table>
</table>
</includeonly>
</includeonly>

Latest revision as of 03:54, 29 August 2025

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).