Difference between revisions of "Template:M"

From Pokemon World Online Wiki
Jump to: navigation, search
m (Undo revision 9308 by Professor.Oak (talk))
(Undo revision 22486 by Paarthunax (talk))
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
−
<includeonly>{{#get_web_data:url=http://iblamelee.co.uk/pwo/wiki/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}}
+
<includeonly>{{#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}}
 
<tr>
 
<tr>
 
{{#if: {{{l|}}} | <td>{{padleft:{{{l}}}|5| }}</td> | <td><nowiki> --- </nowiki></td>}}
 
{{#if: {{{l|}}} | <td>{{padleft:{{{l}}}|5| }}</td> | <td><nowiki> --- </nowiki></td>}}
−
<td>{{#ifeq: {{#external_value: broken}} | Y | {{#ifeq: {{{s|}}} | {{{s|-}}} | '''''{{#external_value: name}}''''' | '''{{#external_value: name}}'''}} | {{#ifeq: {{{s|}}} | {{{s|-}}} | ''{{#external_value: name}}'' | {{#external_value: name}}}}}}
+
<td>{{#ifeq: {{#external_value: broken}} | Y | {{#ifeq: {{{s|}}} | {{{s|-}}} | '''''[[{{#external_value: name}}|<span style="color:#000;">{{#external_value: name}}</span>]]''''' | '''[[{{#external_value: name}}|<span style="color:#000;">{{#external_value: name}}</span>]]'''}} | {{#ifeq: {{{s|}}} | {{{s|-}}} | ''[[{{#external_value: name}}|<span style="color:#000;">{{#external_value: name}}</span>]]'' | [[{{#external_value: name}}|<span style="color:#000;">{{#external_value: name}}</span>]]}}}}
−
<td>{{#external_value: type}}</td>
+
<td style="background: #{{{{#external_value: type}}_color}};">[[{{#external_value: type}}_(type)|<span style="color:#000;">{{#external_value: type}}</span>]]</td>
−
<td>{{#external_value: category}}</td>
+
<td style="background: #{{{{#external_value: category}}_color}};"><span style="color:#FFFFFF;">[[{{#external_value: category}} Moves|<span style="color:#FFFFFF;">{{#external_value: category}}</span>]]</td>
 
<td>{{#external_value: power}}</td>
 
<td>{{#external_value: power}}</td>
 
<td>{{#external_value: accuracy}}</td>
 
<td>{{#external_value: accuracy}}</td>

Latest revision as of 01:38, 18 November 2018

General Information

This template uses the data found on this page to generate its data. The template accepts three parameters. The first parameter, the move's name, is passed without a parameter name. The second parameter, denoted by the parameter 'l' (the letter) is the level. If the move is known at the start (known instinctively), then the second parameter should not be used. The third parameter, denoted by the parameter 's', indicates whether or not the attack gets STAB bonus. The STAB parameter should be left blank the attack does not receive STAB. It then creates a table row with the information.

Syntax

{{m|Tackle|s=}}{{m|Tail Whip|l=3}}{{m|Solarbeam|l=40|s=}} displays the following (table header included for display reasons):

--- Tackle Normal Physical 50 100
3 Tail Whip Normal Status 0 100
40 Solarbeam Grass Special 120 100

Usage

This template should be used in conjunction with Template:Mtable to construct a moves table for each Pokémon.