Template:Flagicon: Difference between revisions
From The FunKey Wiki
Content added Content deleted
(remove unnecessary specification) |
m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{1|}}}|[[File:{{#switch:{{lc:{{{1|}}}}} |
|||
<includeonly>{{safesubst<noinclude />:#ifeq: {{Yesno-no|{{{noredlink|}}}}}|yes<noinclude><!-- |
|||
|bahamas = Flag of the Bahamas |
|||
--></noinclude>|<noinclude><!-- |
|||
|central african republic|car = Flag of the Central African Republic |
|||
#Check for existence of Template: Country data foo before invoking it |
|||
|comoros = Flag of the Comoros |
|||
--></noinclude>{{safesubst<noinclude />:#ifexist: Template: Country data {{{1|}}}<noinclude><!-- |
|||
|czech republic|czechia = Flag of the Czech Republic |
|||
--></noinclude>|<noinclude><!-- |
|||
|democratic republic of the congo|drc|congo-kinshasa = Flag of the Democratic Republic of the Congo |
|||
# It exists, so proceed |
|||
|europe|european union|eu = Flag of Europe |
|||
--></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!-- |
|||
|federated states of micronesia|micronesia|fsm = Flag of the Federated States of Micronesia |
|||
--></noinclude>|<noinclude><!-- |
|||
|france|guadeloupe|martinique|french guyana|guyane|réunion|reunion|mayotte = Flag of France |
|||
# It doesn't exist, so do nothing |
|||
|gambia = Flag of The Gambia |
|||
--></noinclude>}}<noinclude><!-- |
|||
|honduras = Real flag of Honduras |
|||
--></noinclude>|<noinclude><!-- |
|||
|marshall islands = Flag of the Marshall Islands |
|||
# DEFAULT call Template: Country data {{{1|}}} |
|||
|mexico|united states of mexico = Flag of Mexico |
|||
# with no prior checks |
|||
|netherlands = Flag of the Netherlands |
|||
--></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!-- |
|||
|north macedonia|former yugoslav republic of macedonia|fyrom|macedonia = Flag of North Macedonia |
|||
# Track use where "Template:Country data Foo" does not exist |
|||
|people's republic of china|china = Flag of the People's Republic of China |
|||
--></noinclude>{{safesubst<noinclude />:#ifexist: Template:Country data {{{1|}}}||{{safesubst<noinclude />:namespace detect showall |
|||
|palestinian territories = Flag of Palestine |
|||
| 1 = |
|||
|republic of the congo|congo|congo-brazzaville = Flag of the Republic of the Congo |
|||
| 2 = [[Category:Flagicons with missing country data templates]] |
|||
|russia|russian federation = Flag of Russia |
|||
| user = 1 |
|||
|seychelles = Flag of the Seychelles |
|||
| talk = 1 |
|||
|singapore|republic of singapore = Flag of Singapore |
|||
| other = 2 |
|||
|soviet union|ussr|u.s.s.r. = Flag of the Soviet Union |
|||
}}}}<noinclude><!-- |
|||
|taiwan|republic of china = Flag of Taiwan |
|||
--></noinclude>}}</includeonly>{{safesubst<noinclude />:#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using flagicon template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Flagicon]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | noredlink | size | variant }}<noinclude> |
|||
|ukrainian people's republic 1917|unr = Flag of Ukrainian People's Republic 1917 |
|||
{{Documentation}} |
|||
|ulster|northern ireland = Ulster banner |
|||
</noinclude> |
|||
|united nations|un = Flag of the United Nations |
|||
|united states|united states of america|usa|us = Flag of the United States |
|||
|#default = Flag of {{ucfirst:{{{1|}}}}} |
|||
}}.svg|22x18px|border|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]{{#if:{{{2|}}}| {{{2|}}}| }}}}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 05:41, 26 September 2021
Documentation[ view · edit · history · Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. ]
This documentation is transcluded from Template:Flagicon/doc.
Usage
{{Flagicon |1= |2= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | The name of a region, such as a country, for which a "Flag of RegionName.svg" file exists on Commons. | empty | required | |
2 | Text string to follow the flag icon; leave empty for none. | empty | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Localization
This template is not intended to be localized.