Template:Game name

From Valve Developer Community
Jump to: navigation, search
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Each game should have a {{<game shortcut>}} template that uses {{software}} (E.G. Team Fortress 2 uses {{tf2}}, which produces Team Fortress 2 Team Fortress 2). Please use these instead of this template. If it does not exist, you can create one by yourself or ask another users on this wiki.
Curly brackets white.pngTemplate Documentation
Page history
Obsolete-notext.pngDeprecated:If the game you look for has an icon template, you can use {{<game shortcut>|4}} instead, or create your own version of that (example: {{hl2|4}} for Half-Life 2 Half-Life 2). See Help:Templates#Per-game Templates.

An inline template that displays a game's icon and name with colored text and the subtle background from the add, only, and also templates. Intended for situations where the full game name is better than just its icon (such as in the middle of a sentence), and the reader's focus should be drawn to the presence of the game in whatever idea is being communicated.


This template has four parameters:

{{{1}}}This first parameter has no name. It should be the transclusion of exactly one template from Category:Game icons without the {{ }} double braces. If this parameter is omitted, then {{game icon name|{{{name}}}}} will instead be used for it.
{{{name}}}This parameter is required for the name of the game. The name of the game must necessarily coincide with the title of the article of the game itself to which you are linking. Do not write the suffix there, for this there is a third parameter.
Note.pngNote:It is clear that it is inconvenient to constantly write down the name parameter with the full name of the game, but on the other hand, in this case "switch" is not used, which means that if a new game or mod appears, it will be enough just to add its icon as a template and then this game/mod will work fine with this template.
{{{suf}}}This parameter is needed so that the icon and the name of the game lead to the page of the language you need. Be sure to write ":es" but not "es"
{{{icon}}}Set this parameter to 0 to hide the game icon.
{{{link}}}If set, this is where the text will actually link to, instead of linking to {{{name}}}. The game icon will still link to the game, though.
Note.pngNote:These links are very shiny. No one would expect these unique links to link to somewhere else other than the game's page, so use this parameter with care!
{{{gl}}}This parameter will make this template look like the {{Game link}} template.


{{Game name|hl2|name=Half-Life 2}} Half-Life 2 Half-Life 2
{{Game name|name=Half-Life 2}} Half-Life 2 Half-Life 2
{{Game name|src07|name=Source 2007}} Source 2007 Source 2007
{{Game name|gmod|name=Garry's Mod}} Garry's Mod Garry's Mod
{{Game name|portal2|suf=:ru|name=Portal 2}} Portal 2 Portal 2
{{Game name|l4d|icon=0|name=Left 4 Dead}} Left 4 Dead
{{Game name|bms|name=Black Mesa|link=Black Mesa (Source)}} Black Mesa Black Mesa
{{Game name|hl2|gl=1|name=Half-Life 2}} Half-Life 2 Half-Life 2

See also