Command

From BergerHealer Wiki
Jump to navigation Jump to search
(Add examples section and make description optional)
(Try improving style)
Line 34: Line 34:
{{Command|train setname [name]|Set the name of the selected train|train.command.name|/train setname SomeName}}</noinclude>
{{Command|train setname [name]|Set the name of the selected train|train.command.name|/train setname SomeName}}</noinclude>


<includeonly><onlyinclude>{|class="wikitable"
<includeonly><onlyinclude>{|class="wikitable" cellpadding="30"
   {{#if: {{{2|}}}|
   {{#if: {{{2|}}}|
   {{!}}colspan="2"{{!}}{{{2}}}
   {{!}}colspan="2"{{!}}{{{2}}}
Line 50: Line 50:
   ! colspan="2" {{!}} Examples
   ! colspan="2" {{!}} Examples
   {{!}}-
   {{!}}-
   {{!}} colspan="2" {{!}} {{{4}}}
   {{!}} colspan="2" style="font-family: monospace" {{!}} {{{4}}}
   }}
   }}
|-
|-
|}</onlyinclude></includeonly>
|}</onlyinclude></includeonly>

Revision as of 14:35, 14 February 2021

Template to display a Description, command and permission.

Usage

{{Command|command|description|permission}}

Examples

Full Example

Code

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

Result:

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

No permissions

Code

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

Result

Main command of TrainCarts
Command /train

No Description

Code

{{Command|train||train.command.train}}

Result

Command /train
Permission train.command.train

With Examples

Code

{{Command|train setname [name]|Set the name of the selected train|train.command.name|/train setname SomeName}}

Result

Set the name of the selected train
Command /train setname [name]
Permission train.command.name
Examples
/train setname SomeName