Template:Infobox command: Difference between revisions

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: {{{cmdblock|}}} | <br>No [[command block]]s }}
}}
}}
{{#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>
| If set, adds the restriction "No [[command block]]s"
| Set to 0 for no command block, or 1 for command blocks when using <code>MP</code>
| ''None''
| ''None''
|-
|-