Template:GBcard/doc: Difference between revisions

No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
# The card number as shown in-game, such as "A01" or "E01".
# The card number as shown in-game, such as "A01" or "E01".
# The card name, such as "Pikachu", "Ditto", "Bill", or "Grass Energy".
# 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 7 below.
#* 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 {{bp|Bulbasaur (Base Set 44)}}, this parameter would be "Base Set 44".
# The information between parenthesis in the Bulbapedia name. For {{bp|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 "[[:File:TCG1 A43 Scoop Up.png|Scoop Up]]" sprite to be categorized into "Category:Scoop Up".
# Optionally, use "-" as the last parameter to prevent categorization based on the card name. For instance, this prevents "[[:File:TCG1 A43 Scoop Up.png|Scoop Up]]" sprite to be categorized into "Category:Scoop Up".
Line 17: Line 17:
* [[:Category:Pokémon Card GB1 card sprites]] (first game) or [[:Category:Pokémon Card GB2 card sprites]] (second game)
* [[: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)]]
* 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 "[[:File:TCG1 A40 Bill.png|Bill]]" and "[[:File:TCG1 A39 Professor Oak.png|Professor Oak]]" sprites into [[:Category:Bill]] and [[:Category:Professor Oak]], respectively. This categorization may be prevented if the last parameter above has the value "-".
* 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 "[[:File:TCG1 A40 Bill.png|Bill]]" and "[[:File:TCG1 A39 Professor Oak.png|Professor Oak]]" sprites into [[:Category:Bill]] and [[:Category:Professor Oak]], respectively.
** Some Pokémon variations have the correct category automatically converted: for instance, the "[[:File:TCG1 P06 Flying Pikachu.png|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==
==Examples==

Latest revision as of 07:57, 9 April 2020

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.

  1. The value "1" or "2", representing the first or second TCG GB game.
  2. The set name, such as "Colosseum" or "Evolution".
  3. The card number as shown in-game, such as "A01" or "E01".
  4. 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.
  5. The information between parenthesis in the Bulbapedia name. For Bulbasaur (Base Set 44), this parameter would be "Base Set 44".
  6. 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:

Examples

Example 1

  • Image:

TCG1 A01 Nidoran.png

  • Code:
{{GBcard|1|Colosseum|A01|Nidoran♂|Base Set 55}}
  • Result:
TCG GB deck.png Game sprite of A01 - Nidoran♂ card, from the Colosseum set of Pokémon Trading Card Game.

Example 2

  • Image:

TCG2 A01 Bulbasaur.png

  • Code:
{{GBcard|2|Beginning Pokémon|A01|Bulbasaur|Bulbasaur Deck 1}}
  • Result:
TCG GB deck.png Game sprite of A01 - Bulbasaur card, from the Beginning Pokémon set of Pokémon Card GB2: Here Comes Team GR!.