Template:Infobox command: Difference between revisions

Redo with fix
mNo edit summary
Line 8: Line 8:
}}}}
}}}}
}}
}}
{{infobox row|[[Permission level|Permission level<br>required]]|{{
{{infobox row|[[Permission level|Permission level<br />required]]|{{
   #if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}} {{
   #switch: {{{oplevel|}}}
   #ifeq: {{{oplevel|}}} | 1 | (moderator) |{{
   | 1 = 1 (moderator)
   #ifeq: {{{oplevel|}}} | 2 | (gamemaster) |{{
   | 2 = 2 (gamemaster)
   #ifeq: {{{oplevel|}}} | 3 | (admin) |{{
   | 3 = 3 (admin)
   #ifeq: {{{oplevel|}}} | 4 | (owner) ||}}}}}}
  | 4 = 4 (owner)
   | #default = {{{oplevel|}}}
}}}}
}}}}
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{
   #if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{
   #if: {{{cheat|}}} | [[Option|Cheat]] only<br /> }}{{
   #if: {{{serveronly|}}} | Dedicated server only<br>}}{{
   #if: {{{serveronly|}}} | Dedicated server only<br />}}{{
   #if: {{{singleplayer|}}} | [[Singleplayer]] only<br> }}{{
   #if: {{{singleplayer|}}} | [[Singleplayer]] only<br /> }}{{
   #if: {{{others|}}} | {{{others}}} }}{{
   #if: {{{others|}}} | {{{others}}} }}{{
   #if: {{{serveronly|}}}{{{singleplayer|}}}{{{cheat|}}}{{{others|}}} || None }}
   #if: {{{serveronly|}}}{{{singleplayer|}}}{{{cheat|}}}{{{others|}}} || None }}