Template:Varcom: Difference between revisions
Jump to navigation
Jump to search
(eliminating that "arbitrary number" junk) |
(added a thing for convars that don't have any default value (yes, that's a thing apparently)) |
||
Line 10: | Line 10: | ||
-----><tr><!-- | -----><tr><!-- | ||
--------><td><code>{{{1|</code>{{style|color:#f00|'''NAME MISSING!'''}}</td></tr></table><code>}}}</code></td><!-- | --------><td><code>{{{1|</code>{{style|color:#f00|'''NAME MISSING!'''}}</td></tr></table><code>}}}</code></td><!-- | ||
--------><td><code>{{{2|}}}</code></td><!-- | --------><td><code>{{#ifeq:{{{2|}}}|null|</code>''[blank by default]''<code>|{{{2|}}}}}</code></td><!-- | ||
--------><td><strong>{{#ifeq:{{{3|}}}|01|0 disables, 1 enables|{{{3|}}}}}</strong></td><!-- | --------><td><strong>{{#ifeq:{{{3|}}}|01|0 disables, 1 enables|{{{3|}}}}}</strong></td><!-- | ||
--------><td>{{{4|{{todo|Effect description.}}}}}</td><!-- | --------><td>{{{4|{{todo|Effect description.}}}}}</td><!-- | ||
Line 24: | Line 24: | ||
#Parameter(s) of the command, or for variables, the default value. | #Parameter(s) of the command, or for variables, the default value. | ||
##Optional. | ##Optional. | ||
##Put <code>null</code> to display the text ''[blank by default]''. | |||
#Descriptor for whatever is put in the last space. | #Descriptor for whatever is put in the last space. | ||
##Optional. | ##Optional. |
Revision as of 19:42, 29 August 2018
NAME MISSING!
Todo: Effect description.
This template can be used for both console variables and console commands.
Parameters:
- Name of the variable or command.
- To generate the header, put
start
in this space. - To finish the table, put
end
. - If this is not defined, the text NAME MISSING! will appear and forcibly break the table formatting until it is fixed.
- To generate the header, put
- Parameter(s) of the command, or for variables, the default value.
- Optional.
- Put
null
to display the text [blank by default].
- Descriptor for whatever is put in the last space.
- Optional.
- Put
01
to quickly indicate boolean convars.
- Effect of the command or variable.
- If undefined, a TODO will take its place.
{{varcom|start}} {{varcom|noclip|||Makes player ignore gravity and all solidity. Useful for observing and debugging.}} {{varcom|sv_cheats|0|01|<code>1</code> enables cheats on the server, which disables achievement progress and enables many more console commands.}} {{varcom|setpos|x y <z optional>|coordinates|Puts the player at the coordinate triplet entered. If <code>z</code> is not specified, the player will maintain their current z position.}} {{varcom|end}}
ConVar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
noclip |
| Makes player ignore gravity and all solidity. Useful for observing and debugging. | |
sv_cheats | 0 | 0 disables, 1 enables | 1 enables cheats on the server, which disables achievement progress and enables many more console commands. |
setpos | x y <z optional> | coordinates | Puts the player at the coordinate triplet entered. If z is not specified, the player will maintain their current z position. |