Template:HeldItems/Games2/doc

From Bulbapedia, the community-driven Pokémon encyclopedia.
< Template:HeldItems‎ | Games2
Revision as of 13:55, 24 August 2023 by Tiddlywinks (talk | contribs) (Created page with "This template is used to build the Games column of a table that shows which items a Pokémon can hold or drop. It is meant to be used on its species page. This template shows...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This template is used to build the Games column of a table that shows which items a Pokémon can hold or drop. It is meant to be used on its species page. This template shows two paired game, while Template:HeldItems/Games2 shows a single, unpaired game.

Other pages used to create these tables include: Template:HeldItems/header, Template:HeldItems/Items1, Template:HeldItems/Items2, Template:HeldItems/Items3, and Template:HeldItems/ItemsLA. (See this page to check if there are any others that have not been added.)

Parameters

Unnamed
Named
  • gcolor1, gcolor2 (optional): an override for the background color of the first (1) or second (2) game; defaults to the value of parameter 1 or 2
  • tcolor1, tcolor2 (optional): a color for the text of the first (1) or second (2) game; defaults to black

Usage

A basic usage of Games2 is as follows.

{{HeldItems/header|type=Fairy}}
{{HeldItems/Games2|Omega Ruby|Alpha Sapphire|Pokémon Omega Ruby and Alpha Sapphire}}
{{HeldItems/Items1|Moon Stone|5}}
|}
Games Held items
Omega Ruby Alpha Sapphire

In cases like above, however, the text may be hard to read, so you can use the tcolor parameters to make it easier to see.

{{HeldItems/header|type=Fairy}}
{{HeldItems/Games2|Omega Ruby|Alpha Sapphire|tcolor1=FFF|tcolor2=FFF|Pokémon Omega Ruby and Alpha Sapphire}}
{{HeldItems/Items1|Moon Stone|5}}
|}
Games Held items
Omega Ruby Alpha Sapphire

The gcolor parameters can be used for games that may not have a color (but most core series games should have colors) or to force one game's color to be white to indicate that the row only applies to one of the games. The latter case is shown below.

{{HeldItems/header|type=Water}}
{{HeldItems/Games2|Ultra Sun|Ultra Moon|gcolor2=FFF|tcolor2={{Ultra Moon color}}|Pokémon Ultra Sun and Ultra Moon}}
{{HeldItems/Items1|DeepSeaTooth|5|availNote=Red-Striped: }}
{{HeldItems/Games2|Ultra Sun|Ultra Moon|gcolor1=FFF|tcolor1={{Ultra Sun color}}|Pokémon Ultra Sun and Ultra Moon}}
{{HeldItems/Items1|DeepSeaScale|5|availNote=Blue-Striped: }}
|}
Games Held items
Ultra Sun Ultra Moon
DeepSeaTooth DeepSeaTooth (Red-Striped: 5%)
Ultra Sun Ultra Moon
DeepSeaScale DeepSeaScale (Blue-Striped: 5%)