Template:Infobox command: Difference between revisions

Add dating parameters
m Revert edits by SWinxy (talk) version & date params are long deprecated from being put in infoboxes due to the various editions of minecraft
Line 1: Line 1:
{{#invoke:infobox|infobox
<includeonly>{{#invoke:infobox|infobox
|title={{{name|{{SUBPAGENAME}}}}}
|title={{{name|{{SUBPAGENAME}}}}}
|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 }}}}
}}
}}
{{#if: {{{addedVersion|}}} | {{Infobox row|Version added|{{{addedVersion}}}{{#if: {{{addedDate|}}} | , {{{addedDate}}} }} }} }}
{{infobox row|[[Permission level]] required|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}}
{{#if: {{{removedVersion|}}} | {{Infobox row|Version removed|{{{removedVersion}}}{{#if: {{{removedDate|}}} | , {{{removedDate}}} }} }} }}
{{infobox row|[[Commands#Restrictions|Restrictions]]|{{
{{#if: {{{editions|}}} | {{Infobox row|Editions|{{{editions}}} }} }}
   #if: {{{nocmdblock|}}} | No [[command block]]s<br> }}{{
{{Infobox row|[[Permission level]] required|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}}
   #if: {{{cheat|}}} | [[Option|Cheat]] only<br> }}{{
{{Infobox row|[[Commands#Restrictions|Restrictions]]|{{
   #if: {{{serveronly|}}} | Dedicated server only<br>}}{{
   #if: {{{nocmdblock|}}} | No [[command block]]s<br /> }}{{
   #if: {{{singleplayer|}}} | [[Singleplayer]] only<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>
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>