Template:Game icon name/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Examples.)
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
__NOTOC__
{{Doc/subpage}}
This template takes the full game name and delivers a string that must be put in double braces to get the game's icon, if existent.
This template takes the full game name and delivers a string that must be put in double braces to get the game's icon, if existent.


Ideally, this is the only page that maps game names to game acronyms.
Ideally, this is the only page that maps game names to game acronyms.
 
__NOTOC__
== Parameters ==
== Parameters ==
* {{param|1}} - the full, case sensitive game name.
* {{param|1}} - the full, case sensitive game name.
Line 11: Line 11:
{| style="background: none"
{| style="background: none"
| <code><nowiki>{{game icon name|Half-Life 2}}</nowiki></code>
| <code><nowiki>{{game icon name|Half-Life 2}}</nowiki></code>
| &rarr; {{game icon name|Half-Life 2}}
| {{game icon name|Half-Life 2}}
|-
|-
| <code><nowiki>{{ {{game icon name|Half-Life 2}} }}</nowiki></code>
| <code><nowiki>{{ {{game icon name|Half-Life 2}} }}</nowiki></code>
| &rarr; {{ {{game icon name|Half-Life 2}} }}
| {{ {{game icon name|Half-Life 2}} }}
| {{tip|Use {{tl|Game icon}} for this purpose if you (want to type less and) don't want a broken page state if the icon does not exist.}}
| {{tip|Use {{tl|Game icon}} for this purpose if you (want to type less and) don't want a broken page state if the icon does not exist.}}
|-
|-
| <code><nowiki>{{game icon|Half-Life 2}}</nowiki></code>
| <code><nowiki>{{game icon|Half-Life 2}}</nowiki></code>
| &rarr; {{game icon|Half-Life 2}}
| {{game icon|Half-Life 2}}
|-
|-
| <br>
| <br>
|-
|-
| <code><nowiki>{{game icon name|asdf}}</nowiki></code>
| <code><nowiki>{{game icon name|asdf}}</nowiki></code>
| &rarr; {{game icon name|asdf}}
| {{game icon name|asdf}}
| {{note|If unknown games deliver nothing, it allows the use of <code><nowiki>{{#if: {{game icon name|...}} | ...}}</nowiki></code>. {{tl|Game icon}} relies on this property.}}
| {{note|If unknown games deliver nothing, it allows the use of <code><nowiki>{{#if: {{game icon name|...}} | ...}}</nowiki></code>. {{tl|Game icon}} relies on this property.}}
|-
|-
| <code><nowiki>{{ {{game icon name|asdf}} }}</nowiki></code>
| <code><nowiki>{{ {{game icon name|asdf}} }}</nowiki></code>
| &rarr; {{ {{game icon name|asdf}} }}
| {{ {{game icon name|asdf}} }}
| {{tip|Use {{tl|Game icon}} to avoid this.}}
|
|-
| <code><nowiki>{{game icon|asdf}}</nowiki></code>
| &rarr; {{game icon|asdf}}
|}
|}


== See Also ==
== See also ==
* {{tl|Game icon}}
* {{tl|Game icon}}


== Available Names ==
== Available Names ==
{| class=wikitable
{| class="wikitable sortable"
! Input !! Output
! Input !! Output
|-
|-
| Alien Swarm || as
| Age of Chivalry || aoc
|-
| Alien Swarm Deferred || asd
|-
| Alien Swarm SDK<br>Alien Swarm || as
|-
|-
| Alien Swarm: Reactive Drop || asrd
| Alien Swarm: Reactive Drop || asrd
|-
| Artifact || Artifact
|-
|-
| Black Mesa<br>Black Mesa (Source) || bms
| Black Mesa<br>Black Mesa (Source) || bms
|-
|-
| Contagion || con
| Contagion || con
|-
| Cry of Fear || cof
|-
|-
| Counter-Strike || cs
| Counter-Strike || cs
Line 57: Line 62:
| Counter-Strike: Source || css
| Counter-Strike: Source || css
|-
|-
| Counter-Strike: Global Offensive || csgo
| Counter-Strike: Global Offensive Authoring Tools<br>Counter-Strike: Global Offensive || csgo
|-
| Dark Messiah<br>Dark Messiah of Might and Magic || dm
|-
| Day of Defeat || dod
|-
| Day of Defeat: Source || DODS
|-
| Day of Infamy || doi
|-
| Dear Esther || Dear Esther
|-
| Deathmatch Classic || DMC
|-
| Destinations || destinations
|-
| Dino D-Day || ddd
|-
|-
| Dota 2 || dota2
| Dota 2 || dota2
|-
| Dota Underlords || underlords
|-
|Dystopia || dystopia
|-
|Empires || empires
|-
|-
| Entropy : Zero || ez1
| Entropy : Zero || ez1
|-
|-
| Entropy : Zero 2 || ez2
| Entropy : Zero 2 || ez2
|-
| E.Y.E: Divine Cybermancy || eyedc
|-
| Fistful of Frags || fof
|-
|-
| Garry's Mod || GMOD
| Garry's Mod || GMOD
|-
| Goldsource || Gldsrc
|-
| Gunman Chronicles || gunman
|-
|-
| Half-Life || hl1
| Half-Life || hl1
Line 72: Line 107:
|-
|-
| Half-Life 2 || hl2
| Half-Life 2 || hl2
|-
| Half-Life 2: Deathmatch || hl2dm
|-
|-
| Half-Life 2: Episode One || ep1
| Half-Life 2: Episode One || ep1
|-
|-
| Half-Life 2: Episode Two || ep2
| Half-Life 2: Episode Two || ep2
|-
| Half-Life 2: Lost Coast || lostcoast
|-
|-
| Half-Life 2 episodes || hl2episodes
| Half-Life 2 episodes || hl2episodes
|-
|-
| Half-Life Alyx || HL:A
| Half-Life: Alyx || HL:A
|-
| Half-Life: Blue Shift || hl1:bs
|-
| Half-Life: Opposing Force || hl1:op4
|-
| Half-Life Deathmatch: Source || hldms
|-
| Hammer++ || h++
|-
|-
| INFRA || INFRA
| INFRA || infra
|-
|-
| Insurgency || insurgency
| Insurgency || insurgency
|-
|-
| Left 4 Dead || l4d
| Jabroni Brawl: Episode 3 || jbep3
|-
|-
| Left 4 Dead 2 || l4d2
| Lambda Wars || lw
|-
| Left 4 Dead Authoring Tools<br>Left 4 Dead || l4d
|-
| Left 4 Dead 2 Authoring Tools<br>Left 4 Dead 2 || l4d2
|-
|-
| Left 4 Dead series || l4ds
| Left 4 Dead series || l4ds
|-
|-
| Mapbase || mapbase
| Mapbase || mapbase
|-
| Nuclear Dawn || nd
|-
| Paranoia || paranoia
|-
|-
| Portal 2010 ARG Update<br>Portal || portal
| Portal 2010 ARG Update<br>Portal || portal
|-
|-
| Portal 2 || portal2
| Portal 2 Authoring Tools<br>Portal 2 || portal2
|-
|-
| Portal 2: Community Edition || P2CE
| Portal 2: Community Edition || P2CE
|-
|-
| Sin Episodes || sin
| Ricochet || ricochet
|-
| S&box || s&box
|-
| SiN Episodes || sin
|-
| Source || source
|-
| Source 2 || source2
|-
|-
| Source 2006 || src06
| Source 2006 || src06
Line 112: Line 175:
|-
|-
| Source Filmmaker || sfm
| Source Filmmaker || sfm
|-
| SteamVR Home || VRHome
|-
| Strata/Strata Source || strata
|-
|-
| Synergy || synergy
| Synergy || synergy
|-
| Team Fortress Classic || tfc
|-
|-
| Team Fortress 2 || tf2
| Team Fortress 2 || tf2
|-
| Team Fortress 2 Classic || tf2c
|-
| The Beginner's Guide || tbg
|-
| The Ship || ship
|-
| The Stanley Parable || tsp
|-
| They Hunger || hunger
|-
| Titanfall || tf
|-
| Underhell || UH
|-
| Vampire The Masquerade - Bloodlines || vtmb
|-
| VHLT || vhlt
|-
| WANTED! || wanted
|-
| Zeno Clash || zc
|-
| Zombie Panic! Source || zps
|}
|}

Latest revision as of 13:03, 7 July 2024

Edit-copy.png
This is a documentation subpage for Template:Game icon name.
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 a string that must be put in double braces to get the game's icon, if existent.

Ideally, this is the only page that maps game names to game acronyms.

Parameters

  • {{{1}}} - the full, case sensitive game name.

Examples

{{game icon name|Half-Life 2}} → hl2
{{ {{game icon name|Half-Life 2}} }} Half-Life 2
Tip.pngTip:Use {{Game icon}} for this purpose if you (want to type less and) don't want a broken page state if the icon does not exist.
{{game icon|Half-Life 2}} Half-Life 2

{{game icon name|asdf}}
Note.pngNote:If unknown games deliver nothing, it allows the use of {{#if: {{game icon name|...}} | ...}}. {{Game icon}} relies on this property.
{{ {{game icon name|asdf}} }} → {{ }}

See also

  • {{Game icon}}

Available Names

Input Output
Age of Chivalry aoc
Alien Swarm Deferred asd
Alien Swarm SDK
Alien Swarm
as
Alien Swarm: Reactive Drop asrd
Artifact Artifact
Black Mesa
Black Mesa (Source)
bms
Contagion con
Cry of Fear cof
Counter-Strike cs
Counter-Strike: Condition Zero cscz
Condition Zero Deleted Scenes czds
Counter-Strike: Source css
Counter-Strike: Global Offensive Authoring Tools
Counter-Strike: Global Offensive
csgo
Dark Messiah
Dark Messiah of Might and Magic
dm
Day of Defeat dod
Day of Defeat: Source DODS
Day of Infamy doi
Dear Esther Dear Esther
Deathmatch Classic DMC
Destinations destinations
Dino D-Day ddd
Dota 2 dota2
Dota Underlords underlords
Dystopia dystopia
Empires empires
Entropy : Zero ez1
Entropy : Zero 2 ez2
E.Y.E: Divine Cybermancy eyedc
Fistful of Frags fof
Garry's Mod GMOD
Goldsource Gldsrc
Gunman Chronicles gunman
Half-Life hl1
Half-Life: Source hls
Half-Life 2 hl2
Half-Life 2: Deathmatch hl2dm
Half-Life 2: Episode One ep1
Half-Life 2: Episode Two ep2
Half-Life 2: Lost Coast lostcoast
Half-Life 2 episodes hl2episodes
Half-Life: Alyx HL:A
Half-Life: Blue Shift hl1:bs
Half-Life: Opposing Force hl1:op4
Half-Life Deathmatch: Source hldms
Hammer++ h++
INFRA infra
Insurgency insurgency
Jabroni Brawl: Episode 3 jbep3
Lambda Wars lw
Left 4 Dead Authoring Tools
Left 4 Dead
l4d
Left 4 Dead 2 Authoring Tools
Left 4 Dead 2
l4d2
Left 4 Dead series l4ds
Mapbase mapbase
Nuclear Dawn nd
Paranoia paranoia
Portal 2010 ARG Update
Portal
portal
Portal 2 Authoring Tools
Portal 2
portal2
Portal 2: Community Edition P2CE
Ricochet ricochet
S&box s&box
SiN Episodes sin
Source source
Source 2 source2
Source 2006 src06
Source 2007 src07
Source 2009 src09
Source 2013 src13
Source 2013 MP src13mp
Source Filmmaker sfm
SteamVR Home VRHome
Strata/Strata Source strata
Synergy synergy
Team Fortress Classic tfc
Team Fortress 2 tf2
Team Fortress 2 Classic tf2c
The Beginner's Guide tbg
The Ship ship
The Stanley Parable tsp
They Hunger hunger
Titanfall tf
Underhell UH
Vampire The Masquerade - Bloodlines vtmb
VHLT vhlt
WANTED! wanted
Zeno Clash zc
Zombie Panic! Source zps