Template:Country flag: Difference between revisions

Template page
mNo edit summary
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:{{#ifexist:Template:country flag alias {{{1}}}|<!-- THEN: -->{{country flag alias {{{1}}}}}|<!-- ELSE: -->{{country flag alias}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{#ifexist:Template:country label alias {{{1}}}|<!-- THEN: -->{{country label alias {{{1}}}}}|<!-- ELSE: -->{{country label alias}}}}]]&nbsp;[[{{#ifexist:Template:country alias {{{1}}}|{{country alias {{{1}}}}}|Wikipedia:{{country label alias}}}}|{{#if:{{{name|}}}|{{{name}}}|<!--ELSE: -->{{#ifexist:Template:country label alias {{{1}}}|<!-- THEN: -->{{country label alias {{{1}}}}}|<!-- ELSE: -->{{country label alias}}}}}}]]<noinclude>
<includeonly>{{#if:{{{border|}}}|<!-- THEN: -->{{border|[[Image:{{#ifexist:Template:country flag alias {{{1}}}|<!-- THEN: -->{{country flag alias {{{1}}}}}|<!-- ELSE: -->{{country flag alias}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{#ifexist:Template:country label alias {{{1}}}|<!-- THEN: -->{{country label alias {{{1}}}}}|<!-- ELSE: -->{{country label alias}}}}]]}}|<!-- THEN: -->[[Image:{{#ifexist:Template:country flag alias {{{1}}}|<!-- THEN: -->{{country flag alias {{{1}}}}}|<!-- ELSE: -->{{country flag alias}}}}|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|{{#ifexist:Template:country label alias {{{1}}}|<!-- THEN: -->{{country label alias {{{1}}}}}|<!-- ELSE: -->{{country label alias}}}}]]}}{{#ifeq:{{{notext|}}}|Y|<!-- THEN: -->|<!-- ELSE: -->&nbsp;{{#ifexist:Template:country alias {{{1}}}| <!-- THEN: -->[[{{country alias {{{1|}}}}}|{{country label alias {{{1}}}}}]]|<!-- ELSE: -->}}}}</includeonly><noinclude>
;Vaild Flags
== Notice ==
{{Country flag|US}}<br/>
The better way to use this template is {{tl|flag}}. This is the template that creates all the options and keeps track of the different flags.
{{Country flag|AU}}<br/>
 
{{Country flag|DE}}<br/>
 
{{Country flag|UK}}<br/>
{| class="messagebox" style="text-align: center"
{{Country flag|CA}}<br/>
|+ Flag Table
[[Category:Flag templates|{{PAGENAME}}]]
! Code !! Outputs !! Example Code
|-
| || {{Country flag}}<ref>If no code is entered, you get the Earth Flag.</ref> || {{tlp|{{PAGENAME}}}}
|-
| AU || {{Country flag|AU}}|| {{tlp|{{PAGENAME}}|AU}}
|-
| BE || {{Country flag|BE|border=Y}} || {{tlp|{{PAGENAME}}|BE}}
|-
| CA || {{Country flag|CA}} || {{tlp|{{PAGENAME}}|CA}}
|-
| DE || {{Country flag|DE|border=Y}} || {{tlp|{{PAGENAME}}|DE}}
|-
| EE || {{Country flag|EE|border=Y}} || {{tlp|{{PAGENAME}}|EE}}
|-
| ES || {{Country flag|ES}} || {{tlp|{{PAGENAME}}|ES}}
|-
| FI || {{Country flag|FI}} || {{tlp|{{PAGENAME}}|FI}}
|-
| FR || {{Country flag|FR}} || {{tlp|{{PAGENAME}}|FR}}
|-
| IL || {{Country flag|IL}} || {{tlp|{{PAGENAME}}|IL}}
|-
| IRL || {{Country flag|IRL}} || {{tlp|{{PAGENAME}}|IRL}}
|-
| IT || {{Country flag|IT}} || {{tlp|{{PAGENAME}}|IT}}
|-
| JP || {{Country flag|JP}} || {{tlp|{{PAGENAME}}|JP}}
|-
| MY || {{Country flag|MY}} || {{tlp|{{PAGENAME}}|MY}}
|-
| NL || {{Country flag|NL}} || {{tlp|{{PAGENAME}}|NL}}
|-
| NO || {{Country flag|NO}} || {{tlp|{{PAGENAME}}|NO}}
|-
| NZ || {{Country flag|NZ}} || {{tlp|{{PAGENAME}}|NZ}}
|-
| PH || {{Country flag|PH}} || {{tlp|{{PAGENAME}}|PH}}
|-
| PL || {{Country flag|PL}} || {{tlp|{{PAGENAME}}|PL}}
|-
| SA || {{Country flag|SA}} || {{tlp|{{PAGENAME}}|SA}}
|-
| SE || {{Country flag|SE}} || {{tlp|{{PAGENAME}}|SE}}
|-
| SW || {{Country flag|SW}} || {{tlp|{{PAGENAME}}|SW}}
|-
| TR || {{Country flag|TR}} || {{tlp|{{PAGENAME}}|TR}}
|-
| UK || {{Country flag|UK}} || {{tlp|{{PAGENAME}}|UK}}
|-
| UN || {{Country flag|UN}} || {{tlp|{{PAGENAME}}|UN}}
|-
| US || {{Country flag|US}} || {{tlp|{{PAGENAME}}|US}}
|-
| USUK<ref>To be used '''only''' for showing the English Language.</ref> || {{Country flag|USUK}} || {{tlp|{{PAGENAME}}|USUK}}
|-
| ZH || {{Country flag|ZH}} || {{tlp|{{PAGENAME}}|ZH}}
|}
 
== Information ==
<div style="font-size:85%"><references/></div>
[[Category:Flag templates| ]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[de:Vorlage:Landesflagge]]
</noinclude>
</noinclude>

Latest revision as of 19:07, 26 January 2021

Notice

The better way to use this template is {{flag}}. This is the template that creates all the options and keeps track of the different flags.


Flag Table
Code Outputs Example Code
[[Image:Template:Country flag alias|22x20px|Template:Country label alias]] [1] {{Country flag}}
AU AUS AUS {{Country flag|AU}}
BE [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|BE}}
CA CAN CAN {{Country flag|CA}}
DE DE DE {{Country flag|DE}}
EE [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|EE}}
ES [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|ES}}
FI [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|FI}}
FR FR  {{Country flag|FR}}
IL [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|IL}}
IRL [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|IRL}}
IT IT IT {{Country flag|IT}}
JP JP  {{Country flag|JP}}
MY [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|MY}}
NL [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|NL}}
NO [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|NO}}
NZ [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|NZ}}
PH [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|PH}}
PL PL  {{Country flag|PL}}
SA [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|SA}}
SE [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|SE}}
SW [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|SW}}
TR [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|TR}}
UK UK UK {{Country flag|UK}}
UN [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|UN}}
US USA USA {{Country flag|US}}
USUK[2] [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|USUK}}
ZH [[Image:Template:Country flag alias|22x20px|Template:Country label alias]]  {{Country flag|ZH}}

Information

  1. If no code is entered, you get the Earth Flag.
  2. To be used only for showing the English Language.