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)
removed this for now...
Shane (talk | contribs)
No edit summary
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}}}}]]}}</includeonly><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: --> {{void}}
| <!-- ELSE: --> &nbsp;
  {{#ifexist:Template:country alias {{{1}}}
  | <!-- THEN: --> [[Wikipedia:{{country alias {{{1}}}}}}
                    {{#if:{{{name|}}}
                    | <!-- THEN: --> {{!}} {{{name}}}
                    | <!-- ELSE: --> {{!}} {{country label alias {{{1}}}
                    }}]]
  | <!-- ELSE: --> {{void}}
  }}
}}</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.

Revision as of 16:31, 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{{#ifeq: Y  
 {{#ifexist:Template:country alias {{{1}}}
[[Wikipedia:{{country alias {{{1}}}}}} {{country label alias {{{1}}}
                    }}]]

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

AU AUS{{#ifeq: Y  
 {{#ifexist:Template:country alias AU
[[Wikipedia:Wikipedia:Australia} AUS]]

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

BE BEL{{#ifeq: Y  
 {{#ifexist:Template:country alias BE
[[Wikipedia:Wikipedia:Belgium} BEL]]

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

CA CAN{{#ifeq: Y  
 {{#ifexist:Template:country alias CA
[[Wikipedia:Wikipedia:Canada} CAN]]

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

DE DE{{#ifeq: Y  
 {{#ifexist:Template:country alias DE
[[Wikipedia:Wikipedia:Germany} DE]]

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

EE EST{{#ifeq: Y  
 {{#ifexist:Template:country alias EE
[[Wikipedia:Wikipedia:Estonia} EST]]

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

ES ES{{#ifeq: Y  
 {{#ifexist:Template:country alias ES
[[Wikipedia:Wikipedia:Spain} ES]]

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

FI FIN{{#ifeq: Y  
 {{#ifexist:Template:country alias FI
[[Wikipedia:Wikipedia:Finland} FIN]]

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

FR FR{{#ifeq: Y  
 {{#ifexist:Template:country alias FR
[[Wikipedia:Wikipedia:France} FR]]

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

IT IT{{#ifeq: Y  
 {{#ifexist:Template:country alias IT
[[Wikipedia:Wikipedia:Italy} IT]]

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

MY MY{{#ifeq: Y  
 {{#ifexist:Template:country alias MY
[[Wikipedia:Wikipedia:Malaysia} MY]]

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

NL NL{{#ifeq: Y  
 {{#ifexist:Template:country alias NL
[[Wikipedia:Wikipedia:Netherlands} NL]]

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

NO NOR{{#ifeq: Y  
 {{#ifexist:Template:country alias NO
[[Wikipedia:Wikipedia:Norway} NOR]]

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

NZ NZ{{#ifeq: Y  
 {{#ifexist:Template:country alias NZ
[[Wikipedia:Wikipedia:New Zealand} NZ]]

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

PH PH{{#ifeq: Y  
 {{#ifexist:Template:country alias PH
[[Wikipedia:Wikipedia:Philippines} PH]]

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

PL PL{{#ifeq: Y  
 {{#ifexist:Template:country alias PL
[[Wikipedia:Wikipedia:Poland} PL]]

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

SE SWE{{#ifeq: Y  
 {{#ifexist:Template:country alias SE
[[Wikipedia:Wikipedia:Sweden} SWE]]

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

TR TR{{#ifeq: Y  
 {{#ifexist:Template:country alias TR
[[Wikipedia:Wikipedia:Turkey} TR]]

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

UK UK{{#ifeq: Y  
 {{#ifexist:Template:country alias UK
[[Wikipedia:Wikipedia:United Kingdom} UK]]

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

US USA{{#ifeq: Y  
 {{#ifexist:Template:country alias US
[[Wikipedia:Wikipedia:United States} USA]]

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

USUK[2] US/UK{{#ifeq: Y  
 {{#ifexist:Template:country alias USUK
[[Wikipedia:Wikipedia:English language} US/UK]]

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

ZH ZH{{#ifeq: Y  
 {{#ifexist:Template:country alias ZH
[[Wikipedia:Wikipedia:People's Republic of China} 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.