Template:Move: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Registered array indices for Pokemon data; this will be seminal to optimizing the templates since it will sift through the data needed from these arrays, as opposed to the inordinacy of data calls that it needs to individually transclude, otherwise.
No edit summary
Line 24: Line 24:
</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;">Availability
<tr><td><table style="color:{{#var:border}}; background-color: {{#var:border}}; border-radius: 25px; font-weight: bold; border: 3px solid {{#var:background}}; font-weight: bold; padding: 3px; color: {{#var:cell}}; width: 100%;"><tr><td>Availability
<table width="100%" style="border-spacing: 3px; padding: 5px;">
<table width="100%" style="border-spacing: 3px; padding: 5px;">
{{#if:{{{NoLvl|Placeholder}}}|<tr><td>
<table align="center" style="background-color: {{#var:cell}}; border: 1px solid {{#var:background}}; border-radius: 25px; color: {{#var:border}}; width: 85%;">
<tr><td>
<tr><td>
<ul style="text-align: left; color:#000000; font-weight: normal; width: 52%; background-color:#FFFFFF; border-radius: 25px; margin: auto auto; padding: 5px;">
Level-up/instinction
{{#if:{{{NoLvl|Placeholder}}}|<li style="margin-left: 40px;">Level-up/instinction</li>}} {{#if: {{#external_value:tm}}  | <li style="margin-left: 40px;">[[TMs and HMs|{{{DEV|TM}}}{{padleft:{{#external_value:tm}}|2}}]]</li>}} {{#ifeq:{{#external_value:tutor}} | Y | <li style="margin-left: 40px;">[[Move tutors|Move-tutor]]</li>}} {{#ifeq:{{#external_value:egg}} | Y | <li style="margin-left: 40px;">[[Egg-Inheritable Moves|Hereditary move-tutor]]</li>}}
</td>
</ul>
</tr>
</table>
</td></tr>}}
{{#if: {{#external_value:tm}}  |<tr><td>
<table class="collapsible collapsed" align="center" style="background-color: {{#var:cell}}; border: 1px solid {{#var:background}}; border-radius: 25px; color: {{#var:border}}; width: 85%;">
<tr><th><table align="center"><tr><td style="background-color:#FFFFFF; border-radius: 25px; padding: 5px;">[[File:TM-{{#external_value:movetype}}.png]]</td><td>{{{Scope|TM}}}{{padleft:{{#external_value:tm}}|2}}</td></tr></table></th></tr>
<tr><td style="padding: 10px;"><ul style="background-color:#FFFFFF; border-radius: 20px; text-align: left; font-weight: normal; color:#000000;">
{{#replace:\|</li><li style="margin-left: 50px;">|<li style="margin-left: 50px;">{{{TMLoc|}}} </li>}}
</ul></td>
</tr>
</table>
</td></tr>
}}
{{#ifeq: {{#external_value:tutor}} | Y |<tr><td><table class="collapsible collapsed" align="center" style="background-color: {{#var:cell}}; border: 1px solid {{#var:background}}; border-radius: 25px; color: {{#var:border}}; width: 85%;"><tr><th><table align="center"><tr><td>[[Move Tutor|<span style="color: {{#var:border}};">Move-tutors</span>]]</td></tr></table></th></tr><tr><td><table cellpadding="5" class="collapsible collapsed" style="width: 100%; padding: 3px;">
<tr style="background-color: {{#var:border}}; color: #FFFFFF;"><th style="border-top-left-radius: 25px; width: 28%; border: 1px solid {{#var:background}};">Location</th><th width="9%" style="border: 1px solid {{#var:background}};>Price</th><th style="border-top-right-radius: 25px; width: 70%; border: 1px solid {{#var:background}};">Prerequisites</th></tr>
{{{TutorLocs|}}}
</table>
</td></tr>
</table>
</td></tr>
</td></tr>
}}
{{#ifeq: {{#external_value:egg}} | Y |<tr><td><table align="center" style="background-color: {{#var:cell}}; border: 1px solid {{#var:background}}; border-radius: 25px; color: {{#var:border}}; width: 85%;"><tr><th>[[Egg-Inheritable Moves|<span style="color: {{#var:border}};">Egg Moves-tutor</span>]]</th></tr>
</table>
</table>
</td></tr>
</td></tr>
}}
</table>
</table>
</includeonly>
</includeonly>

Revision as of 06:01, 13 September 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.