Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Country flag: Difference between revisions

Template page
Shane (talk | contribs)
No edit summary
Shane (talk | contribs)
mNo edit summary
Line 3: Line 3:
| <!-- ELSE: --> &nbsp;  
| <!-- ELSE: --> &nbsp;  
   {{#ifexist:Template:country alias {{{1}}}
   {{#ifexist:Template:country alias {{{1}}}
   | <!-- THEN: --> [[{{country alias {{{1}}}}}|{{country label alias {{{1}}}}}]]
   | <!-- THEN: --> [[{{country alias {{{1}}}}}|{{country label alias {{{1}}}]]
   | <!-- ELSE: --> {{void}}
   | <!-- ELSE: --> {{void}}
   }}
   }}

Revision as of 16:35, 23 May 2007

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|[[Image:Earth flag PD.jpg|22x20px|{{#ifeq:|Y  
 {{#ifexist:Template:country alias {{{1}}}
[[{{country alias {{{1}}}}}|{{country label alias {{{1}}}]]
 }}

}}[1] || {{Country flag}}

AU AUS|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias AU
{{country label alias AU
 }}

}}|| {{Country flag|AU}}

BE BEL|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias BE
{{country label alias BE
 }}

}} || {{Country flag|BE}}

CA CAN|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias CA
{{country label alias CA
 }}

}} || {{Country flag|CA}}

DE DE|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias DE
{{country label alias DE
 }}

}} || {{Country flag|DE}}

EE EST|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias EE
{{country label alias EE
 }}

}} || {{Country flag|EE}}

ES ES|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias ES
{{country label alias ES
 }}

}} || {{Country flag|ES}}

FI FIN|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias FI
{{country label alias FI
 }}

}} || {{Country flag|FI}}

FR FR|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias FR
{{country label alias FR
 }}

}} || {{Country flag|FR}}

IT IT|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias IT
{{country label alias IT
 }}

}} || {{Country flag|IT}}

MY MY|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias MY
{{country label alias MY
 }}

}} || {{Country flag|MY}}

NL NL|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias NL
{{country label alias NL
 }}

}} || {{Country flag|NL}}

NO NOR|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias NO
{{country label alias NO
 }}

}} || {{Country flag|NO}}

NZ NZ|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias NZ
{{country label alias NZ
 }}

}} || {{Country flag|NZ}}

PH PH|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias PH
{{country label alias PH
 }}

}} || {{Country flag|PH}}

PL PL|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias PL
{{country label alias PL
 }}

}} || {{Country flag|PL}}

SE SWE|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias SE
{{country label alias SE
 }}

}} || {{Country flag|SE}}

TR TR|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias TR
{{country label alias TR
 }}

}} || {{Country flag|TR}}

UK UK|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias UK
{{country label alias UK
 }}

}} || {{Country flag|UK}}

US USA|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias US
{{country label alias US
 }}

}} || {{Country flag|US}}

USUK[2] US/UK|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias USUK
{{country label alias USUK
 }}

}} || {{Country flag|USUK}}

ZH ZH|Earth}}{{#ifeq:|Y  
 {{#ifexist:Template:country alias ZH
{{country label alias 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.