Template talk:Tutormv: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary
Line 28: Line 28:
==Frontier Access==
==Frontier Access==
See how awkward the [[Frontier Access]] page looks in terms of location? [[User:Ht14|<span style="color:#DAA520"><sup>'''''ht'''''</sup></span>]][[User talk:Ht14|<span style="color:#C0C0C0"><small>''14''</small></span>]] 03:41, 15 August 2010 (UTC)
See how awkward the [[Frontier Access]] page looks in terms of location? [[User:Ht14|<span style="color:#DAA520"><sup>'''''ht'''''</sup></span>]][[User talk:Ht14|<span style="color:#C0C0C0"><small>''14''</small></span>]] 03:41, 15 August 2010 (UTC)
== Test text color change ==
|-
| {{mcolor|Arm Thrust|000000}}{{#if:|{{tt|*|{{{note}}}}}|}}
| style="background:#{{Fighting color}}; text-align:center" | {{typecolor|Fighting}}
{{#if: Physical|{{!}} style="background:#{{Physical color}}; text-align:center" {{!}} [[Physical move{{!}}{{color|{{Physical textcolor}}|Physical}}]]
}}{{#if: |{{!}}{{!}} {{{loc}}}
}}{{#if: |{{!}}{{!}} {{{bp}}}{{#iferror: {{#expr: {{{bp}}} + 1 }}||[[Battle Point|BP]]}}
}}{{#if: |{{!}}{{!}} {{#iferror: {{#expr: {{{tm}}} + 1 }}|{{{tm}}}|[[TM{{{tm}}}]]}}
}}{{#if: |{{!}}{{!}} {{#iferror: {{#expr: {{{hm}}} + 1 }}|{{{hm}}}|[[HM{{{hm}}}]]}}
}}{{#if: 15|{{!}}{{!}} style="background:#{{red color}}; color:#000; text-align:center" {{!}} 15
}}{{#if: 100%|{{!}}{{!}} style="background:#{{green color}}; color:#000; text-align:center" {{!}} 100%
}}{{#if: 5|{{!}}{{!}} style="background:#{{blue color}}; color:#000; text-align:center" {{!}} 5
}}{{#if: {{MS|000}}|{{!}}{{!}} style="background:#{{yellow color}}; color:#000; text-align:center" {{!}} {{MS|000}}}}
Rationale: Black on blue is not legible. --[[User:Raijinili|Raijinili]] ([[User talk:Raijinili|talk]]) 11:18, 21 February 2013 (UTC)

Revision as of 11:18, 21 February 2013

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:

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

|- | Arm Thrust | style="background:#FF8000; text-align:center" |  Fighting  | style="background:#EB5628; text-align:center" | Physical|| style="background:#E72838; color:#000; text-align:center" | 15|| style="background:#24A724; color:#000; text-align:center" | 100%|| style="background:#2E50D8; color:#000; text-align:center" | 5|| style="background:#FFD733; color:#000; text-align:center" | 000

Rationale: Black on blue is not legible. --Raijinili (talk) 11:18, 21 February 2013 (UTC)