Jump to content

Template:Command table: Difference between revisions

From MineMania Wiki
Created page with "<includeonly> <table class="cw-command-table"> {{{rows|}}} </table> </includeonly><noinclude> == Usage == <pre> {{Command table | rows = {{Command table row|/spawn|Teleports you to spawn.}} {{Command table row|/home|Teleports you to your home.}} }} </pre> <templatedata> { "description": "Creates a command table with a small command column and a larger description column.", "params": { "rows": { "label": "Rows", "description": "Command table rows. Use Template:..."
 
No edit summary
 
Line 8: Line 8:
{{Command table
{{Command table
| rows =
| rows =
{{Command table row|/spawn|Teleports you to spawn.}}
{{Command table row
{{Command table row|/home|Teleports you to your home.}}
| command = /spawn
| description = Teleports you to spawn.
}}
{{Command table row
| command = /home
| description = Teleports you to your home.
}}
}}
}}
</pre>
</pre>
Line 15: Line 21:
<templatedata>
<templatedata>
{
{
"description": "Creates a command table with a small command column and a larger description column.",
"description": "Creates a command table with a command column and a larger description column.",
"params": {
"params": {
"rows": {
"rows": {
"label": "Rows",
"label": "Rows",
"description": "Command table rows. Use Template:Command table row for each row.",
"description": "Command table rows. Add Template:Command table row entries here.",
"type": "content",
"type": "content",
"required": true
"required": true,
"suggested": true
}
}
}
}

Latest revision as of 19:20, 4 June 2026

Usage

{{Command table
| rows =
{{Command table row
| command = /spawn
| description = Teleports you to spawn.
}}
{{Command table row
| command = /home
| description = Teleports you to your home.
}}
}}

Creates a command table with a command column and a larger description column.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Rowsrows

Command table rows. Add Template:Command table row entries here.

Contentrequired