Documentation
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|shard|no|disp=Route 212}} {{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 stad0
, stad
, crystal
, xd
, emerald
, frlg
, dp
, platinum
, hgss
, bw
and b2w2
as table types, and determines the table columns and header color using this required parameter. The second parameter is the type of currency required for the move tuition; it is set to the type of currency, or none
if the tuition is free. The third parameter determines if the "Location" header will be used; yes
makes it appear, no
makes it disappear. The optional disp
parameter adds a heading to the table; this is done by setting disp=<heading>
.
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 type. The next four ordered parameters (3 through 6) are only used for the shard prices for tutors that require shards. 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, hm
for the move's associated Generation I HM, bp
for the move's cost in Battle Points. The cat
parameter automatically adds a link, but loc
does not. The tm
, hm
, 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", "HM", or "BP" to be omitted).
Frontier Access
See how awkward the Frontier Access page looks in terms of location? ht14 03:41, 15 August 2010 (UTC)
Test text color change
Rationale: Black on blue is not legible.
- Mmm.
- Lessons:
- Eyes.
- Skill Link shouldn't be using this template anyway.
- Someone should take this lesson to heart. Until next time, folks. --Raijinili (talk)
New conditional? (Mystery Dungeon)
On Hawlucha's Slam School, I recently added a list of the tutor moves available in-game, along with their costs. However, since this template is set up to work nicely with shard tables in the core series, this left the cost column with a red background. Would it be reasonable to add a new "poke=" conditional to give this column a white background for this table and any other MD game with tutor moves that cost Poké? If so, this code should be able to work:
}}{{#if: {{{poke|}}}|{{!}}{{!}} {{#iferror: {{#expr: {{{poke}}} + 1 }}|[[File:Poké currency.png|link=Poké]]{{{poke}}}}}
If it's too much of an edge case/stretching the purpose of this template, I understand, though. VioletPumpkin (talk) 16:46, 22 July 2016 (UTC)