WoW:Console: Difference between revisions

No edit summary
No edit summary
Line 3: Line 3:
== Commands ==
== Commands ==


A Command is a whitespace-less string that can be associated with a function. The Command may or may not have a help message, and it may have a [[#Categories|Category number]] that controls its placement when displayed by the [[WoW:help (Console command)|help command]].
A Command is a whitespace-less string associated with various attributes:


A Command is a function associated with a string that contains no whitespace. The function accepts the name of the command as a string, as well as an optional argument string. For example, running the following command:
* A function:
 
The function accepts the name of the command as a string, as well as an optional argument string. For example, running the following command:


<pre>
<pre>
Line 20: Line 22:
}
}
</pre>
</pre>
* A [[#Categories|category number]]
Determines the placement of the [[#Commands|Command]] when displayed using [[WoW:help (Console command)|help command]].
* Help text
This is left empty in most cases. It describes how to use the command, and is shown by the [[WoW:help (Console command)|help command]].
The Command may or may not have a help message, and it may have a [[#Categories|Category number]] that controls its placement when displayed by the


=== Categories ===
=== Categories ===