Template:Edition Switch

From Minecraft Discontinued Features Wiki
Jump to navigation Jump to search

Java Edition

[view | edit | history | purge | sandbox]Documentation
High risk template! Please edit this template's sandbox instead of testing on it directly, and check it's testcases before putting the final edit on the main template.

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
pocket
Namespace ns

Template Data

Takes many different abbreviations and short spellings of different editions and normalizes them into one set of options

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Edition1

A string that represents an edition can be: JE, BE, CE, PE and many others. Defaults to namespace when omitted or set to 'ns'

Stringoptional
Default outputdefault

Output used when an edition could not be determined, uses java parameter when omitted

Stringoptional
Output for Java Editionjava

What is outputted when the template determines the edition is Java Edition, result is "Java Edition" when omitted

Stringoptional
Output for Bedrock Editionbedrock

What is outputted when the template determines the edition is Bedrock Edition, result is "Bedrock Edition" when omitted

Stringoptional
Output for Console Editionconsole

What is outputted when the template determines the edition is Console Edition, result is "Console Edition" when omitted

Stringoptional
Output for Pocket Editionpocket

What is outputted when the template determines the edition is Pocket Edition, uses bedrock parameter when omitted

Stringoptional
[view | edit | history | purge | sandbox]The above documentation is transcluded from Template:Edition Switch/doc.