Difference between revisions of "Template:Map link"

From Team Fortress Wiki
Jump to: navigation, search
(add parameter "list", used for certain languages with map name translation)
m (added examples for parameter: list)
Line 5: Line 5:
 
=== Usage ===
 
=== Usage ===
 
* {{tlx|map link|Sawmill (Capture the Flag)}} produces {{map link|Sawmill (Capture the Flag)}}
 
* {{tlx|map link|Sawmill (Capture the Flag)}} produces {{map link|Sawmill (Capture the Flag)}}
* {{tlx|map link|Sawmill (Capture the Flag)}} on [[Page/ru]] produces [[Sawmill (Capture the Flag)/ru|{{common string|Sawmill (Capture the Flag)|lang=ru}}]]
+
* {{tlx|map link|Sawmill (Capture the Flag)}} on <nowiki>Page/ru</nowiki> produces [[Sawmill (Capture the Flag)/ru|{{common string|Sawmill (Capture the Flag)|lang=ru}}]]
 
* {{tlx|map link|Sawmill|Sawmill (Capture the Flag)}} produces {{map link|Sawmill|Sawmill (Capture the Flag)}}
 
* {{tlx|map link|Sawmill|Sawmill (Capture the Flag)}} produces {{map link|Sawmill|Sawmill (Capture the Flag)}}
 +
* {{tlx|map link|Hassle Castle}} on <nowiki>Page/zh-hans</nowiki> produces [[Hassle Castle/zh-hans|{{map name|Hassle Castle|lang=zh-hans}}]]
 +
* {{tlx|map link|<nowiki>Hassle Castle|list=1</nowiki>}} on <nowiki>Page/zh-hans</nowiki> produces [[Hassle Castle/zh-hans|{{map name|Hassle Castle|lang=zh-hans|list=1}}]]
  
 
=== Syntax ===
 
=== Syntax ===
Line 13: Line 15:
 
;map: The name of the map.
 
;map: The name of the map.
 
;map link: (optional) The link of the map.
 
;map link: (optional) The link of the map.
 +
;list: (optional) Used as a potential parameter to switch the display of certain text from the Dictionary.
  
 
=== See also ===
 
=== See also ===

Revision as of 10:47, 3 November 2024

Documentation for Map link

Auto-translation template for map names. Translations can be edited at Template:Dictionary/common strings#map_names.

Usage

Syntax

{{map link|map|map link}}

map
The name of the map.
map link
(optional) The link of the map.
list
(optional) Used as a potential parameter to switch the display of certain text from the Dictionary.

See also