Template:Infobox command: Difference between revisions

From Modded Wiki
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:{{{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''
|-
|-

Revision as of 21:25, 1 August 2014

{{{1}}}
Restrictions

None

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