Template:Game icon/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "__NOTOC__ == Description == This template takes the full game name and delivers the game's icon, if existent. === Parameters === * <span style="color:white;">'''1'''</span> -...")
 
(Undo revision 415310 by Pee (talk))
Tag: Undo
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Doc/subpage}}
This template takes the full game name and delivers the game's icon, if existent.
__NOTOC__
__NOTOC__
== Description ==
== Parameters ==
This template takes the full game name and delivers the game's icon, if existent.
* {{param|1}} - The full name of the game. See {{tl|Game icon name}} for a list of available names. Unsupported names generate nothing, so this template can be used carelessly without breaking anything.
 
* {{param|2}} - The first unnamed parameter of the corresponding game icon template; see examples.
=== Parameters ===
* <span style="color:white;">'''1'''</span> - The full name of the game. Unknown games generate nothing so this template can be used carelessly - in the worst case, nothing appears, not breaking anything.
* <span style="color:white;">'''suf'''</span> - The language suffix for the icon link to link to the correct language page. Do include the full suffix, including the colon, see below.


== Examples ==
== Examples ==
{| class=standard-table
{| class="wikitable"
! Wikitext
! Example
! Result
! Equivalent template
! Preview
|-
|-
| <pre>{{game icon|Half-Life 2}}</pre>
| <code><nowiki>{{game icon|Half-Life 2}}</nowiki></code>
|     {{game icon|Half-Life 2}}
| <code><nowiki>{{hl2}}</nowiki></code>
| {{game icon|Half-Life 2}}
|-
|-
| <pre>{{game icon|Half-Life 2|suf=:es}}</pre>
| <code><nowiki>{{game icon|Half-Life 2|4}}</nowiki></code>
|     {{game icon|Half-Life 2|suf=:es}}
| <code><nowiki>{{hl2|4}}</nowiki></code>
| {{game icon|Half-Life 2|4}}
|-
|-
| <pre>{{game icon|hl2}}</pre>
| <code><nowiki>{{game icon|hl2}}</nowiki></code>
|     {{game icon|hl2}}
| {{n/a}}
| {{game icon|hl2}}
|}
|}


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

Latest revision as of 17:29, 7 July 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

See also

{{Game icon name}}