Template:Infobox command: Difference between revisions

mNo edit summary
mNo edit summary
Line 3: Line 3:
|imagearea=none
|imagearea=none
|rows=
|rows=
{{#if: {{{alias|}}} | {{infobox row|class=list-style-none|Aliases|{{{alias}}}  
{{#if: {{{alias|}}} | {{infobox row|class=list-style-none|Aliases|{{{alias}}} }} }}
}}  
}}
{{infobox row|class=list-style-none|Visibility|{{ #ifeq: {{{hidden|}}} | 1 | Hidden | Visible }}  }}
{{infobox row|class=list-style-none|Visibility|{{ #ifeq: {{{hidden|}}} | 1 | Hidden | Visible }}  }}
{{infobox row|Restrictions|{{
{{infobox row|Restrictions|{{#if: {{{oplevel|}}} | {{
   #switch: {{lc:{{{oplevel|}}}}}
   #switch: {{lc:{{{oplevel|}}}}}
   |1 = Bypass spawn protection
   |1 = Bypass spawn protection
   |2 = Cheats enabled
   |2 = Cheats enabled
   |3|op|operator = [[Operator]]
   |3 = [[Operator]]
   |4|admin|administrator = [[Administrator]]{{
   |4 = [[Administrator]]
    #ifeq: {{{cmdblock|}}} | 0 | <br>No [[command block]]s }}
  |Unknown
   |mp|multiplayer = [[Multiplayer]]<br>[[Operator]]{{
   }}}}{{
    #ifeq: {{{cmdblock|}}} | 1 || <br>No [[command block]]s }}
  |host|host = Host
  |?|unknown = Unknown
  }}{{
   #if: {{{nocmdblock|}}} | <br>No [[command block]]s | {{#switch: {{{oplevel|}}} | 3|4 = <br>No [[command block]]s {{abbr|by default|Can be changed in server.properties}} }} }}{{
   #if: {{{nocmdblock|}}} | <br>No [[command block]]s | {{#switch: {{{oplevel|}}} | 3|4 = <br>No [[command block]]s {{abbr|by default|Can be changed in server.properties}} }} }}{{
   #if: {{{multiplayer|}}} | <br>[[Multiplayer]] only }}{{
   #if: {{{multiplayer|}}} | <br>[[Multiplayer]] only }}{{
Line 24: Line 18:
   #if: {{{oplevel|}}}{{{nocmdblock|}}}{{{multiplayer|}}}{{{singleplayer|}}} || None }}
   #if: {{{oplevel|}}}{{{nocmdblock|}}}{{{multiplayer|}}}{{{singleplayer|}}} || None }}
}}
}}
}}{{#switch: {{lc:{{{oplevel|}}}}} |op|operator|admin|administrator|mp|multiplayer|host = [[Category:Pages with deprecated template input|Command]] }}
}}</includeonly><noinclude>
{{#if: {{{cmdblock|}}} | [[Category:Pages with deprecated template input|Command]] }}</includeonly><noinclude>
{{documentation}}
{{documentation}}[[Category:Templates with deprecated input]]
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>