Difference between revisions of "Template:Iso2country/doc"
Jump to navigation
Jump to search
imported>Frietjes (→Usage) |
imported>Paine Ellsworth |
||
| Line 11: | Line 11: | ||
:* if set to {{code|link}}, it will create a link. | :* if set to {{code|link}}, it will create a link. | ||
| − | + | '''Basic usage''' | |
{| class="wikitable" | {| class="wikitable" | ||
| Line 51: | Line 51: | ||
|} | |} | ||
| − | + | '''Usage with {{para|article|<var>yes</var>}}''' | |
| + | |||
{| class="wikitable" | {| class="wikitable" | ||
! country code | ! country code | ||
| Line 90: | Line 91: | ||
|} | |} | ||
| − | + | '''Deprecated parameter''' | |
| + | |||
The misnamed {{para|template|''yes''}} parameter has been superseded by {{para|mode|''unique''}}. Continued use is tracked in {{cat|Pages using iso2country with unknown parameters}}. | The misnamed {{para|template|''yes''}} parameter has been superseded by {{para|mode|''unique''}}. Continued use is tracked in {{cat|Pages using iso2country with unknown parameters}}. | ||
Revision as of 22:11, 2 August 2017
| 40px | This is a documentation subpage for Template:Iso2country. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Given an ISO country code (ISO 3166-1 alpha-2), this template returns the matching country.
It has two optional parameters:
|article=, which if it set toyeswill return the article "the" if needed;|mode=, which can optionally take one out of three values:
- if set to
sort, it will rearrange for sortkey. - if set to
unique, it will return " (country)" if needed. - if set to
link, it will create a link.
- if set to
Basic usage
| country code | default | |mode=sort
|
|mode=unique
|
|mode=link
|
|---|---|---|---|---|
{{iso2country|ES}}
|
Spain | Spain | Spain | Spain |
{{iso2country|US}}
|
United States | United States | United States | United States |
{{iso2country|IE}}
|
Republic of Ireland | Ireland | Republic of Ireland | Republic of Ireland |
{{iso2country|CD}}
|
Democratic Republic of the Congo | Congo, D | Democratic Republic of the Congo | Democratic Republic of the Congo |
{{iso2country|GE}}
|
Georgia | Georgia | Georgia (country) | Georgia |
Usage with |article=yes
| country code | default | |mode=sort
|
|mode=unique
|
|mode=link
|
|---|---|---|---|---|
{{iso2country|ES}}
|
Spain | Spain | Spain | Spain |
{{iso2country|US}}
|
the United States | United States | the United States | the United States |
{{iso2country|IE}}
|
the Republic of Ireland | Ireland | the Republic of Ireland | the Republic of Ireland |
{{iso2country|CD}}
|
the Democratic Republic of the Congo | Congo, D | the Democratic Republic of the Congo | the Democratic Republic of the Congo |
{{iso2country|GE}}
|
Georgia | Georgia | Georgia (country) | Georgia |
Deprecated parameter
The misnamed |template=yes parameter has been superseded by |mode=unique. Continued use is tracked in Category:Pages using iso2country with unknown parameters.
See also
- {{iso2lang}}
- {{iso2nationality}}