VOOZH about

URL: https://minecraft.wiki/w/Template:English_variant_abbreviation

⇱ Template:English variant abbreviation – Minecraft Wiki


Template:English variant abbreviation

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]

This template generates short names for English language variants (British English, American English, Australian English etc.), with an explanatory tooltip that shows the full name of the variant when the user hovers over it with the mouse cursor. It is primatily intended to be used in the "Other names" section in infoboxes for blocks, items, biomes, enchantments and more.

Anonymous parameters

[edit source]

The template takes an unlimited amount of unnamed parameters, each representing an English language variant. However, only the values listed in the "Known parameters" table below will have a tooltip generated for them. All other values will have the tooltip set to <unknown>.

Note that these values are not case-sensitive, unless the noupper parameter is set (see the "Named parameters" section below). For example, gb has the same meaning as GB.

Known parameters
Parameter English variant Output
AU Australian English AU
CA Canadian English CA
GB or UK British English GB or UK
NZ New Zealand English NZ
US American English US

Named parameters

[edit source]

The template also takes the following named parameters. These parameters are case-sensitive.

Named parameters
Parameter Description
noupper By default, this template converts all of the provided values to be uppercase. If this parameter is set, the values will not be converted to uppercase.

Example: {{|au|noupper=1}} generates (au) instead of (AU).

nowrap If this parameter is set, the generated text will not wrap into multiple lines under any circumstances. Equivalent to:
<spanstyle="white-space:nowrap">{{...}}</span>
small If this parameter is set, the template will use a smaller font size.

Example: (AU, CA, GB, NZ) → (AU, CA, GB, NZ)

noparen If this parameter is set, the template will not add parentheses to the text.

Example: (GB) → GB

nocomma If this parameter is set, the template will not add commas between multiple variant codes. This parameter is only effective if at least two variant codes are provided.

Example: (AU, NZ, US) → (AU NZ US)

Examples

[edit source]

NOTE: The shortcuts {{evb}} or {{variantabbr}} can also be used instead of the full name {{}}.

Example #1 – One language variant
Jacket Potato {{evb|GB}}
generates:
Jacket Potato (GB)
Example #2 – Two language variants
Roast Chicken {{evb|GB|NZ}}
generates:
Roast Chicken (GB, NZ)
Example #3 – Three language variants, with small text and no line wrapping
Biscuit {{evb|AU|GB|NZ|small=1|nowrap=1}}
generates:
Biscuit (AU, GB, NZ)
Example #4 – Two language variants, with lowercase names and no parentheses
{{evb|us|ca|noparen=1|noupper=1}}
generates:
us, ca
[view] [edit] [history] [purge]The above documentation is transcluded from Template:English variant abbreviation/doc.
Retrieved from "https://minecraft.wiki/w/Template:English_variant_abbreviation?oldid=3229989"

Navigation menu