Difference between revisions of "Template:Command"
Jump to navigation
Jump to search
(More table improvements) |
(Typo) |
||
Line 22: | Line 22: | ||
| | | | ||
|- | |- | ||
− | ! scope="row" style="text-align: left;" | '' | + | ! scope="row" style="text-align: left;" | ''Example'' |
| The Command-example(s) to display. | | The Command-example(s) to display. | ||
| | | |
Latest revision as of 17:34, 1 October 2023
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:
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
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
Command: | /train setname [name] |
---|---|
Permission: | train.command.name |
Examples: |
---|
/train setname SomeName |