Template:Infobox command: Difference between revisions
See talk page |
m rebase dev changes onto prod |
||
| Line 1: | Line 1: | ||
< | <includeonly>{{#invoke:infobox|infobox | ||
|title=<code>/{{{name|{{SUBPAGENAMEE}}}}}</code> | |||
|imagearea=none | |||
|rows= | |||
{{#if: {{{alias|}}} | {{infobox row|class=list-style-none|Aliases|{{{alias}}} }} }} | |||
{{#if: {{{hidden|}}} | {{infobox row|class=list-style-none|Visibility|{{ | |||
#ifeq: {{{hidden|}}} | 1 | Hidden | Visible | |||
}}}} | |||
}} | |||
{{infobox row|[[Permission level|Permission level<br />required]]|{{ | |||
#switch: {{{oplevel|}}} | |||
| 1 = 1 (moderator) | |||
| 2 = 2 (gamemaster) | |||
| 3 = 3 (admin) | |||
| 4 = 4 (owner) | |||
| #default = {{{oplevel|}}} | |||
}}}} | |||
{{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 }} | |||
}} | |||
}}{{ | |||
#if: {{{nocmdblock|}}} |[[Category:Pages with deprecated template input|nocmdblock]]}}</includeonly><noinclude> | |||
{{documentation}} | |||
</noinclude> | |||