Template:Infobox command: Difference between revisions
Jump to navigation
Jump to search
several repeated infoboxes on the commands page, so I will merge them into one. Subpage since it will only be used here (that I know of). There was also a typo here or there |
m using more unnamed parameters |
||
Line 4: | Line 4: | ||
|rows= | |rows= | ||
{{infobox row|class=list-style-none|Restrictions|{{ | {{infobox row|class=list-style-none|Restrictions|{{ | ||
#switch: {{lc:{{{ | #switch: {{lc:{{{2|}}}}} | ||
|op = [[Operator]] | |op = [[Operator]] | ||
|mp = [[Multiplayer]]<br>[[Operator]] | |mp = [[Multiplayer]]<br>[[Operator]] | ||
Line 12: | Line 12: | ||
#if: {{{cmdblock|}}} | <br>No [[command block]]s }} | #if: {{{cmdblock|}}} | <br>No [[command block]]s }} | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{3|}}} | {{infobox row|First introduced|{{version link|{{{3}}}}} {{ | ||
#if: {{{ | #if: {{{4|}}} | ({{version link|{{{4}}}}}) | ||
}}}} | }}}} | ||
}} | }} | ||
Line 32: | Line 32: | ||
| N/A | | N/A | ||
|- | |- | ||
| <code> | | <code>2</code> | ||
| Restrictions on who can use the command. Can be <code>OP</code> (operator) or <code>MP</code> (multiplayer and operator) | | Restrictions on who can use the command. Can be <code>OP</code> (operator) or <code>MP</code> (multiplayer and operator) | ||
| ''None'' | | ''None'' | ||
|- | |- | ||
| <code> | | <code>3</code> | ||
| | | First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a). | ||
| ''None'' | | ''None'' | ||
|- | |- | ||
| <code> | | <code>4</code> | ||
| First | | First development snapshot it was seen in, requires firstver. | ||
| ''None'' | | ''None'' | ||
|- | |- | ||
| <code> | | <code>cmdblock</code> | ||
| | | If set, adds the restriction "No [[command block]]s" | ||
| ''None'' | | ''None'' | ||
|- | |- |
Revision as of 21:25, 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
|
If set, adds the restriction "No command blocks" | None |
upcoming
|
Sets the command to upcoming, adding the upcoming footer. | None |