Difference between revisions of "Template:FlagNationality"
(Created page with "<includeonly>{{flagicon|{{{1|}}}}}{{Nationality|{{{1|}}}}}</includeonly><noinclude> This template returns the demonym associated with the three letter co...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{ |
+ | <includeonly>{{flag|{{{1|NOFLAG}}}}} {{Nationality|{{{1|NONATION}}}}}</includeonly><noinclude> |
− | This template returns the [[wikipedia:demonym|demonym]] associated with the three letter code, or flags it as " |
+ | This template returns the flag and [[wikipedia:demonym|demonym]] associated with the three letter code, or flags it as "unknown country code" if the 3-letter code is not known. |
==Parameter== |
==Parameter== |
||
This template has one unnamed paramter: |
This template has one unnamed paramter: |
||
− | # The three [[wikipedia:ISO 3166-1 alpha-3|ISO letter country code]] of the respective nation. Additionally the four [[wikipedia:ISO 3166-2:GB|UK subdivision codes]] are allowed, and the leading "GB-" may be omitted. Can also left blank to display whitespace in the size of a flag. |
+ | # The three [[wikipedia:ISO 3166-1 alpha-3|ISO letter country code]] of the respective nation. Additionally the four [[wikipedia:ISO 3166-2:GB|UK subdivision codes]] are allowed, and the leading "GB-" may be omitted. Can also left blank to display whitespace in the size of a flag and "No Nationality". |
+ | ==Examples== |
||
+ | <pre> |
||
+ | *{{FlagNationality|GBR}} |
||
+ | *{{FlagNationality|CHE}} |
||
+ | *{{FlagNationality|SCT}} |
||
+ | *{{FlagNationality}} |
||
+ | *{{FlagNationality|USA}} |
||
+ | </pre> |
||
+ | |||
+ | *{{FlagNationality|GBR}} |
||
+ | *{{FlagNationality|CHE}} |
||
+ | *{{FlagNationality|SCT}} |
||
+ | *{{FlagNationality}} |
||
+ | *{{FlagNationality|USA}} |
||
[[Category:Flags]] |
[[Category:Flags]] |
Latest revision as of 14:04, 22 March 2019
This template returns the flag and demonym associated with the three letter code, or flags it as "unknown country code" if the 3-letter code is not known.
Parameter
This template has one unnamed paramter:
- The three ISO letter country code of the respective nation. Additionally the four UK subdivision codes are allowed, and the leading "GB-" may be omitted. Can also left blank to display whitespace in the size of a flag and "No Nationality".
Examples
*{{FlagNationality|GBR}} *{{FlagNationality|CHE}} *{{FlagNationality|SCT}} *{{FlagNationality}} *{{FlagNationality|USA}}
British
Swiss
Scottish
No Nationality
American