Template:Infobox command: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Setting imagearea to none skips a larger chunk of code
m aliases for op and mp
Line 5: Line 5:
{{infobox row|Restrictions|{{
{{infobox row|Restrictions|{{
   #switch: {{lc:{{{2|}}}}}
   #switch: {{lc:{{{2|}}}}}
   |op = [[Operator]]{{
   |op|operator = [[Operator]]{{
     #ifeq: {{{cmdblock|}}} | 0 | <br>No [[command block]]s }}
     #ifeq: {{{cmdblock|}}} | 0 | <br>No [[command block]]s }}
   |mp = [[Multiplayer]]<br>[[Operator]]{{
   |mp|multiplayer = [[Multiplayer]]<br>[[Operator]]{{
     #ifeq: {{{cmdblock|}}} | 1 || <br>No [[command block]]s }}
     #ifeq: {{{cmdblock|}}} | 1 || <br>No [[command block]]s }}
   |None
   |None

Revision as of 02:20, 22 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).
4 First development snapshot it was seen in, requires 3.
cmdblock Set to 0 for no command block, or 1 for command blocks when using MP Based on 2
upcoming Sets the command to upcoming, adding the upcoming footer.