Got a spare minute? The Archives need some love. See the to-do list to find a way to help.
If you upload a new image make sure you name and categorize it properly. If in doubt, ask an admin or see our FAQ page.

Template:GBcard: Difference between revisions

From Bulbagarden Archives
Jump to navigationJump to search
No edit summary
(Adding some commentary.)
Line 3: Line 3:
| width="20px" style="{{roundy|80px}} background: #CCCCCC" align="center" | [[File:TCG GB deck.png]]
| width="20px" style="{{roundy|80px}} background: #CCCCCC" align="center" | [[File:TCG GB deck.png]]
| Game sprite of {{{3}}} - {{bp|{{{4}}} ({{{5}}})|{{{4}}}}} card, from the {{bp|{{{2}}} (GB{{{1}}})|{{{2}}}}} set of {{#switch:{{{1}}}|1={{ga|Pokémon Trading Card Game}}|2={{bp|Pokémon Card GB2: Here Comes Team GR!}}}}.
| Game sprite of {{{3}}} - {{bp|{{{4}}} ({{{5}}})|{{{4}}}}} card, from the {{bp|{{{2}}} (GB{{{1}}})|{{{2}}}}} set of {{#switch:{{{1}}}|1={{ga|Pokémon Trading Card Game}}|2={{bp|Pokémon Card GB2: Here Comes Team GR!}}}}.
|}<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|6|[[Category:Pokémon Card GB{{{1}}} card sprites]][[Category:{{{2}}} (GB{{{1}}})]]{{#ifeq:{{{6|}}}|-||[[Category:{{{4}}}]]}}}}</includeonly><noinclude>{{documentation}}</noinclude>
|}<includeonly><!--
 
NAMESPACENUMBER tests if the current namespace is 6 (File). This template only adds any categories if it's used in the File namespace.
-->{{#ifeq:{{NAMESPACENUMBER}}|6|<!--
 
  Adds either [[Category:Pokémon Card GB1 card sprites]] or [[Category:Pokémon Card GB2 card sprites]].
  -->[[Category:Pokémon Card GB{{{1}}} card sprites]]<!--
 
  Add a category for the card set, such as [[Category:Colosseum (GB1)]]
  -->[[Category:{{{2}}} (GB{{{1}}})]]<!--
 
  Adds a category for the card name such as [[Category:Pikachu]], except when the parameter 6 is "-".
  -->{{#ifeq:{{{6|}}}|-||[[Category:{{{4}}}]]}}<!--
 
-->}}<!--
 
Documentation.
--></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 07:38, 9 April 2020

TCG GB deck.png 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.

  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!.