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