Difference between revisions of "Template:Command"

From BergerHealer Wiki
Jump to navigation Jump to search
(Make permission optional)
Line 2: Line 2:
  
 
== Usage ==
 
== Usage ==
<pre><code>{{Command|command|description|permission}}</code></pre>
+
<pre>{{Command|command|description|permission}}</pre>
  
 
== Example ==
 
== Example ==

Revision as of 20:49, 29 December 2020

Template to display a Description, command and permission.

Usage

{{Command|command|description|permission}}

Example

{{Command|train|Main command of TrainCarts|train.command.train}}

Result:

Main command of TrainCarts
Command /train
Permission train.command.train

You can also omit the permissions at the end which will look like this:

Main command of TrainCarts
Command /train