Template talk:Tutormv

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search


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.


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}}

produces the following sortable table:

Route 212
Move Type Cat. Shards
ThunderPunch  Electric  Physical 2 0 6 0
Mud-Slap  Ground  Special 4 0 4 0

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:
    1. Eyes.
    2. Skill Link shouldn't be using this template anyway.
  • Someone should take this lesson to heart. Until next time, folks. --Raijinili (talk)
I've hidden the template to prevent links appearing on the wanted pages, Mmm. --Spriteit (talk) 12:05, 22 February 2013 (UTC)

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)