Template:Tutormv: Difference between revisions
mNo edit summary |
m (Just a teeny thing that looks nicer IMO, revert if it doesn't though) |
||
Line 27: | Line 27: | ||
{| | {| | ||
</noinclude><includeonly>|- | </noinclude><includeonly>|- | ||
| {{ | | {{mcolor|{{{1}}}|000000}}{{#if:{{{note|}}}|{{tt|*|{{{note}}}}}|}} | ||
| align="center" style="background:#{{{{{2}}} color}}" | {{typecolor|{{{2}}}}} | | align="center" style="background:#{{{{{2}}} color}}" | {{typecolor|{{{2}}}}} | ||
{{#if: {{{cat|}}}|{{!}} align="center" style="background:#{{{{{cat}}} color}}" {{!}} [[{{{cat}}} move{{!}}{{color|{{{{{cat}}} textcolor}}|{{{cat}}}}}]] | {{#if: {{{cat|}}}|{{!}} align="center" style="background:#{{{{{cat}}} color}}" {{!}} [[{{{cat}}} move{{!}}{{color|{{{{{cat}}} textcolor}}|{{{cat}}}}}]] |
Revision as of 02:46, 8 February 2011
This template is meant for use on the move tutor page to condense the move tables. It is used in conjunction with the {{tutormv/header}}
template and two |}
to create uniform, sortable lists of tutored moves. It supports all the different tables on the move tutor page, but adding an additional table type would likely require a change to tutormv/header
.
Usage
Simply invoke tutormv/header
, specify the table type and optional header, list the moves using tutormv
(this template), and end everything with two |}
.
For instance, the following code:
{{tutormv/header|platinum|Route 1337}} {{tutormv|ThunderPunch|Electric|cat=Physical|2|0|6|0}} {{tutormv|Mud-Slap|Ground|cat=Special|4|0|4|0|}} |} |}
produces the following sortable table:
|
The header template recognizes crystal
, xd
, emerald
, frlg
, dp
, platinum
, hgss
, and bw
as table types, and determines the table columns and header color using this required parameter. The second optional header parameter is simply the title of the table; it will not be displayed if omitted.
Each tutormv
move entry supports a number of ordered and named parameters. The first two ordered parameters are used for the move's name and elemental type. The next four ordered parameters (3 through 6) are only used for the shard prices in the Platinum tutor tables. The named parameters may be specified at any point in the parameter list, but the order of parameters should be kept consistent for ease of editing; the template will automatically place the named parameter in the correct column.
Named parameters include cat
for the move's damage category, loc
for the tutor's location, tm
for the move's associated Generation I TM, bp
for the move's cost in Battle Points. The cat
parameter automatically adds a link, but loc
does not. The tm
and bp
parameters add text to the column, but only if the parameter's value is numeric (i.e., passing — as the value for one of these will cause "TM" or "BP" to be omitted).