Template:Infobox command: Difference between revisions

mNo edit summary
Add more parameters, fix XML warning
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}}} }} }}
{{#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]] required|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}}
{{#if: {{{added|}}} | {{Infobox row|Version added|{{{added}}} }} }}
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{
{{#if: {{{removed|}}} | {{Infobox row|Version removed|{{{removed}}} }} }}
   #if: {{{nocmdblock|}}} | No [[command block]]s<br> }}{{
{{#if: {{{editions|}}} | {{Infobox row|Editions|{{{editions}}} }} }}
   #if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{
{{Infobox row|[[Permission level]] required|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}}
   #if: {{{serveronly|}}} | Dedicated server only<br>}}{{
{{Infobox row|[[Commands#Restrictions|Restrictions]]|{{
   #if: {{{singleplayer|}}} | [[Singleplayer]] only<br> }}{{
   #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: {{{others|}}} | {{{others}}} }}{{
   #if: {{{others|}}} | {{{others}}} }}{{
   #if: {{{nocmdblock|}}}{{{serveronly|}}}{{{singleplayer|}}}{{{cheat|}}}{{{others|}}} || None }}
   #if: {{{nocmdblock|}}}{{{serveronly|}}}{{{singleplayer|}}}{{{cheat|}}}{{{others|}}} || None }}
}}
}}
{{#if: {{{related|}}} | {{Infobox row|Related commands|{{{related}}} }} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>