Difference between revisions of "Template:Iso2country/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (add category)
Line 31: Line 31:
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
 
[[Category:Wikipedia formatting templates|{{PAGENAME}}]]
 
[[Category:Wikipedia formatting templates|{{PAGENAME}}]]
 +
[[Category:Database templates|{{PAGENAME}}]]
 
</includeonly>
 
</includeonly>

Revision as of 15:50, 11 May 2008

Usage

Given a ISO country code (ISO 3166-1 alpha-2), this template returns the matching country. It has one optional parameter: "article", which if it set to yes will return the article "the" if needed.

Code Result
{{iso2country|ES}} Spain
{{iso2country|GB}} United Kingdom
{{iso2country|US}} United States
{{iso2country|US|article=yes}} the United States
{{iso2country|ES|article=yes}} Spain

See also