Template:Infobox command: Difference between revisions

mNo edit summary
m 87 revisions imported
 
(41 intermediate revisions by 13 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
|title={{{name|{{SUBPAGENAME}}}}}
|title=<code>/{{{name|{{SUBPAGENAME}}}}}</code>
|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 }}  }}
{{#if: {{{hidden|}}} | {{infobox row|class=list-style-none|Visibility|{{
{{infobox row|Restrictions|{{#if: {{{oplevel|}}} | {{
      #ifeq: {{{hidden|}}} | 1 | Hidden | Visible }}}}
  #switch: {{lc:{{{oplevel|}}}}}
  |1 = Bypass spawn protection
  |2 = Cheats enabled
  |3 = [[Operator]]
  |4 = [[Administrator]]
  |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: {{{multiplayer|}}} | <br>[[Multiplayer]] only }}{{
  #if: {{{singleplayer|}}} | <br>[[Singleplayer]] only }}{{
  #if: {{{oplevel|}}}{{{nocmdblock|}}}{{{multiplayer|}}}{{{singleplayer|}}} || None }}
}}
}}
}}</includeonly><noinclude>
{{infobox row|[[Permission level|Permission level<br>required]]|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}}
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{
  #if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{
  #if: {{{serveronly|}}} | Dedicated server only<br>}}{{
  #if: {{{singleplayer|}}} | [[Singleplayer]] only<br> }}{{
  #if: {{{others|}}} | {{{others}}} }}{{
  #if: {{{serveronly|}}}{{{singleplayer|}}}{{{cheat|}}}{{{others|}}} || None }}
}}
}}<includeonly></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>