Difference between revisions of "Template:Map link"

From Team Fortress Wiki
Jump to: navigation, search
(I'm trying to make this template right now. It's not fully done, and might not work perfectly. Also, this may be not that useful, but I hope this can give some help to some people. Wouldn't mind if mods delete this template. It was a nice experiment.)
 
m (added examples for parameter: list)
 
(8 intermediate revisions by 4 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}}}}}|list={{{list|}}}}}]]</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)}} or {{tlx|map link|Sawmill (ctf)}} 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)}} or {{tlx|map link|Sawmill (ctf)}} 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|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 ===
 +
<code><nowiki>{{map link|map|map link}}</nowiki></code>
 +
 
 +
;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 ===
 
=== See also ===
 
* {{tl|Item link}}
 
* {{tl|Item link}}
* {{tl|update link}}
+
* {{tl|Update link}}
 +
* {{tl|Quality link}}
 +
* {{tl|Gamemode link}}
  
 
[[Category:Link insertion templates|Map link]]
 
[[Category:Link insertion templates|Map link]]
 +
[[Category:Language templates|Map link]]
 
</noinclude>
 
</noinclude>

Latest 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