Template:Country2iso

From blackwiki
Jump to navigation Jump to search
Template documentation

This template does the opposite of {{Iso2country}} and the same as {{ISO 3166 code}}. However, rather than being Lua-based like {{ISO 3166 code}}, it transcludes the ISO codes from ISO 3166-1 alpha-2 based on the provided country name. This is particularly useful when subst'ing ISO codes, as Lua modules need to be subst'd twice, and {{ISO 3166 code}} often times out on long lists of countries.

Usage

{{Country2iso | country name}}

Example

{{Country2iso | China}} yields {{#lst:ISO 3166-1 alpha-2| China}}