Template:Infobox command/doc: Difference between revisions

Examples and templatedata
Documentation & templatedata
Line 11: Line 11:
| <code>alias</code>
| <code>alias</code>
| Aliases for the commands.
| Aliases for the commands.
|-
| <code>addedVersion</code> || Version added || ''None''
|-
| <code>addedDate</code> || Date added || ''None''
|-
| <code>removedVersion</code> || Version removed || ''None''
|-
| <code>removedDate</code> || Date removed || ''None''
|-
|-
| <code>hidden</code>
| <code>hidden</code>
Line 47: Line 55:
{{Infobox command
{{Infobox command
| name = msg
| name = msg
| alias = * tell * w
| alias = /tell
| permission = 0
| permission = 0
}}
}}
Line 53: Line 61:
{{Infobox command
{{Infobox command
| name = msg
| name = msg
| alias = * tell * w
| alias = /tell
| permission = 0
| permission = 0
}}
}}
Line 63: Line 71:
| name = {{{name}}}
| name = {{{name}}}
| alias = {{{alias}}}
| alias = {{{alias}}}
| added = {{{added}}}
| addedVersion = {{{addedVersion}}}
| removed = {{{removed}}}
| addedDate = {{{addedDate}}}
| removedVersion = {{{removedVersion}}}
| removedDate = {{{removedDate}}}
| editions = {{{editions}}}
| editions = {{{editions}}}
| oplevel = 1
| oplevel = 1
Line 71: Line 81:
| serveronly = 1
| serveronly = 1
| singleplayer = 1
| singleplayer = 1
| hidden = 1
| others = {{{others}}}
| others = {{{others}}}
| related = {{{related}}}
| related = {{{related}}}
Line 78: Line 89:
| name = {{{name}}}
| name = {{{name}}}
| alias = {{{alias}}}
| alias = {{{alias}}}
| added = {{{added}}}
| addedVersion = {{{addedVersion}}}
| removed = {{{removed}}}
| addedDate = {{{addedDate}}}
| removedVersion = {{{removedVersion}}}
| removedDate = {{{removedDate}}}
| editions = {{{editions}}}
| editions = {{{editions}}}
| oplevel = 1
| oplevel = 1
Line 86: Line 99:
| serveronly = 1
| serveronly = 1
| singleplayer = 1
| singleplayer = 1
| hidden = 1
| others = {{{others}}}
| others = {{{others}}}
| related = {{{related}}}
| related = {{{related}}}
Line 126: Line 140:
]
]
},
},
"added": {
"addedVersion": {
"label": "Version added",
"label": "Version added",
"type": "string",
"type": "string",
"description": "Version this command was added."
"description": "Version this command was added.",
"example": "{{Verlink|1.5}}",
"aliases": [
"added"
]
},
"addedDate": {
"label": "Date added",
"type": "date",
"description": "The date the command was added.",
"example": "{{Start date|2012|2|15}}"
},
},
"removed": {
"removedVersion": {
"label": "Version removed",
"label": "Version removed",
"type": "string",
"type": "string",
"description": "Version this command was removed."
"description": "Version this command was removed.",
"example": "{{Verlink|1.9}}",
"aliases": [
"removed"
]
},
"removedDate": {
"label": "Date removed",
"type": "date",
"description": "The date the command was removed.",
"example": "{{End date|2016|5|31}}"
},
},
"oplevel": {
"oplevel": {
Line 179: Line 213:
"cmdblock",
"cmdblock",
"noCommandBlock"
"noCommandBlock"
]
},
"hidden": {
"label": "Hidden",
"description": "If set, mentions the command is hidden.",
"autovalue": "1",
"aliases": [
"disabled"
]
]
},
},
Line 193: Line 235:
"type": "string",
"type": "string",
"description": "Related commands."
"description": "Related commands."
},
"hidden": {
"label": "Hidden",
"description": "If set, the infobox is hidden.",
"autovalue": "1",
"aliases": [
"disabled"
]
}
}
}
}
}
}
</templatedata>
</templatedata>