Difference between revisions of "Template:Map credits"

From Team Fortress Wiki
Jump to: navigation, search
m (Replaced content with "{{#invoke:Map credits|credits|{{{1}}}|separator={{{separator|}}}|options={{{options|}}}}}<noinclude> {{doc begin}} Intended for use in the {{tlx|map infobox}} and other ta...")
(Tag: Replaced)
m
 
Line 1: Line 1:
 
{{#invoke:Map credits|credits|{{{1}}}|separator={{{separator|}}}|options={{{options|}}}}}<noinclude>
 
{{#invoke:Map credits|credits|{{{1}}}|separator={{{separator|}}}|options={{{options|}}}}}<noinclude>
{{doc begin}}
+
{{Module:Map credits/doc}}
Intended for use in the {{tlx|map infobox}} and other tables. Not compatible with custom maps. When adding map credits, include the creator's name '''exactly''' as it appears in the in-game credits (see [[:File:tf_english.txt]]).
 
 
 
=== Adding more maps ===
 
* Edit [[Module:Map credits/data]].
 
 
 
=== Usage ===
 
* {{tlx|map credits}} always defaults to {{map credits}}, so there's no need to add Valve-made maps to this template.
 
* {{tlx|map credits|ctf_turbine}} produces: {{map credits|ctf_turbine}}
 
* {{tlx|map credits|cp_egypt_final}} produces: {{map credits|cp_egypt_final}}
 
* {{tlx|1=map credits|2=cp_egypt_final|3=options=nolink}} produces: {{map credits|cp_egypt_final|options=nolink}}
 
* {{tlx|map credits|rd_asteroid}} produces: {{map credits|rd_asteroid}}
 
* {{tlx|map credits|pass_brickyard}} produces: {{map credits|pass_brickyard}}
 
* {{tlx|1=map credits|2=zi_devastation_final1|3=separator=,&amp;nbsp;}} produces: {{map credits|zi_devastation_final1|separator=,&nbsp;}}
 
 
 
=== Syntax ===
 
<code><nowiki>{{map credits|<file name>|separator=<separator>|options=<options>|override=<override>}}</nowiki></code>
 
 
 
; <file name> ''unnamed parameter'' 1
 
: Map file name, exactly as it is written in-game.
 
 
 
; (optional) <separator>
 
: Separator for maps with multiple people credited. Defaults to <code><nowiki> <br> </nowiki></code>.
 
 
 
; (optional) <options>
 
: Additional rendering options:
 
:: <code>nolink</code> - Disables rendering of links (Steam profile URL, Wikipedia links, etc.).
 
 
 
 
 
 
[[Category:Link insertion templates|Map credits]]
 
[[Category:Link insertion templates|Map credits]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:39, 8 September 2024

Valve

Documentation for Map credits

Intended for use in the {{map infobox}} and other tables. Not compatible with custom maps. When adding map credits, include the creator's name exactly as it appears in the in-game credits (see File:tf_english.txt).

Adding more maps

Usage

Syntax

{{map credits|<file name>|separator=<separator>|options=<options>|override=<override>}}

<file name> unnamed parameter 1
Map file name, exactly as it is written in-game.
(optional) <separator>
Separator for maps with multiple people credited. Defaults to <br> .
(optional) <options>
Additional rendering options:
nolink - Disables rendering of links (Steam profile URL, Wikipedia links, etc.).