Template talk:Tutormv: Difference between revisions
m (Created page with "See how awkward the Frontier Access page looks in terms of location? ~~~~") |
No edit summary |
||
Line 1: | Line 1: | ||
==Documentation== | |||
This template is meant for use on the [[Move Tutor]] page to condense the move tables. It is used in conjunction with the {{Template|tutormv/header}} template and two <code><nowiki>|}</nowiki></code> 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 <code>tutormv/header</code>. | |||
===Usage=== | |||
Simply invoke <code>tutormv/header</code>, specify the table type and optional header, list the moves using <code>tutormv</code> (this template), and end everything with two <code><nowiki>|}</nowiki></code>. | |||
For instance, the following code: | |||
<nowiki>{{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|}} | |||
|} | |||
|}</nowiki> | |||
produces the following sortable table: | |||
{{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|}} | |||
|} | |||
|} | |||
The header template recognizes <code>stad0</code>, <code>stad</code>, <code>crystal</code>, <code>xd</code>, <code>emerald</code>, <code>frlg</code>, <code>dp</code>, <code>platinum</code>, <code>hgss</code>, <code>bw</code> and <code>b2w2</code> 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 <code>none</code> if the tuition is free. The third parameter determines if the "Location" header will be used; <code>yes</code> makes it appear, <code>no</code> makes it disappear. The optional <code>disp</code> parameter adds a heading to the table; this is done by setting <code>disp=<heading></code>. | |||
Each <code>tutormv</code> [[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 <code>cat</code> for the move's [[damage category]], <code>loc</code> for the tutor's location, <code>tm</code> for the move's associated [[Generation I]] [[TM]], <code>hm</code> for the move's associated [[Generation I]] [[HM]], <code>bp</code> for the move's cost in [[Battle Point]]s. The <code>cat</code> parameter automatically adds a link, but <code>loc</code> does not. The <code>tm</code>, <code>hm</code>, and <code>bp</code> 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). | |||
__TOC__ | |||
==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) |
Revision as of 05:34, 10 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:
|
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)