Difference between revisions of "Template:Game link"

From Valve Developer Community
Jump to: navigation, search
(Don't link game title if the corresponding page doesn't exist)
Line 1: Line 1:
<span style="white-space:nowrap;">{{#switch: {{{1}}}
+
<includeonly><span style="white-space:nowrap;">{{#switch: {{{1}}}
 
| Source = {{source}}
 
| Source = {{source}}
 
| Half-Life = {{hl1}}
 
| Half-Life = {{hl1}}
Line 23: Line 23:
 
| Counter-Strike: Global Offensive = {{csgo}}
 
| Counter-Strike: Global Offensive = {{csgo}}
 
| Dear Esther = {{Dear Esther}}
 
| Dear Esther = {{Dear Esther}}
}} {{#ifexist: {{{1}}} | [[{{{1}}}]] | {{{1}}} }}</span><noinclude>
+
}} {{#ifexist: {{{1}}} | [[{{{1}}}]] | {{{1}}} }}</span></includeonly>
 +
 
 +
<noinclude>
 +
Template for fast linking on game with game icon. Use <code><nowiki>{{Game link|</nowiki>''<game name>''<nowiki>}}</nowiki></code>. For example, <code><nowiki>{{Game link|Counter-Strike: Global Offensive}}</nowiki></code> → {{Game link|Counter-Strike: Global Offensive}}, equal <code><nowiki>{{csgo}} [[Counter-Strike: Global Offensive]]</nowiki></code>, but easily.
 +
 
 +
=== Game list ===
 +
{| class="wikitable"
 +
|-
 +
! Game !! Result
 +
|-
 +
| Source || {{Game link|Source}}
 +
|-
 +
| Half-Life || {{Game link|Half-Life}}
 +
|-
 +
| Half-Life 2 || {{Game link|Half-Life 2}}
 +
|-
 +
| Half-Life 2: Episode One || {{Game link|Half-Life 2: Episode One}}
 +
|-
 +
| Half-Life 2: Episode Two || {{Game link|Half-Life 2: Episode Two}}
 +
|-
 +
| Half-Life 2: Lost Coast || {{Game link|Half-Life 2: Lost Coast}}
 +
|-
 +
| Half-Life 2: Deathmatch || {{Game link|Half-Life 2: Deathmatch}}
 +
|-
 +
| Counter-Strike: Source || {{Game link|Counter-Strike: Source}}
 +
|-
 +
| Counter-Strike: Global Offensive || {{Game link|Counter-Strike: Global Offensive}}
 +
|-
 +
| Day of Defeat: Source || {{Game link|Day of Defeat: Source}}
 +
|-
 +
| Team Fortress 2 || {{Game link|Team Fortress 2}}
 +
|-
 +
| Portal || {{Game link|Portal}}
 +
|-
 +
| Portal 2 || {{Game link|Portal 2}}
 +
|-
 +
| Left 4 Dead || {{Game link|Left 4 Dead}}
 +
|-
 +
| Left 4 Dead 2 || {{Game link|Left 4 Dead 2}}
 +
|-
 +
| Left 4 Dead series || {{Game link|Left 4 Dead series}}
 +
|-
 +
| Dota 2 || {{Game link|Dota 2}}
 +
|-
 +
| Alien Swarm || {{Game link|Alien Swarm}}
 +
|-
 +
| The Ship || {{Game link|The Ship}}
 +
|-
 +
| Age of Chivalry || {{Game link|Age of Chivalry}}
 +
|-
 +
| Dark Messiah || {{Game link|Dark Messiah}}
 +
|-
 +
| Dark Messiah of Might and Magic || {{Game link|Dark Messiah of Might and Magic}}
 +
|-
 +
| Dear Esther || {{Game link|Dear Esther}}
 +
|}
 +
 
 
[[Category:Game icons|G]]
 
[[Category:Game icons|G]]
 
</noinclude>
 
</noinclude>

Revision as of 06:26, 28 October 2014


Template for fast linking on game with game icon. Use {{Game link|<game name>}}. For example, {{Game link|Counter-Strike: Global Offensive}}Counter-Strike: Global Offensive Counter-Strike: Global Offensive , equal {{csgo}} [[Counter-Strike: Global Offensive]], but easily.

Game list

Game Result
Source Source Source
Half-Life <Half-Life> Half-Life
Half-Life 2 Half-Life 2 Half-Life 2
Half-Life 2: Episode One Half-Life 2: Episode OneHalf-Life 2: Episode One Half-Life 2: Episode One
Half-Life 2: Episode Two Half-Life 2: Episode TwoHalf-Life 2: Episode Two Half-Life 2: Episode Two
Half-Life 2: Lost Coast Half-Life 2: Lost CoastHalf-Life 2: Lost Coast Half-Life 2: Lost Coast
Half-Life 2: Deathmatch Half-Life 2: DeathmatchHalf-Life 2: Deathmatch Half-Life 2: Deathmatch
Counter-Strike: Source Counter-Strike: Source Counter-Strike: Source
Counter-Strike: Global Offensive Counter-Strike: Global Offensive Counter-Strike: Global Offensive
Day of Defeat: Source Day of Defeat: Source Day of Defeat: Source
Team Fortress 2 Team Fortress 2 Team Fortress 2
Portal Portal Portal
Portal 2 Portal 2 Portal 2
Left 4 Dead Left 4 Dead Left 4 Dead
Left 4 Dead 2 Left 4 Dead 2 Left 4 Dead 2
Left 4 Dead series Left 4 Dead Left 4 Dead 2 Left 4 Dead series
Dota 2 Dota 2 Dota 2
Alien Swarm Alien Swarm Alien Swarm
The Ship The Ship The Ship
Age of Chivalry Age of Chivalry Age of Chivalry
Dark Messiah Dark Messiah of Might and Magic Dark Messiah
Dark Messiah of Might and Magic Dark Messiah of Might and Magic Dark Messiah of Might and Magic
Dear Esther Dear Esther Dear Esther