Template:Infobox command: Difference between revisions

m doc style
m 87 revisions imported
 
(79 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
|title={{{1}}}
|title=<code>/{{{name|{{SUBPAGENAME}}}}}</code>
|imagearea=none
|imagearea=none
|rows=
|rows=
{{infobox row|Restrictions|{{
{{#if: {{{alias|}}} | {{infobox row|class=list-style-none|Aliases|{{{alias}}} }} }}
  #switch: {{lc:{{{2|}}}}}
{{#if: {{{hidden|}}} | {{infobox row|class=list-style-none|Visibility|{{
  |op|operator = [[Operator]]{{
      #ifeq: {{{hidden|}}} | 1 | Hidden | Visible }}}}
    #ifeq: {{{cmdblock|}}} | 0 | <br>No [[command block]]s }}
  |mp|multiplayer = [[Multiplayer]]<br>[[Operator]]{{
    #ifeq: {{{cmdblock|}}} | 1 || <br>No [[command block]]s }}
  |None
  }}
}}
}}
{{#if: {{{3|}}} | {{infobox row|First introduced|{{version link|{{{3}}}}} {{
{{infobox row|[[Permission level|Permission level<br>required]]|{{#if:{{{oplevel|}}}|{{{oplevel}}}|Unknown}}}}
   #if: {{{4|}}} | ({{version link|{{{4}}}}})
{{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 }}
}}
}}
|footer={{
}}<includeonly></includeonly><noinclude>
  #if: {{{upcoming|}}}
{{documentation}}
  | This command has appeared in [[development versions]], but a full update containing these features has not been released yet. [[Category:Upcoming]]
  }}
}}<noinclude>
{{documentation|content=
This template provides a uniform design for the infobox on the [[commands]] page.
 
{{{!}} class="wikitable"
! Parameter
! Function
! Default value
{{!}}-
{{!}} <code>1</code>
{{!}} The commands name
{{!}} N/A
{{!}}-
{{!}} <code>2</code>
{{!}} Restrictions on who can use the command. Can be <code>OP</code> (operator) or <code>MP</code> (multiplayer and operator)
{{!}} None
{{!}}-
{{!}} <code>3</code>
{{!}} First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a).
{{!}}
{{!}}-
{{!}} <code>4</code>
{{!}} First development snapshot it was seen in, requires <code>3</code>.
{{!}}
{{!}}-
{{!}} <code>cmdblock</code>
{{!}} Set to 0 for no command block, or 1 for command blocks when using <code>MP</code>
{{!}} Based on <code>2</code>
{{!}}-
{{!}} <code>upcoming</code>
{{!}} Sets the command to upcoming, adding the upcoming footer.
{{!}}
{{!}}}
 
}}
 
[[Category:Infobox templates]]
</noinclude>
</noinclude>