Template:Infobox command: Difference between revisions

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:{{{restrict|}}}}}
   #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: {{{firstver|}}} | {{infobox row|First introduced|{{version link|{{{firstver}}}}} {{
{{#if: {{{3|}}} | {{infobox row|First introduced|{{version link|{{{3}}}}} {{
   #if: {{{firstdev|}}} | ({{version link|{{{firsedev}}}}})
   #if: {{{4|}}} | ({{version link|{{{4}}}}})
   }}}}
   }}}}
}}
}}
Line 32: Line 32:
| N/A
| N/A
|-
|-
| <code>restrict</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>cmdblock</code>
| <code>3</code>
| If set, adds the restriction "No [[command block]]s"
| First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a).
| ''None''
| ''None''
|-
|-
| <code>firstver</code>
| <code>4</code>
| First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a).
| First development snapshot it was seen in, requires firstver.
| ''None''
| ''None''
|-
|-
| <code>firstdev</code>
| <code>cmdblock</code>
| First development snapshot it was seen in, requires firstver.
| If set, adds the restriction "No [[command block]]s"
| ''None''
| ''None''
|-
|-