Template:Cmd/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 17: Line 17:
! Preview
! Preview
|-
|-
| align="center" | {{Code|style=2| {{Param|1}} }}
| align="center" | <code>{{param|1}}</code>
| [[ConVar|Console Variable]].
| [[ConVar|Console Variable]].
| {{CodeBlock|<nowiki>{{Command|sv_cheats}}</nowiki>}}
| <pre>{{Command|sv_cheats}}</pre>
| {{Command|sv_cheats}}
| bgcolor=#262626 | {{Command|sv_cheats}}
|-
|-
| align="center" | {{Code|style=2| {{Param|2}} }}
| align="center" | <code>{{param|2}}</code>
| Console Variable Value.
| Console Variable Value.
| {{CodeBlock|<nowiki>{{Command|sv_cheats|1}}</nowiki>}}
| <pre>{{Command|sv_cheats|1}}</pre>
| {{Command|sv_cheats|1}}
| bgcolor=#262626 | {{Command|sv_cheats|1}}
|-
|-
| align="center" | {{Code|style=2| {{Param|alt}} }}
| align="center" | <code>{{param|alt}}</code>
| Alternative Name of the Console Variable.
| Alternative Name of the Console Variable.
| {{CodeBlock|<nowiki>{{Command|sv_cheats|1|alt = Hello, World!}}</nowiki>}}
| <pre>{{Command|sv_cheats|1|alt = Hello, World!}}</pre>
| {{Command|sv_cheats|1|alt = Hello, World!}}
| bgcolor=#262626 | {{Command|sv_cheats|1|alt = Hello, World!}}
|}
|}



Revision as of 05:11, 24 August 2025

Edit-copy.png
This is a documentation subpage for Template:Cmd.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Formats the text as a console command. Should be used only for console variables/commands.


Parameters and Examples

Parameter Description Example Preview
{{{1}}} Console Variable.
{{Command|sv_cheats}}
sv_cheats
{{{2}}} Console Variable Value.
{{Command|sv_cheats|1}}
sv_cheats 1
{{{alt}}} Alternative Name of the Console Variable.
{{Command|sv_cheats|1|alt = Hello, World!}}
Hello, World! 1

See also