Jump to content

Template:Command table row: Difference between revisions

From MineMania Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
<tr>
<tr>
<th class="cw-command-table-command">{{{1|}}}</th>
<th class="cw-command-table-command">{{{command|}}}</th>
<td class="cw-command-table-description">{{{2|}}}</td>
<td class="cw-command-table-description">{{{description|}}}</td>
</tr>
</tr>
</includeonly><noinclude>
</includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
{{Command table row|/command|Description}}
{{Command table row
| command = /spawn
| description = Teleports you to spawn.
}}
</pre>
</pre>


Line 14: Line 17:
"description": "Creates one row for Template:Command table.",
"description": "Creates one row for Template:Command table.",
"params": {
"params": {
"1": {
"command": {
"label": "Command",
"label": "Command",
"description": "The command, permission, or short label shown in the small left column.",
"description": "The command, permission, or short label shown in the left column.",
"example": "/spawn",
"example": "/spawn",
"type": "string",
"type": "string",
"required": true
"required": true,
"suggested": true
},
},
"2": {
"description": {
"label": "Description",
"label": "Description",
"description": "The description shown in the larger right column.",
"description": "The explanation shown in the larger right column.",
"example": "Teleports you to spawn.",
"example": "Teleports you to spawn.",
"type": "content",
"type": "content",
"required": true
"required": true,
"suggested": true
}
}
}
}

Latest revision as of 19:20, 4 June 2026

Usage

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

Creates one row for Template:Command table.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Commandcommand

The command, permission, or short label shown in the left column.

Example
/spawn
Stringrequired
Descriptiondescription

The explanation shown in the larger right column.

Example
Teleports you to spawn.
Contentrequired