Template:Infobox command: Difference between revisions
Jump to navigation
Jump to search
m using more unnamed parameters |
m set no command blocks to be based on what the rest is set to. That's it for now, just need to update the article |
||
Line 5: | Line 5: | ||
{{infobox row|class=list-style-none|Restrictions|{{ | {{infobox row|class=list-style-none|Restrictions|{{ | ||
#switch: {{lc:{{{2|}}}}} | #switch: {{lc:{{{2|}}}}} | ||
|op = [[Operator]] | |op = [[Operator]]{{ | ||
|mp = [[Multiplayer]]<br>[[Operator]] | #ifeq: {{{cmdblock|}}} | 0 | <br>No [[command block]]s }} | ||
|mp = [[Multiplayer]]<br>[[Operator]]{{ | |||
#ifeq: {{{cmdblock|}}} | 1 || <br>No [[command block]]s }} | |||
|None | |None | ||
}} | |||
}} | }} | ||
{{#if: {{{3|}}} | {{infobox row|First introduced|{{version link|{{{3}}}}} {{ | {{#if: {{{3|}}} | {{infobox row|First introduced|{{version link|{{{3}}}}} {{ | ||
Line 45: | Line 45: | ||
|- | |- | ||
| <code>cmdblock</code> | | <code>cmdblock</code> | ||
| | | Set to 0 for no command block, or 1 for command blocks when using <code>MP</code> | ||
| ''None'' | | ''None'' | ||
|- | |- |
Revision as of 21:34, 1 August 2014
{{{1}}}
Restrictions |
None |
---|
{ "title": "{{{1}}}", "rows": [ { "field": "None", "label": "Restrictions" } ], "invimages": [], "images": [] }
This template provides a uniform design for the infobox on the commands page.
Parameter | Function | Default value |
---|---|---|
1
|
The commands name | N/A |
2
|
Restrictions on who can use the command. Can be OP (operator) or MP (multiplayer and operator)
|
None |
3
|
First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a). | None |
4
|
First development snapshot it was seen in, requires firstver. | None |
cmdblock
|
Set to 0 for no command block, or 1 for command blocks when using MP
|
None |
upcoming
|
Sets the command to upcoming, adding the upcoming footer. | None |