Template:Edition Switch
Java Edition
Usage
{{Edition Switch}}
{{Edition Switch|edition}}
{{Edition Switch|edition|java=java/default output|bedrock=bedrock/pocket output|console=console output}}
{{Edition Switch|edition|java=java output|bedrock=bedrock output|console=console output|pocket=pocket output|default=default output}}
{{Edition Switch}} takes many different abbreviations and short spellings of different editions and normalizes them into one set of options, this makes it very convenient for templates that need to work for many different editions and allows editors to use short hand forms for editions instead of having to spell out the full name. When the first parameter for the edition is omitted it uses the namespace of the article instead, when any edition parameter is omitted it simply returns the edition's name.
List of Edition Codes
case insensitive codes for each edition
Edition | Code |
---|---|
Java Edition | mc |
mcje | |
mcj | |
je | |
j | |
java edition | |
java | |
Bedrock Edition | mcbe |
mcb | |
be | |
b | |
bedrock edition | |
bedrock | |
Console Edition | mcce |
mcc | |
ce | |
c | |
console edition | |
console | |
Pocket Edition | mcpe |
mcp | |
pe | |
p | |
pocket edition | |
Namespace | ns |
Template Data
Takes many different abbreviations and short spellings of different editions and normalizes them into one set of options
Parameter | Description | Type | Status | |
---|---|---|---|---|
Edition | 1 | A string that represents an edition can be: JE, BE, CE, PE and many others. Defaults to namespace when omitted or set to 'ns' | String | optional |
Default output | default | Output used when an edition could not be determined, uses java parameter when omitted | String | optional |
Output for Java Edition | java | What is outputted when the template determines the edition is Java Edition, result is "Java Edition" when omitted | String | optional |
Output for Bedrock Edition | bedrock | What is outputted when the template determines the edition is Bedrock Edition, result is "Bedrock Edition" when omitted | String | optional |
Output for Console Edition | console | What is outputted when the template determines the edition is Console Edition, result is "Console Edition" when omitted | String | optional |
Output for Pocket Edition | pocket | What is outputted when the template determines the edition is Pocket Edition, uses bedrock parameter when omitted | String | optional |