Difference between revisions of "Template:Map link"

From Team Fortress Wiki
Jump to: navigation, search
m (Put the warning about uppercase/lowercase.)
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[{{{link|{{{1}}}}}}{{if lang}}|{{dictionary/common_strings/{{lc:{{{name|{{{1|error}}}}}}}}}}]]</includeonly><noinclude>
+
<includeonly>[[{{{2|{{dictionary/common_strings/map name {{lc:{{{1}}}}}|lang=en}}}}}{{if lang}}|{{dictionary/common_strings/map name {{lc:{{{1}}}}}}}]]</includeonly><noinclude>
 
{{doc begin}}
 
{{doc begin}}
Auto-translation template for update names. Translations can be edited at '''[[Template:Dictionary/common strings#map names]]'''.
+
Auto-translation template for map names. Translations can be edited at '''[[Template:Dictionary/common strings#map_names]]'''.
  
 
=== 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 [[Page/ru]] 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)}}
 +
 +
=== Syntax ===
 +
<code><nowiki>{{map link|map|map link}}</nowiki></code>
 +
 +
;map: The name of the map.
 +
;map link: (optional) The link of the map.
  
You need to use both uppercase and lowercase or it won't work. <!-- I'm currently trying to fix it, but it's too hard for me to actually edit templates as it's been only a month since I joined here. -->
 
 
=== See also ===
 
=== See also ===
 
* {{tl|Item link}}
 
* {{tl|Item link}}

Latest revision as of 15:15, 21 October 2023

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.

See also