![]() |
VOOZH | about |
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.
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.
| 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 |
The template also takes the following named parameters. These parameters are case-sensitive.
| 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: |
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) |
NOTE: The shortcuts {{evb}} or {{variantabbr}} can also be used instead of the full name {{}}.
Jacket Potato {{evb|GB}}
Roast Chicken {{evb|GB|NZ}}
Biscuit {{evb|AU|GB|NZ|small=1|nowrap=1}}
{{evb|us|ca|noparen=1|noupper=1}}