Template:Game icon/doc: Difference between revisions
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> -...") |
(Examples.) |
||
Line 1: | Line 1: | ||
{{documentation subpage}} | |||
This template takes the full game name and delivers the game's icon, if existent. | |||
__NOTOC__ | __NOTOC__ | ||
== Parameters == | |||
* {{param|1}} - The full name of the game. See {{tl|Game icon name}} for a list of available names. Unknown names generate nothing so this template can be used carelessly without breaking anything. | |||
* {{param|suf}} - The language suffix for the icon link to link to the correct language page. Do include the full suffix, including the colon, for example <code>:ru</code>, see below. | |||
* | |||
* | |||
== Examples == | == Examples == | ||
{| | {| style="background: none;" | ||
| <code><nowiki>{{game icon|Half-Life 2}}</nowiki></code> | |||
| → {{game icon|Half-Life 2}} | |||
| < | |||
| | |||
|- | |- | ||
| < | | <code><nowiki>{{game icon|Half-Life 2|suf=:es}}</nowiki></code> | ||
| | | → {{game icon|Half-Life 2|suf=:es}} | ||
|- | |- | ||
| < | | <code><nowiki>{{game icon|hl2}}</nowiki></code> | ||
| | | → {{game icon|hl2}} | ||
| {{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.}} | |||
|} | |} | ||
== See Also == | == See Also == | ||
{{tl|Game icon name}} | {{tl|Game icon name}} |
Revision as of 08:19, 2 October 2021

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.
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. Unknown names generate nothing so this template can be used carelessly without breaking anything. - {{{suf}}} - The language suffix for the icon link to link to the correct language page. Do include the full suffix, including the colon, for example
:ru
, see below.
Examples
{{game icon|Half-Life 2}}
|
→ ![]() | |
{{game icon|Half-Life 2|suf=:es}}
|
→ ![]() | |
{{game icon|hl2}}
|
→ | ![]() #ifexist can make sense but also cause wanted templates to be generated if this template has been used carelessly. |
See Also
{{Game icon name}}