Template:Infobox command: Difference between revisions

Show command name with a leading slash and using Template:Code, to be consistent with the rest of the wiki
Add permission level name next to numeric value
Line 5: Line 5:
{{#if: {{{alias|}}} | {{infobox row|class=list-style-none|Aliases|{{{alias}}} }} }}
{{#if: {{{alias|}}} | {{infobox row|class=list-style-none|Aliases|{{{alias}}} }} }}
{{#if: {{{hidden|}}} | {{infobox row|class=list-style-none|Visibility|{{
{{#if: {{{hidden|}}} | {{infobox row|class=list-style-none|Visibility|{{
      #ifeq: {{{hidden|}}} | 1 | Hidden | Visible }}}}
  #ifeq: {{{hidden|}}} | 1 | Hidden | Visible
}}}}
}}
}}
{{infobox row|[[Permission level|Permission level<br>required]]|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}}
{{infobox row|[[Permission level|Permission level<br>required]]|{{
  #if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}{{
  #ifeq: {{{oplevel|}}} | 1 | (moderator) |
  #ifeq: {{{oplevel|}}} | 2 | (gamemaster) |
  #ifeq: {{{oplevel|}}} | 3 | (admin) |
  #ifeq: {{{oplevel|}}} | 4 | (owner) ||
}}}}
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{
   #if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{
   #if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{