Template:GBcard: Difference between revisions
From Bulbagarden Archives
Jump to navigationJump to search
(Adding some commentary.) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
Adds a category for the card name such as [[Category:Pikachu]], except when the parameter 6 is "-". | Adds a category for the card name such as [[Category:Pikachu]], except when the parameter 6 is "-". | ||
-->{{#ifeq:{{{6|}}}|-||[[Category:{{{4}}}]]}}<!-- | -->{{#ifeq:{{{6|}}}|-||[[Category:<!-- | ||
Some Pokémon variations are automatically converted. For instance, a "Flying Pikachu" sprite is still added to [[Category:Pikachu]], instead of "Category:Flying Pikachu". | |||
-->{{#switch:{{{4}}}<!-- | |||
-->|Flying Pikachu|Surfing Pikachu=Pikachu<!-- | |||
-->|Cool Porygon=Porygon<!-- | |||
-->|Hungry Snorlax=Snorlax<!-- | |||
-->|Great Rocket's Mewtwo=Mewtwo<!-- | |||
-->|Dark Ivysaur=Ivysaur<!-- | |||
-->|Dark Venusaur=Venusaur<!-- | |||
-->|Dark Charmeleon=Charmeleon<!-- | |||
-->|Dark Charizard=Charizard<!-- | |||
-->|Dark Wartortle=Wartortle<!-- | |||
-->|Dark Blastoise=Blastoise<!-- | |||
-->|Dark Raticate=Raticate<!-- | |||
-->|Dark Fearow=Fearow<!-- | |||
-->|Dark Arbok=Arbok<!-- | |||
-->|Dark Raichu=Raichu<!-- | |||
-->|Dark Clefable=Clefable<!-- | |||
-->|Dark Ninetales=Ninetales<!-- | |||
-->|Dark Golbat=Golbat<!-- | |||
-->|Dark Gloom=Gloom<!-- | |||
-->|Dark Vileplume=Vileplume<!-- | |||
-->|Dark Dugtrio=Dugtrio<!-- | |||
-->|Dark Persian=Persian<!-- | |||
-->|Dark Golduck=Golduck<!-- | |||
-->|Dark Primeape=Primeape<!-- | |||
-->|Dark Kadabra=Kadabra<!-- | |||
-->|Dark Alakazam=Alakazam<!-- | |||
-->|Dark Machoke=Machoke<!-- | |||
-->|Dark Machamp=Machamp<!-- | |||
-->|Dark Rapidash=Rapidash<!-- | |||
-->|Dark Slowbro=Slowbro<!-- | |||
-->|Dark Magneton=Magneton<!-- | |||
-->|Dark Muk=Muk<!-- | |||
-->|Dark Haunter=Haunter<!-- | |||
-->|Dark Gengar=Gengar<!-- | |||
-->|Dark Hypno=Hypno<!-- | |||
-->|Dark Electrode=Electrode<!-- | |||
-->|Dark Marowak=Marowak<!-- | |||
-->|Dark Hypno=Hypno<!-- | |||
-->|Dark Weezing=Weezing<!-- | |||
-->|Dark Starmie=Starmie<!-- | |||
-->|Dark Gyarados=Gyarados<!-- | |||
-->|Dark Vaporeon=Vaporeon<!-- | |||
-->|Dark Jolteon=Jolteon<!-- | |||
-->|Dark Flareon=Flareon<!-- | |||
-->|Dark Dragonair=Dragonair<!-- | |||
-->|Dark Dragonite=Dragonite<!-- | |||
-->|{{{4}}}<!-- | |||
-->}}<!-- | |||
-->]]<!-- | |||
-->}}<!-- | |||
-->}}<!-- | -->}}<!-- |
Latest revision as of 07:57, 9 April 2020
Game sprite of {{{3}}} - [[:bp:{{{4}}} ({{{5}}})|{{{4}}}]] card, from the [[:bp:{{{2}}} (GB{{{1}}})|{{{2}}}]] set of . |
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 generates a summary and categories for card sprites of Pokémon Trading Card Game and Pokémon Card GB2: Here Comes Team GR!.
Parameters
This template uses six unnamed parameters.
- The value "1" or "2", representing the first or second TCG GB game.
- The set name, such as "Colosseum" or "Evolution".
- The card number as shown in-game, such as "A01" or "E01".
- The card name, such as "Pikachu", "Ditto", "Bill", or "Grass Energy".
- The image is categorized according to this parameter. For instance, if this parameter is "Pikachu", the card will be added to Category:Pikachu. This can be prevented using the parameter 6 below.
- The information between parenthesis in the Bulbapedia name. For Bulbasaur (Base Set 44), this parameter would be "Base Set 44".
- Optionally, use "-" as the last parameter to prevent categorization based on the card name. For instance, this prevents "Scoop Up" sprite to be categorized into "Category:Scoop Up".
Categories
The card sprites are added to these categories:
- Category:Pokémon Card GB1 card sprites (first game) or Category:Pokémon Card GB2 card sprites (second game)
- The card set, such as Category:Colosseum (GB1) or Category:Beginning Pokémon (GB2)
- A category based on the card name, such as Category:Pikachu or Category:Mewtwo.
- Some Trainer cards may benefit from this categorization as well, such as adding "Bill" and "Professor Oak" sprites into Category:Bill and Category:Professor Oak, respectively.
- Some Pokémon variations have the correct category automatically converted: for instance, the "Flying Pikachu" sprite is added into Category:Pikachu, as opposed to "Category:Flying Pikachu".
- This categorization can be prevented by using the value "-" as the last parameter above.
Examples
Example 1
- Image:
- Code:
{{GBcard|1|Colosseum|A01|Nidoran♂|Base Set 55}}
- Result:
Game sprite of A01 - Nidoran♂ card, from the Colosseum set of Pokémon Trading Card Game. |
Example 2
- Image:
- Code:
{{GBcard|2|Beginning Pokémon|A01|Bulbasaur|Bulbasaur Deck 1}}
- Result:
Game sprite of A01 - Bulbasaur card, from the Beginning Pokémon set of Pokémon Card GB2: Here Comes Team GR!. |