Difference between revisions of "Template:MoveInfo"
m |
m (Updated to https links) |
||
| (14 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | {{#get_web_data:url= | + | {{#get_web_data:url=https://pwo-wiki.info/index.php?title=Special:GetData/MovesRawList|format=CSV with header|filters=name={{ucfirst:{{{1}}}}}|data=name=Name,type=Type,category=Category,power=Power,accuracy=Accuracy,broken=Broken,typeless=Typeless,priority=Priority}} |
| − | {{#get_web_data:url= | + | {{#get_web_data:url=https://pwo-wiki.info/index.php?title=Special:GetData/MovesRawList/TM|format=CSV with header|filters=name={{ucfirst:{{{1}}}}}|data=name=Name,tmno=TMnumber}} |
<center><table cellspacing="5" style="float: center; width: 50%; max-width: 65%; margin-top: 2px; margin-left: 15px; border: 3px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px; background: #{{ {{#external_value: type}}_color}}; text-align: center"> | <center><table cellspacing="5" style="float: center; width: 50%; max-width: 65%; margin-top: 2px; margin-left: 15px; border: 3px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px; background: #{{ {{#external_value: type}}_color}}; text-align: center"> | ||
<tr><td height="30" colspan="5" style="background: #{{ {{#external_value: type}}_color_light}}; border-radius: 15px; border: 2px #{{ {{#external_value: type}}_color_dark}} solid;"><font size="5"><b>{{{1}}}</b></font></td></tr> | <tr><td height="30" colspan="5" style="background: #{{ {{#external_value: type}}_color_light}}; border-radius: 15px; border: 2px #{{ {{#external_value: type}}_color_dark}} solid;"><font size="5"><b>{{{1}}}</b></font></td></tr> | ||
<tr> | <tr> | ||
| − | <td width="25%" style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;"><b>Description:</b></td><td width="75%" colspan="4" style="border: 2px #{{ {{#external_value: type}}_color_dark}} solid; background: # | + | <td width="25%" style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;"><b>Description:</b></td><td width="75%" colspan="4" style="border: 2px #{{ {{#external_value: type}}_color_dark}} solid; background-color: #FFFFFF; text-align: left; border-radius: 1px 15px 15px 1px;"><p style="margin-left: 3px; margin-top: 2px; margin-bottom: 2px; margin-right: 2px;">{{{Description}}}</p></td></tr> |
| − | {{#ifeq: {{#external_value: broken}} | Y | <tr><td colspan="5" text-align="left"; style="align: center; border: 1px solid; background: #FFFFFF; border-radius: 7px;" width="75%"><b><small>This move is currently [[Broken Moves|broken]] - read " | + | {{#ifeq: {{#external_value: broken}} | Y | <tr><td colspan="5" text-align="left"; style="align: center; border: 1px solid; background: #FFFFFF; border-radius: 7px;" width="75%"><b><small>This move is currently [[Broken Moves|broken]] - read "Mechanical Limitations" below.</small> |
</tr> | </tr> | ||
<tr><td width="25%" style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;"><b>Mechanical Limitations:</b></td><td width="75%" colspan="4" style="border: 2px #{{ {{#external_value: type}}_color_dark}} solid; background: #{{ {{#external_value: type}}_color_light}}; text-align: left; border-radius: 1px 15px 15px 1px;"><p style="margin-left: 3px; margin-top: 2px; margin-bottom: 2px; margin-right: 2px;">{{{Limitations}}}</p></td></tr>}} | <tr><td width="25%" style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;"><b>Mechanical Limitations:</b></td><td width="75%" colspan="4" style="border: 2px #{{ {{#external_value: type}}_color_dark}} solid; background: #{{ {{#external_value: type}}_color_light}}; text-align: left; border-radius: 1px 15px 15px 1px;"><p style="margin-left: 3px; margin-top: 2px; margin-bottom: 2px; margin-right: 2px;">{{{Limitations}}}</p></td></tr>}} | ||
| Line 12: | Line 12: | ||
{{#ifexpr: {{#external_value: priority}} != 0 | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;" width="20%"><b>Type</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #FFFFFF; border: 3px #{{ {{#external_value: type}}_color_dark}} solid; color: #{{ {{#external_value: type}}_color_dark}}; border-radius: 15px;"> [[{{#external_value: type}}_(type)|<span style="color:#{{ {{#external_value: type}}_color_dark}};">{{#external_value: type}}</span>]] </span></div></td> | {{#ifexpr: {{#external_value: priority}} != 0 | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;" width="20%"><b>Type</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #FFFFFF; border: 3px #{{ {{#external_value: type}}_color_dark}} solid; color: #{{ {{#external_value: type}}_color_dark}}; border-radius: 15px;"> [[{{#external_value: type}}_(type)|<span style="color:#{{ {{#external_value: type}}_color_dark}};">{{#external_value: type}}</span>]] </span></div></td> | ||
<td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="20%"><b>Category</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #{{ {{#external_value: category}}_color}}; border: #{{ {{#external_value: category}}_color}} 2px solid; color: #FFFFFF; border-radius: 15px;"> [[{{#external_value: category}}_Moves|<span style="color:#FFFFFF;">{{#external_value: category}}</span>]] </span></div></td> | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="20%"><b>Category</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #{{ {{#external_value: category}}_color}}; border: #{{ {{#external_value: category}}_color}} 2px solid; color: #FFFFFF; border-radius: 15px;"> [[{{#external_value: category}}_Moves|<span style="color:#FFFFFF;">{{#external_value: category}}</span>]] </span></div></td> | ||
| − | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="20%"><b>Base Power</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px;"> {{#external_value: power}} </span></div></td> | + | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="20%"><b>Base Power</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px;"> {{#ifexpr: {{#external_value: power}} = 0 | — | {{#external_value: power}} }} </span></div></td> |
<td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="20%"><b>Accuracy</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px;"> {{#external_value: accuracy}}% </span></div></td><td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 15px 15px 1px;" width="20%"><b>[[Priority]]</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FFFFFF; color: #000000; border-radius: 15px;"> {{#ifexpr: {{#external_value: priority}} > 0 | +}}{{#external_value: priority}} </span></div></td> | | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="20%"><b>Accuracy</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px;"> {{#external_value: accuracy}}% </span></div></td><td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 15px 15px 1px;" width="20%"><b>[[Priority]]</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FFFFFF; color: #000000; border-radius: 15px;"> {{#ifexpr: {{#external_value: priority}} > 0 | +}}{{#external_value: priority}} </span></div></td> | | ||
<td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;" width="25%"><b>Type</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #FFFFFF; border: 3px #{{ {{#external_value: type}}_color_dark}} solid; color: #{{ {{#external_value: type}}_color_dark}}; border-radius: 15px;"> [[{{#external_value: type}}_(type)|<span style="color:#{{ {{#external_value: type}}_color_dark}};">{{#external_value: type}}</span>]] </span></div></td> | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 1px 1px 15px;" width="25%"><b>Type</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #FFFFFF; border: 3px #{{ {{#external_value: type}}_color_dark}} solid; color: #{{ {{#external_value: type}}_color_dark}}; border-radius: 15px;"> [[{{#external_value: type}}_(type)|<span style="color:#{{ {{#external_value: type}}_color_dark}};">{{#external_value: type}}</span>]] </span></div></td> | ||
<td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="25%"><b>Category</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #{{ {{#external_value: category}}_color}}; border: #{{ {{#external_value: category}}_color}} 2px solid; color: #FFFFFF; border-radius: 15px;"> [[{{#external_value: category}}_Moves|<span style="color:#FFFFFF;">{{#external_value: category}}</span>]] </span></div></td> | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="25%"><b>Category</b><div class="hr" style="margin-top: 4px; margin-bottom: 5px;"><span style="background: #{{ {{#external_value: category}}_color}}; border: #{{ {{#external_value: category}}_color}} 2px solid; color: #FFFFFF; border-radius: 15px;"> [[{{#external_value: category}}_Moves|<span style="color:#FFFFFF;">{{#external_value: category}}</span>]] </span></div></td> | ||
| − | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="25%"><b>Base Power</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px;"> {{#external_value: power}} </span></div></td> | + | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 1px 1px 1px;" width="25%"><b>Base Power</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px; text-align: center;"> {{#ifexpr: {{#external_value: power}} = 0 | — | {{#external_value: power}}}} </span></div></td> |
<td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 15px 15px 1px;" width="25%"><b>Accuracy</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px;"> {{#external_value: accuracy}}% </span></div></td>}} | <td style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 1px 15px 15px 1px;" width="25%"><b>Accuracy</b><div class="hr" style="margin-top: 2px; margin-bottom: 5px;"><span style="background: #FF0000; color: #FFFFFF; border-radius: 15px;"> {{#external_value: accuracy}}% </span></div></td>}} | ||
| − | <tr><td colspan="5" style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 15px 15px 15px;"><b>Availability</b><hr><div class="hr" style="border: 1px #000000 solid; text-align: left; margin-right: 45px; margin-left: 45px; margin-bottom: 5px; margin-top: 10px; background: # | + | <tr><td colspan="5" style="background: #{{ {{#external_value: type}}_color_light}}; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; border-radius: 15px 15px 15px 15px;"><b>Availability</b><hr><div class="hr" style="border: 1px #000000 solid; text-align: left; margin-right: 45px; margin-left: 45px; margin-bottom: 5px; margin-top: 10px; background: #FFFFFF;"><ul type="square">{{#ifeq: {{{Pokemon|}}} | {{{Pokemon|-}}} | <li>Level-up - read the list of compatible Pokémon below.</li> | <li>Currently, no Pokémon learns this move via level-up within PWO.}} {{#ifexist: TMs/{{PAGENAME}} | <li>[[TMs/{{PAGENAME}}|TM{{#external_value: tmno}}]]</li>}} {{#ifexist: {{PAGENAME}}_Move_tutor_list | <li>[[{{PAGENAME}} Move tutor list|Move Tutor]]</li>}}</ul></div></td></tr> |
| − | {{#if: {{{Pokemon|}}} | <tr><td colspan="8" style="border: | + | {{#if: {{{Pokemon|}}} | <tr><td colspan="8" style="border: 2px #{{ {{#external_value: type}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 15px 15px 15px 15px;" width="90%"><b>Pokémon that learn it via level-up:</b><hr> |
| − | + | <center><table cellspacing"1" cellpadding="1" style="float: center; border: 2px #{{ {{#external_value: type}}_color_dark}} solid; margin-top: 5px; margin-left: 15px; margin-bottom: 5px; border-radius: 10px 10px 10px 10px; width: 60%; max-width: 75%; background: #{{ {{#external_value: type}}_color}}; text-align: center;"> | |
| − | <td colspan="1" style="border: 0px #{{ {{#external_value: type}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 10px 0px 0px 0px;" width="10%"><b> # </b><td colspan="2" style="border: 0px #{{{{{Type|???}}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 0px 0px 0px 0px;" width="80%"><b>Pokémon </b></td><td colspan="7" style="border: 0px #{{{{{Type|???}}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 0px 10px | + | <td colspan="1" style="border: 0px #{{ {{#external_value: type}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 10px 0px 0px 0px;" width="10%"><b> # </b><td colspan="2" style="border: 0px #{{{{{Type|???}}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 0px 0px 0px 0px;" width="80%"><b>Pokémon </b></td><td colspan="7" style="border: 0px #{{{{{Type|???}}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 0px 10px 0px 0px;" width="10%"><b> Level </b></td></tr>{{{Pokemon}}} |
<tr><td colspan="5" style="text-align: left; border: 0px #{{ {{#external_value: type}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 0px 0px 10px 10px;" width="100%"><small><p style="margin-left: 2px;"><ul><li>'''Bold''' indicates the Pokémon gains STAB from the move.</li> <li>--- indicates the Pokémon learns the move instinctively.</li></ul></p></small></td></tr> | <tr><td colspan="5" style="text-align: left; border: 0px #{{ {{#external_value: type}}_color}} solid; background: #{{ {{#external_value: type}}_color_light}}; border-radius: 0px 0px 10px 10px;" width="100%"><small><p style="margin-left: 2px;"><ul><li>'''Bold''' indicates the Pokémon gains STAB from the move.</li> <li>--- indicates the Pokémon learns the move instinctively.</li></ul></p></small></td></tr> | ||
| − | </table></center> | + | </table></center></td></tr>}} |
</table></center> | </table></center> | ||
[[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: priority}} > 0 | [[Category:Increased-priority moves]] }} {{#ifexpr: {{#external_value: priority}} < 0 | [[Category:Decreased-priority moves]] }} {{#ifeq: {{#external_value: typeless}} | Y | {{#ifexpr: {{#external_value: power}} > 0 | [[Category:Typeless Moves]]}}}} | [[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: priority}} > 0 | [[Category:Increased-priority moves]] }} {{#ifexpr: {{#external_value: priority}} < 0 | [[Category:Decreased-priority moves]] }} {{#ifeq: {{#external_value: typeless}} | Y | {{#ifexpr: {{#external_value: power}} > 0 | [[Category:Typeless Moves]]}}}} | ||
Latest revision as of 02:34, 18 November 2018
This is an informational template used for the data of each move, on their individual pages. It also works with conjunction in with Template:MPK - a plug-in for the template - to itemize all of the Pokemon that learn it in a list. Refer to the example section below, or the source code of a page that uses this template, for all of the parameters of the template.
Exemplification of the Template
All parameters of the template in use: {{MoveInfo|Crunch|Description=Inflicts damage, and has a 20% chance to reduce the target's Special Defense by 1 stage.|Limitations=Can not cause the target to flinch.|Pokemon={{MPK|Mewtwo}}{{MPK|Raticate|l=24}}}}
Outputs:
| Crunch | ||||||||||||||||||||||||||||||
| Description: | Inflicts damage, and has a 20% chance to reduce the target's Special Defense by 1 stage. | |||||||||||||||||||||||||||||
| Type | Category | Base Power 80 |
Accuracy 100% |
|||||||||||||||||||||||||||
Availability
| ||||||||||||||||||||||||||||||
Pokémon that learn it via level-up:
| ||||||||||||||||||||||||||||||
All parameters of the template in use (typeless move): {{MoveInfo|Night Shade|Description=Inflicts damage.|Limitations=Does not equate to the target's HP.|Pokemon={{MPK|Gastly|l=1}}{{MPK|Haunter|l=2}}|Pokemon={{MPK|Gengar|l=3}}}}
Outputs:
| Night Shade | ||||||||||||||||||||||||||||||||||
| Description: | Inflicts damage. | |||||||||||||||||||||||||||||||||
| Type | Category | Base Power — |
Accuracy 100% |
|||||||||||||||||||||||||||||||
Availability
| ||||||||||||||||||||||||||||||||||
Pokémon that learn it via level-up:
| ||||||||||||||||||||||||||||||||||
Variables Explained
- Move Name - It should be the first variable entered into the template, immediately after {{MoveInfo|.
- Description - Describe how the move functions when used in battle in PWO. For damage-dealing moves, remember to mention the secondary effects as well, if they exist -- stat-enhancing effects, status-ailment inductions, and so forth.
- Limitations - If the move is flagged as broken, the template will load this field. For this field, simply explain how the move functions differently than it did in the handheld games, due to limitations in PWO's current battle system.
- l - It's used specifically in the MPK template, to specify the level wherein the Pokemon learns the move. If it is an instinctive move of the Pokemon, simply do not add the parameter.