Difference between revisions of "Template:Cvar"

From Team Fortress Wiki
Jump to: navigation, search
(Explain what it is for)
m (Remove italics. People seem to avoid this template when mentiong cvars because it adds italics, so let's just remove it. However, not delete it, so we keep it to avoid breaking old pages.)
Line 1: Line 1:
<code><var class="console_variable">{{{1}}}</var></code><noinclude>
+
<includeonly><code>{{{1}}}</code></includeonly><noinclude>
 
{{Doc begin}}
 
{{Doc begin}}
 
Marks a [[console variable]].
 
Marks a [[console variable]].
 +
 +
As of 31 July 2023, this template just adds <code><nowiki><code></code></nowiki></code> to the cvar. No other special procedures are done.<br>However, to avoid breaking old pages, this exists for historical purposes.
 
== Usage ==
 
== Usage ==
 
* {{tlx|cvar|mp_friendlyfire 1}} generates {{cvar|mp_friendlyfire 1}}
 
* {{tlx|cvar|mp_friendlyfire 1}} generates {{cvar|mp_friendlyfire 1}}

Revision as of 04:13, 31 July 2023

Documentation for Cvar

Marks a console variable.

As of 31 July 2023, this template just adds <code></code> to the cvar. No other special procedures are done.
However, to avoid breaking old pages, this exists for historical purposes.

Usage

  • {{cvar|mp_friendlyfire 1}} generates mp_friendlyfire 1