Template:Game/doc: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Created page with "This template is to be used to link to core series games which have the word "Version" in their titles. By default, the output will not display the word "Version". Genera...")
 
(note deprecation of field 4)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
Generations VI onward do not use the word "Version", so this template should only be used for games from generations I through V.
Generations VI onward do not use the word "Version", so this template should only be used for games from generations I through V.


==Usage==
If aiming to link to [[Pokémon Black and White Versions 2|Black 2 and White 2]], please use {{template|B2W2}} instead.
<pre>
{{game
|1
|2
|3
|4
}}
</pre>


==Template fields==
==Template fields==
* '''field 1 (version name)''' - The name of the version, for example "Red" or "Diamond".
* '''field 1 (version name)''' - The name of the version, for example "Emerald". Paired versions can also be used with an "and" in between, for example "Diamond and Pearl".
* '''field 2 (suffix)''' (optional) - Any suffix to be added at the end of the word "Version". A common use case is putting an "s" here to link to "Versions".
* '''field 2 (suffix)''' (optional) - Any suffix to be added at the end of the word "Version". A common use case is putting an "s" here to link to "Versions".
* '''field 3 (display text)''' (optional) - The text to be displayed as the clickable link. If this is left blank, then "Pokemon (field 1)" displays.
* '''field 3 (display text)''' (optional) - The text to be displayed as the clickable link. If this is left blank, then "Pokémon <code><field 1></code>" (e.g. "Pokémon Emerald") displays.
* '''field 4 (extra descriptor)''' (optional) - Special case for [[Pokémon Black and White Versions 2]]. Displays an extra descriptor one space after "Version".
 
===Deprecated fields===
The following fields are deprecated - any pages still using them should be revised to no longer use them.
* '''field 4 (second suffix)''' (optional) - Adds an extra descriptor to the end of the link, one space after field 2. This was originally a special case for {{B2W2}}. Please use the template {{template|B2W2}} instead to link to those games.


==Examples==
==Examples==
Line 23: Line 18:
===One version===
===One version===
<pre>
<pre>
{{game|Red}}
{{game|Emerald}}
</pre>
</pre>
{{game|Red}}
{{game|Emerald}}


===Two versions (with suffix)===
===Two versions (with suffix)===
Line 44: Line 39:
</pre>
</pre>
{{game|Diamond and Pearl|s|Pokémon Diamond, Pearl}}, {{game|Platinum||Platinum}}, {{game|HeartGold and SoulSilver|s|HeartGold, and SoulSilver}}
{{game|Diamond and Pearl|s|Pokémon Diamond, Pearl}}, {{game|Platinum||Platinum}}, {{game|HeartGold and SoulSilver|s|HeartGold, and SoulSilver}}
===Black 2 and White 2===
<pre>
{{game|Black and White|s 2|Black 2 and White 2}}
</pre>
{{game|Black and White|s 2|Black 2 and White 2}}
===All of generation V===
<pre>
{{game|Black and White|s|Pokémon Black, White}}, {{game|Black and White|s 2|Black 2, and White 2}}
</pre>
{{game|Black and White|s|Pokémon Black, White}}, {{game|Black and White|s 2|Black 2, and White 2}}


<noinclude>[[Category:Documentation templates]]</noinclude>
<noinclude>[[Category:Documentation templates]]</noinclude>

Latest revision as of 04:55, 16 July 2024

This template is to be used to link to core series games which have the word "Version" in their titles. By default, the output will not display the word "Version".

Generations VI onward do not use the word "Version", so this template should only be used for games from generations I through V.

If aiming to link to Black 2 and White 2, please use {{B2W2}} instead.

Template fields

  • field 1 (version name) - The name of the version, for example "Emerald". Paired versions can also be used with an "and" in between, for example "Diamond and Pearl".
  • field 2 (suffix) (optional) - Any suffix to be added at the end of the word "Version". A common use case is putting an "s" here to link to "Versions".
  • field 3 (display text) (optional) - The text to be displayed as the clickable link. If this is left blank, then "Pokémon <field 1>" (e.g. "Pokémon Emerald") displays.

Deprecated fields

The following fields are deprecated - any pages still using them should be revised to no longer use them.

  • field 4 (second suffix) (optional) - Adds an extra descriptor to the end of the link, one space after field 2. This was originally a special case for Pokémon Black 2 and White 2. Please use the template {{B2W2}} instead to link to those games.

Examples

One version

{{game|Emerald}}

Pokémon Emerald

Two versions (with suffix)

{{game|Gold and Silver|s}}

Pokémon Gold and Silver

Three versions (with custom display)

{{game|Ruby and Sapphire|s|Pokémon Ruby, Sapphire}} and {{game|Emerald||Emerald}}

Pokémon Ruby, Sapphire and Emerald

List of several versions

{{game|Diamond and Pearl|s|Pokémon Diamond, Pearl}}, {{game|Platinum||Platinum}}, {{game|HeartGold and SoulSilver|s|HeartGold, and SoulSilver}}

Pokémon Diamond, Pearl, Platinum, HeartGold, and SoulSilver