ਫਰਮਾ:Iso2country/doc
ਇਹ ਇੱਕ ਫਰਮਾ:Iso2country ਲਈ documentation ਉਪ ਸਫ਼ਾ ਹੈ। ਇਸ ਵਿੱਚ ਵਰਤੋਂ ਦੀ ਜਾਣਕਾਰੀ, ਸ਼੍ਰੇਣੀਆਂ ਅਤੇ ਹੋਰ ਸਮੱਗਰੀ ਜੋ ਮੂਲ ਦਾ ਹਿੱਸਾ ਨਹੀਂ ਹੈ, ਸ਼ਾਮਲ ਹੈ। ਫਰਮਾ page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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 to
will return the article "the" if needed;yes
|mode=
, which can optionally take one out of three values:
- if set to
, it will rearrange for sortkey.sort
- if set to
, it will return " (country)" if needed.unique
- if set to
, it will create a link.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
ਸੋਧੋ- {{ISO 639 name}}
- {{iso2nationality}}