Template:Game icon/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:
|}
|}


{{note|The use of <code>#ifexist</code> can make sense but also cause [[Special:WantedTemplates|wanted templates]] to be generated if this template has been used carelessly.}}
{{note|The use of <code>#if</code> can make sense but also cause [[Special:WantedTemplates|wanted templates]] to be generated if this template has been used carelessly.}}


== See also ==
== See also ==
{{tl2|Game icon name}}
{{tl2|Game icon name}}

Revision as of 14:23, 31 May 2024

Edit-copy.png
This is a documentation subpage for Template:Game icon.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template takes the full game name and delivers the game's icon, if existent.

Parameters

  • {{{1}}} - The full name of the game. See {{Game icon name}} for a list of available names. Unsupported names generate nothing, so this template can be used carelessly without breaking anything.
  • {{{2}}} - The first unnamed parameter of the corresponding game icon template; see examples.

Examples

Example Equivalent template Preview
{{game icon|Half-Life 2}} {{hl2}} Half-Life 2
{{game icon|Half-Life 2|4}} {{hl2|4}} Half-Life 2 Half-Life 2
{{game icon|hl2}} N/A
Note.pngNote:The use of #if can make sense but also cause wanted templates to be generated if this template has been used carelessly.

See also

{{Game icon name}}