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...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{flagicon|{{{1|}}}}}{{Nationality|{{{1|}}}}}</includeonly><noinclude> |
+ | <includeonly>{{flagicon|{{{1|NOFLAG}}}}}{{Nationality|{{{1|NONATION}}}}}</includeonly><noinclude> |
This template returns the [[wikipedia:demonym|demonym]] associated with the three letter code, or flags it as "Unknown Country Code" if the 3-letter code is not known. |
This template returns the [[wikipedia:demonym|demonym]] associated with the three letter code, or flags it as "Unknown Country Code" if the 3-letter code is not known. |
||
Line 6: | Line 6: | ||
# 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. |
||
+ | ==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]] |
Revision as of 02:09, 17 August 2018
This template returns the 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.
Examples
*{{FlagNationality|GBR}} *{{FlagNationality|CHE}} *{{FlagNationality|SCT}} *{{FlagNationality}} *{{FlagNationality|USA}}
- Template:FlagiconBritish
- Template:FlagiconSwiss
- Template:FlagiconScottish
- Template:FlagiconNo Nationality
- Template:FlagiconAmerican