Difference between revisions of "Template:M"

From Pokemon World Online Wiki
Jump to: navigation, search
m
m
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=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}}
 
<tr>
 
<tr>
{{#if: {{{2|}}} | <td>{{padleft:{{{2}}}|5| }}</td> | <td><nowiki> --- </nowiki></td>}}
+
{{#if: {{{l|}}} | <td>{{padleft:{{{l}}}|5| }}</td> | <td><nowiki> --- </nowiki></td>}}
{{#ifeq: {{#external_value: broken}} | Y | <td>'''{{#external_value: name}}'''</td> | <td>{{#external_value: name}}</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>{{#external_value: type}}</td>
 
<td>{{#external_value: type}}</td>
 
<td>{{#external_value: category}}</td>
 
<td>{{#external_value: category}}</td>
Line 9: Line 9:
 
</tr></includeonly>
 
</tr></includeonly>
 
<noinclude>==General Information==
 
<noinclude>==General Information==
This template uses the data found on [[MovesRawList|this page]] to generate its data. The template accepts two parameters. Both parameters are unnamed. The first parameter is the move's name (e.g. Tackle). The second parameter is the level. If the move is known at the start (known instinctively), then the second parameter should not be used. It then creates a table row with the information.
+
This template uses the data found on [[MovesRawList|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==
 
==Syntax==
<nowiki>{{m|Tackle}}{{m|Tail Whip|3}}</nowiki> displays the following (table header included for display reasons):
+
<nowiki>{{m|Tackle|s=}}{{m|Tail Whip|l=3}}{{m|Submission|l=40|s=}}</nowiki> displays the following (table header included for display reasons):
 
<table class="wikitable" width="100%" style="text-align: center;">
 
<table class="wikitable" width="100%" style="text-align: center;">
{{m|Tackle}}
+
{{m|Tackle|s=}}
{{m|Tail Whip|3}}
+
{{m|Tail Whip|l=3}}
 +
{{m|Submission|l=40|s=}}
 
</table>
 
</table>
 
==Usage==
 
==Usage==
 
This template should be used in conjunction with [[Template:Mtable]] to construct a moves table for each Pokémon.</noinclude>
 
This template should be used in conjunction with [[Template:Mtable]] to construct a moves table for each Pokémon.</noinclude>

Revision as of 22:20, 21 August 2012

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|Submission|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 Submission Fighting Physical 80 80

Usage

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