Difference between revisions of "Template:Map link"
m (added examples for parameter: list) |
BrazilianNut (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | <includeonly>[[{{{2|{{dictionary/common_strings/map name {{lc:{{{1}}}}}|lang=en}}}}}{{if lang}}|{{dictionary/common_strings/map name {{lc:{{{1}}}}}|list={{{list|}}}}}]]</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 map 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 == | |
* {{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 <nowiki>Page/ru</nowiki> 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}}]] | ||
Line 10: | Line 9: | ||
* {{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}}]] | * {{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> | <code><nowiki>{{map link|map|map link}}</nowiki></code> | ||
;map: The name of the map. | ;map: The name of the map. | ||
− | ;map link: (optional) The link of the map. | + | ;map link: (optional) The text used as the link of the map. |
;list: (optional) Used as a potential parameter to switch the display of certain text from the Dictionary. | ;list: (optional) Used as a potential parameter to switch the display of certain text from the Dictionary. | ||
− | + | {{Translation templates}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Link insertion templates|Map link]] | [[Category:Link insertion templates|Map link]] | ||
[[Category:Language templates|Map link]] | [[Category:Language templates|Map link]] | ||
</noinclude> | </noinclude> |
Latest revision as of 19:59, 1 December 2024
Documentation for Map link
Auto-translation template for map names. Translations can be edited at Template:Dictionary/common strings#map_names.
Usage
{{map link|Sawmill (Capture the Flag)}}
produces Sawmill (Capture the Flag){{map link|Sawmill (Capture the Flag)}}
on Page/ru produces Sawmill (Захват флага){{map link|Sawmill|Sawmill (Capture the Flag)}}
produces Sawmill{{map link|Hassle Castle}}
on Page/zh-hans produces 迷途城堡(Hassle Castle){{map link|Hassle Castle|list=1}}
on Page/zh-hans produces 迷途城堡
Syntax
{{map link|map|map link}}
- map
- The name of the map.
- map link
- (optional) The text used as the link of the map.
- list
- (optional) Used as a potential parameter to switch the display of certain text from the Dictionary.
See also
- Name templates
{{Class name}}
{{Gamemode name}}
{{Item name}}
{{Map name}}
{{Quality name}}
{{Update name}}
{{Achievement name}}
{{Style name}}
- Link templates
{{Class link}}
·{{Cl}}
{{Gamemode link}}
{{Item link}}
{{Map link}}
{{Quality link}}
{{Update link}}
- Other
{{Achiev type link}}
{{Attribute}}
{{Common string}}
{{DefaultKey}}
·{{DK}}
{{Disambigentry}}
·{{De}}
{{Item description}}
{{Table icon}}
{{Used by}}