Template:Movehead/TMGames

# Pokémon Types Egg Groups Compatibility
TM00
...
...
...
...
...
...
...



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

This template creates a header for a TM/Move Tutor learnset table on move pages.

This header has sticky game headers so that you can always see which game each column belongs to. (Scroll past the top of the #Examples below to see the effect.)

When a new game is released, this template will need to be updated, as will {{Movehead/Games}}. When there's a new generation, the other headers will also need to be updated.

Parameters

Unnamed
  • 1: the type of the move whose page this is on (e.g., fire for Ember)
  • 2 (optional): the number of columns the "Compatibility" header can cover (defaults to 100, probably doesn't need to be changed)
Named
  • [g#]: number of games/columns this generation should cover (none to hide the generation). This value dictates which of the following parameters will apply. If 1 is set, [g#g] and [g#tm] will apply, otherwise [g#g-##] and [g#tm-##] will apply, where ## can be from 1 to the the value set here, with each ## applying to a subcolumn for this generation.
    • g1: number of games/subcolumns in Generation I,
    • g2: number of games/subcolumns in Generation II,
    • etc...
    • Note that currently g1, g2, g3, g4, g6, and g9 are only programmed for none or 1, g5 and g7 accept none, 1, or 2, and g8 accepts none, 1, 2, or 3. This may change in the future. Any unexpected values will behave the same as none.
  • [g#g] (optional): text denoting the specific game that this generation applies to (such as {{gameabbrev4|DP}} for g4g). This parameter can only be used if g# was set to 1 and should denote that the column only applies to a specific game in the generation (such as if the move wasn't programmed in earlier games).
    • g1g: the specific game covered by the Generation I column,
    • g2g: the specific game covered by the Generation II column,
    • etc...
  • [g#g-##] (optional): text denoting the specific game that this subcolumn of [Generation #] applies to (such as {{gameabbrev4|DP}} for g4g-1). This parameter can only be used if the value of g# is greater than 1. Most values default to no text.
    • g5g-1, g5g-2: if g5 is 2, these parameters default to BW and B2W2,
    • g7g-1, g7g-2: if g7 is 2, these parameters default to SMUSUM and PE,
    • g8g-1, g8g-2, g8g-3: if g8 is 3, these parameters default to SwSh, BDSP, and LA (if g8 is 2, the first two are used),
    • Currently, no other generations are programmed such that their g#g-## parameters can be used (meaning only the g#g parameters can be used).
  • [g#tm], [g#tm-##]: the TM number for each generation/its first, second, etc game (for example, 50 for TM50)
    • g1tm, g1tm-1, g1tm-2, g1tm-3: the TM number for Generation I or its first, second, etc game(s),
    • g2tm, g2tm-1, g2tm-2, g2tm-3: the TM number for Generation II or its first, second, etc game(s),
    • etc... (Currently generations are split into three sets of games at most.)
  • [tmhm#], [tmhm#-##]: the machine type for the column in [Generation #]'s ## subcolumn (for instance, use g4tm=01 and tmhm4=HM together to link to HM01); defaults to TM

Examples

{{Movehead/TMGames|Dark|g1tm=23
|g2g={{gameabbrev2|C}}|g2tm=24
|g3tm=25
|g4tm=26
|g5tm=27
|g6tm=28
|g7=2|g7tm-1=29|g7tm-2=30
|g8=3|g8tm-1=31|g8tm-2=32|g8tm-3=33
|g9tm=34
}}
{{Moveentry/12|0004|Charmander|type=Fire|2|Monster|Dragon|?|II|III|IV|V|VI|VII|PE|VIII|BDSP|━|IX|STAB='''}}
{{Moveentry/12|0005|Charmeleon|type=Fire|2|Monster|Dragon|?|II|III|IV|V|VI|VII|PE|VIII|BDSP|━|IX|STAB='''}}
{{Moveentry/12|0006|Charizard|type=Fire|type2=Flying|2|Monster|Dragon|?|II|III|IV|V|VI|VII|PE|VIII|BDSP|━|IX|STAB='''}}
{{Moveentry/12|0031|Nidoqueen|type=Poison|type2=Ground|1|No Eggs Discovered|No Eggs Discovered|?|II|III|IV|V|VI|VII|PE|VIII|BDSP|LA|━}}
|}
# Pokémon Types Egg Groups Compatibility
TM28
0004 Charmander FireIC Big.png Monster Dragon ? II III IV V VI VII PE VIII BDSP IX
0005 Charmeleon FireIC Big.png Monster Dragon ? II III IV V VI VII PE VIII BDSP IX
0006 Charizard FireIC Big.png
FlyingIC Big.png
Monster Dragon ? II III IV V VI VII PE VIII BDSP IX
0031 Nidoqueen PoisonIC Big.png
GroundIC Big.png
No Eggs Discovered No Eggs Discovered ? II III IV V VI VII PE VIII BDSP LA


{{Movehead/TMGames|Dark|g1tm=23
|g2tm=24
|g3tm=25
|g4tm=26
|g5tm=27
|g6tm=28
|g7tm=29
|g8tm=31
|g9tm=34
}}
{{Moveentry/9|0004|Charmander|type=Fire|2|Monster|Dragon|?|II|III|IV|V|VI|VII|VIII|IX|STAB='''}}
{{Moveentry/9|0005|Charmeleon|type=Fire|2|Monster|Dragon|?|II|III|IV|V|VI|VII|VIII|IX|STAB='''}}
{{Moveentry/9|0006|Charizard|type=Fire|type2=Flying|2|Monster|Dragon|?|II|III|IV|V|VI|VII|VIII|IX|STAB='''}}
{{Moveentry/9|0031|Nidoqueen|type=Poison|type2=Ground|1|No Eggs Discovered|No Eggs Discovered|?|II|III|IV|V|VI|VII|VIII|━}}
|}
# Pokémon Types Egg Groups Compatibility
TM28
0004 Charmander FireIC Big.png Monster Dragon ? II III IV V VI VII VIII IX
0005 Charmeleon FireIC Big.png Monster Dragon ? II III IV V VI VII VIII IX
0006 Charizard FireIC Big.png
FlyingIC Big.png
Monster Dragon ? II III IV V VI VII VIII IX
0031 Nidoqueen PoisonIC Big.png
GroundIC Big.png
No Eggs Discovered No Eggs Discovered ? II III IV V VI VII VIII

Updating

New generation

To add an entire new generation, find the following...

--><noinclude>

and replace it with the text below.

-->{{#ifeq:   {{{g###|1}}}|none||!! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g|}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm|}}}|tutor|[[Move Tutor#Generation @@@]]|[[TM{{{g###tm|00}}}]] }}</div>}}<!--###

--><noinclude>

Then, replace text as described below. Note that there may be more than one instance of these strings, so be careful not to miss any.

  • Replace ### with the number of the new generation (for example, 4 for Generation IV)
  • Replace @@@ with the roman numerals for the new generation (like IV), so that the template can link to the proper section of the Move Tutor page (once the game is out and that page is filled in) if "tutor" is supplied for the tm parameter

One case to two

To go from one game to two, search for the text below (replacing ### with the number of the target generation and @@@ with its roman numeral)

-->{{#ifeq:   {{{g###|1}}}|none||!! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g|}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm|}}}|tutor|[[Move Tutor#Generation @@@]]|[[TM{{{g###tm|00}}}]] }}</div>}}<!--

and replace it with the text below.

-->{{#switch: {{{g###|1}}}
|none=
|1=!! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g|}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm|}}}|tutor|[[Move Tutor#Generation @@@]]|[[TM{{{g###tm|00}}}]] }}</div>
|2=!! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g-1|{{gameabbrev###|XXXXX1}}}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm-1|}}}|tutor|[[Move Tutor#loremipsum1]]|[[TM{{{g###tm-1|00}}}]] }}</div> !! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g-2|{{gameabbrev###|XXXXX2}}}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm-2|}}}|tutor|[[Move Tutor#loremipsum2]]|[[TM{{{g###tm-2|00}}}]] }}</div>
}}<!--

Then, replace text as described below. Note that there may be more than one instance of these strings, so be careful not to miss any.

  • Replace ### with the number of the target generation (for example, 4 for Generation IV)
  • Replace @@@ with the roman numerals for the target generation (like IV), so that the template can link to the proper section of the Move Tutor page (once the game is out and that page is filled in) if "tutor" is supplied for the tm parameter
  • Replace XXXXX1 with the abbreviation of the first game (a valid input to the target generation's gameabbrev template, such as DPPt for {{gameabbrev4}})
  • Replace XXXXX2 with the abbreviation of the second game (a valid input to the target generation's gameabbrev template, such as HGSS for {{gameabbrev4}})
  • Replace loremipsum1 with the section title that best applies to the first game on the Move Tutor page (such as Generation IV, since DP and Pt have separate sections (either "tutor" is not expected to be used with this case, or it may be that while there is a difference regarding the tutors, it is minor and not worth splitting))
  • Replace loremipsum2 with the section title that best applies to the second game on the Move Tutor page (such as HeartGold and SoulSilver)

Adding extra cases

To add a third case where there are already two, search for the text below (replacing ### with the number of the target generation)

}}<!--###

and replace it with the text below.

|3=!! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g-1|{{gameabbrev###|XXXXX1}}}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm-1|}}}|tutor|[[Move Tutor#loremipsum1]]|[[TM{{{g###tm-1|00}}}]] }}</div> !! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g-2|{{gameabbrev###|XXXXX2}}}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm-2|}}}|tutor|[[Move Tutor#loremipsum2]]|[[TM{{{g###tm-2|00}}}]] }}</div> !! style="border-bottom: 1px solid #{{{{{1|fire}}} color dark}};" {{!}} <div>{{{g###g-3|{{gameabbrev###|XXXXX3}}}}}</div><div class="blacklinks">{{#ifeq: {{{g###tm-3|}}}|tutor|[[Move Tutor#loremipsum3]]|[[TM{{{g###tm-3|00}}}]] }}</div>
}}<!--###

Then, replace text as described below. Note that there may be more than one instance of these strings, so be careful not to miss any.

  • Replace ### with the number of the target generation (for example, 4 for Generation IV)
  • Replace XXXXX1 with the abbreviation of the first game (a valid input to the target generation's gameabbrev template, such as DP for {{gameabbrev4}})
  • Replace XXXXX2 with the abbreviation of the second game (a valid input to the target generation's gameabbrev template, such as Pt for {{gameabbrev4}})
  • Replace XXXXX3 with the abbreviation of the second game (a valid input to the target generation's gameabbrev template, such as HGSS for {{gameabbrev4}})
  • Replace loremipsum1 with the section title that best applies to the first game on the Move Tutor page (such as Diamond and Pearl for {{gameabbrev4}})
  • Replace loremipsum2 with the section title that best applies to the second game on the Move Tutor page (such as Platinum for {{gameabbrev4}})
  • Replace loremipsum3 with the section title that best applies to the second game on the Move Tutor page (such as HeartGold and SoulSilver for {{gameabbrev4}})

Currently, only three games/subcolumns are needed. In the case that extra subcolumns become necessary in the future, you can still search for the same text shown at the top of this section, but the replacement text will need to be modified/extended.