Template:Command

From BergerHealer Wiki
Revision as of 17:34, 1 October 2023 by RyanDo (talk | contribs) (Typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template is used to show the command alongside some additional information in a Table.

Usage

{{Command|command|description|permission|Example|Aliases}}

Parameters

Parameter: Description: Default:
Command The Command itself. You don't have to provide a / before the text. It will be added automatically. command
Description The description to display. Can be left blank/ommited for no description.
Permission The permission(s) this command has.
Example The Command-example(s) to display.
Aliases The alternative command options available.


Examples

Full Example

Code

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

Result:

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

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