Template:Flagicon: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
m (50 revisions imported from wikipedia:Template:Flagicon)
 
(26 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<includeonly>{{safesubst<noinclude />:#ifeq: {{Yesno-no|{{{noredlink|}}}}}|yes<noinclude><!--
{{#if: {{{1|<noinclude>-</noinclude>}}} |
--></noinclude>|<noinclude><!--
{{country_flagicon|{{{1}}}|{{{1}}}|size={{{size|}}}}}
#Check for existence of Template: Country data foo before invoking it
}}<noinclude>
--></noinclude>{{safesubst<noinclude />:#ifexist: Template: Country data {{{1|}}}<noinclude><!--
{{protected template}}
--></noinclude>|<noinclude><!--
Produces an image of a country flag.
# It exists, so proceed
Example:
--></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!--
'''<nowiki>{{Flagicon|NLD}}</nowiki>''' produces {{flagicon|NLD}}.
--></noinclude>|<noinclude><!--

# It doesn't exist, so do nothing
'''This template is designed for use in stub templates and in infoboxes in which there is not enough space to write the name of the country''' (such as Olympics tables).
--></noinclude>}}<noinclude><!--

--></noinclude>|<noinclude><!--
[[Category:Flag templates]]
# DEFAULT call Template: Country data {{{1|}}}

# with no prior checks
[[ca:Plantilla:Bandera]]
--></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!--
[[cs:Template:Flagicon]]
# Track use where "Template:Country data Foo" does not exist
[[cy:Nodyn:Eicon baner]]
--></noinclude>{{safesubst<noinclude />:#ifexist: Template:Country data {{{1|}}}||{{safesubst<noinclude />:namespace detect showall
[[es:Plantilla:Flagicon]]
| 1 =
[[fr:Modèle:Flagicon]]
| 2 = [[Category:Flagicons with missing country data templates]]
[[ko:틀:국기나라]]
| user = 1
[[hu:Sablon:Zászló]]
| talk = 1
[[ja:Template:Flagicon]]
| other = 2
[[ro:Format:Flagicon]]
}}}}<noinclude><!--
[[tr:Şablon:Bayrakikonu]]
--></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>
{{DEFAULTSORT:Flagicon}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 03:02, 26 February 2021


Template documentation[create]