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 | |3 = [[Operator]] | ||
|4 | |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: {{{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 }} | ||
}} | }} | ||
}}</includeonly><noinclude> | |||
{{documentation}} | |||
{{documentation}} | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||