Template:Country flag: Difference between revisions

Template page
mNo edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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>
<includeonly><span class="flag">{{#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: -->}}}}</span></includeonly><noinclude>
== Notice ==
== Notice ==
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.
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.
Line 25: Line 25:
|-
|-
| FR || {{Country flag|FR}} || {{tlp|{{PAGENAME}}|FR}}
| 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}}
| IT || {{Country flag|IT}} || {{tlp|{{PAGENAME}}|IT}}
|-
| JP || {{Country flag|JP}} || {{tlp|{{PAGENAME}}|JP}}
|-
|-
| MY || {{Country flag|MY}} || {{tlp|{{PAGENAME}}|MY}}
| MY || {{Country flag|MY}} || {{tlp|{{PAGENAME}}|MY}}
Line 39: Line 45:
|-
|-
| PL || {{Country flag|PL}} || {{tlp|{{PAGENAME}}|PL}}
| PL || {{Country flag|PL}} || {{tlp|{{PAGENAME}}|PL}}
|-
| SA || {{Country flag|SA}} || {{tlp|{{PAGENAME}}|SA}}
|-
|-
| SE || {{Country flag|SE}} || {{tlp|{{PAGENAME}}|SE}}
| SE || {{Country flag|SE}} || {{tlp|{{PAGENAME}}|SE}}
|-
| SW || {{Country flag|SW}} || {{tlp|{{PAGENAME}}|SW}}
|-
|-
| TR || {{Country flag|TR}} || {{tlp|{{PAGENAME}}|TR}}
| TR || {{Country flag|TR}} || {{tlp|{{PAGENAME}}|TR}}
|-
|-
| UK || {{Country flag|UK}} || {{tlp|{{PAGENAME}}|UK}}
| UK || {{Country flag|UK}} || {{tlp|{{PAGENAME}}|UK}}
|-
| UN || {{Country flag|UN}} || {{tlp|{{PAGENAME}}|UN}}
|-
|-
| US || {{Country flag|US}} || {{tlp|{{PAGENAME}}|US}}
| US || {{Country flag|US}} || {{tlp|{{PAGENAME}}|US}}

Latest revision as of 18:56, 28 January 2023

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
Earth [1] {{Country flag}}
AU AUS AUS {{Country flag|AU}}
BE BEL BEL {{Country flag|BE}}
CA CAN CAN {{Country flag|CA}}
DE DE DE {{Country flag|DE}}
EE EST EST {{Country flag|EE}}
ES ES ES {{Country flag|ES}}
FI FIN FIN {{Country flag|FI}}
FR FR FR {{Country flag|FR}}
IL IL IL {{Country flag|IL}}
IRL IRL IRL {{Country flag|IRL}}
IT IT IT {{Country flag|IT}}
JP JP JP {{Country flag|JP}}
MY MY MY {{Country flag|MY}}
NL NL NL {{Country flag|NL}}
NO NOR NOR {{Country flag|NO}}
NZ NZ NZ {{Country flag|NZ}}
PH PH PH {{Country flag|PH}}
PL PL PL {{Country flag|PL}}
SA SA SA {{Country flag|SA}}
SE SWE SWE {{Country flag|SE}}
SW SW SW {{Country flag|SW}}
TR TR TR {{Country flag|TR}}
UK UK UK {{Country flag|UK}}
UN UN UN {{Country flag|UN}}
US USA USA {{Country flag|US}}
USUK[2] US/UK US/UK {{Country flag|USUK}}
ZH ZH ZH {{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.