Template:HeldItems/Games2/doc: Difference between revisions
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..." |
m fix categorization issue |
||
Line 53: | Line 53: | ||
|} | |} | ||
[[Category:Documentation templates]] | <noinclude>[[Category:Documentation templates]]</noinclude> |
Latest revision as of 02:46, 28 December 2023
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
- 1: the first of a pair of games to show in this template (for Pokémon Red and Blue Versions: "Red")
- 2: the second of a pair of games to show in this template (for Pokémon Red and Blue Versions: "Blue")
- 3: the page title for the pair of games shown by this template, so that they can be linked (for Pokémon Red and Blue Versions: "Pokémon Red and Blue Versions")
- 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 | ![]() |
Ultra Sun | Ultra Moon | ![]() |