Difference between revisions of "Template:Gamemode link"

From Team Fortress Wiki
Jump to: navigation, search
m (Added note about specific game modes.)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{{1}}}{{if lang}}|{{common string|{{{1}}}}}]]</includeonly><noinclude>{{doc begin}}
+
[[{{#switch: {{lc:{{{1}}}}}
{{tl|Gamemode link}} is a template that outputs an automatically-translated link to a game mode page. For just the name, use {{tl|Mode name}} or {{tl|Gamemode name}}.
+
  | control point = Control Point (game mode)
 +
  | special delivery = Special Delivery (game mode)
 +
  | boot camp = Boot Camp (Mann vs. Machine)
 +
  | #default = {{dictionary/common strings/{{lc:{{{1|error}}}}}|lang=en}}
 +
}}{{if lang}}|{{dictionary/common strings/{{#switch: {{lc:{{{1}}}}}
 +
  | versus saxton hale = versus saxton hale (community)
 +
  | zombie infection = zombie infection (community)
 +
  | #default = {{lc:{{{1|error}}}}}
 +
}}}}]]<noinclude>
 +
{{doc begin}}
 +
{{tl|gamemode link}} is a template that outputs an automatically-translated link to a game mode page. For just the name, use {{tl|gamemode name}}.
  
 
=== Syntax ===
 
=== Syntax ===
  <nowiki>{{Gamemode link|Payload}}</nowiki>
+
  <nowiki>{{gamemode link|Payload}}</nowiki>
{{Note|For Control Point and Special Delivery, add "(game mode)" at the end (i.e. <code><nowiki>{{Gamemode link|Special Delivery (game mode)}}</nowiki></code>).}}
 
{{Note|{{tl|Mode link}} also works!}}
 
  
 
;Argument 1: The '''English''' name of the game mode to link to.
 
;Argument 1: The '''English''' name of the game mode to link to.

Latest revision as of 17:34, 4 July 2024

[[error ('common_strings')'|error ('common_strings')']]

Documentation for Gamemode link

{{gamemode link}} is a template that outputs an automatically-translated link to a game mode page. For just the name, use {{gamemode name}}.

Syntax

{{gamemode link|Payload}}
Argument 1
The English name of the game mode to link to.

See also