Template:ConvertAbbrev
This template is uised tae convert commonly abbreviatit things such as kintras, states, provinces, an even leid codes tae an frae their abbreviations. A hierarchical tree o subtemplates allous this template tae convert virtually onything, which is really guid for use in a backdoor template. If you hae the wird "Californie", but the template you're treein tae uise will anerly recognize "CA", uise this tae convert it!
Hou tae uise the template
[eedit soorce]Syntax: {{ConvertAbbrev|datatype|specification|value|force=abbr or long}}
This template consists o a "tree" o subtemplates conteenin databases o abbreviations. Each successive parameter in the code input tells the template which database to query. The datatype parameter is the most broad and tells the template what type of information you are looking for (i.e. Countries, states, or languages). The specification parameter refines the search. For example, if the datatype parameter is "ISO 3166-1", that tells the template to look for a subtype (alpha2, alpha3, or numeric). If the datatype parameter is "ISO 3166-2", the template will look for a specific country (Canada, Mexico, United States, etc.). If the datatype parameter is "ISO 639-1", the template looks for the name of a language (English, Spanish, Zulu, etc.). The value parameter is the actual name or abbreviation the user wishes to convert.
The force parameter overrides the normal nature of the conversion and forces an abbreviation or a long word to be returned. This is useful when a user may input either an abbreviation or a full name, but the template in question can only accept one of them.
If the ISO codes are a little haurd tae remember, thare are forbye shortcuts:
{{ConvertAbbrev|ISO 3166-1|alpha-2|__country__}}
can also be called by{{ConvertAbbrev|Countries|alpha-2|__country__}}
or{{ConvertAbbrev|Countries|__country__}}
.
Note: The default for country abbreviations is alpha-2. For alpha-3 and numeric abbreviations, the user must specify the type in the specification parameter.
{{ConvertAbbrev|ISO 3166-2|CA|__province__}}
can also be called by{{ConvertAbbrev|Countries|CA|__province__}}
,{{ConvertAbbrev|Countries|Canada|__province__}}
,{{ConvertAbbrev|Canada|__province__}}
, or{{ConvertAbbrev|CN|__province__}}
.
{{ConvertAbbrev|ISO 639-1|__language__}}
can also be called by{{ConvertAbbrev|Languages|-1|__language__}}
or{{ConvertAbbrev|Languages|__language__}}
.
Note: The default for language abbreviations is ISO 639-1. For ISO 639-2 abbreviations, the user must specify the type in the specification parameter.
{{ConvertAbbrev|ISO 639-2|__language__}}
can also be called by{{ConvertAbbrev|Languages|-2|__language__}}
.
Supportit datasets
[eedit soorce]- ISO 3166-1 – Kintra abbreviations
- ISO 3166-2 – State/provincial abbreviations
Note: All ISO 3166-2 codes should not include the 3166-1 country code in the value parameter. (e.g. If you're looking for Paris ["FR-75" in ISO 3166-2:FR], you should only type "75" and not "FR-75".)- ISO 3166-2:AU – States an territories o Australie
- ISO 3166-2:BD – Destricts o Bangladesh
- ISO 3166-2:BR – States o Brazil
- ISO 3166-2:CA – Canadian subnational postal abbreviations
- ISO 3166-2:CN – Provinces o Cheenae
- ISO 3166-2:DE – States o Germany
- ISO 3166-2:EG – Govrenorates o Egyp
- ISO 3166-2:ES – Provinces o Spain
- ISO 3166-2:FR – Depairtments o France
- ISO 3166-2:GB – Admeenistrative geografie o the Unitit Kinrick
- ISO 3166-2:ID – Provinces o Indonesie
- ISO 3166-2:IE – Coonties o Ireland
- ISO 3166-2:IN – States an territories o Indie
- ISO 3166-2:IT – Provinces o Italy
- ISO 3166-2:JP – Prefecturs o Japan
- ISO 3166-2:MX – Admeenistrative diveesions o Mexico
- ISO 3166-2:NG – States o Nigerie
- ISO 3166-2:PK – Admeenistrative units o Pakistan
- ISO 3166-2:RU – Federal subjects o Roushie
- ISO 3166-2:TR – Provinces o Turkey
- ISO 3166-2:US – Unitit States postal abbreviations
- ISO 3166-2:VN – Provinces o Vietnam
- ISO 639 – Leid codes
Uisage Examples
[eedit soorce]
|
|
Sub-pages
[eedit soorce]For a leet o aw the sub-pages o this template, see: Special:PrefixIndex/Template:ConvertAbbrev