Template:Infobox command: Difference between revisions
mNo edit summary |
simplify |
||
| Line 4: | Line 4: | ||
|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| | #ifeq: {{{hidden|}}} | 1 | Hidden | Visible }}}} | ||
}} | |||
{{infobox row|[[Commands#Permission level|Permission]]|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}} | |||
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{ | |||
#if: {{{nocmdblock|}}} | No [[command block]]s<br> }}{{ | |||
#if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{ | |||
#if: {{{serveronly|}}} | Dedicated server only<br>}}{{ | |||
#if: {{{singleplayer|}}} | [[Singleplayer]] only<br> }}{{ | |||
#if: {{{nocmdblock|}}} | | #if: {{{others|}}} | {{{others}}} }}{{ | ||
#if: {{{ | #if: {{{nocmdblock|}}}{{{serveronly|}}}{{{singleplayer|}}}{{{cheat|}}}{{{others|}}} || None }} | ||
#if: {{{singleplayer|}}} | | |||
#if: {{{ | |||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||