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

Template:Flag: Difference between revisions

Template page
Shane (talk | contribs)
mNo edit summary
Shane (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#if:{{{overrideborder|}}}|{{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border={{{border|}}}}}|{{#switch:{{{1|}}}|BE|DE|EE={{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border=Y}}}}
<includeonly>
|{{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border={{{border|}}}}}}}}}</includeonly><noinclude>
{{#if:{{{1|}}}
| <!-- THEN -->
{{#if:{{{overrideborder|}}}
|<!-- THEN --> {{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border={{{border|}}}}}
|<!-- ELSE --> {{#switch:{{{1|}}}
|BE
|DE
|EE={{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border=Y}}
}}
| <!-- ELSE: --> {{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border={{{border|}}}}}
}}</includeonly><noinclude>
== Sample Code ==
== Sample Code ==
<pre>{{flag | FLAGCODE | size= | name= | notext= | border=  }}</pre>
<pre>{{flag | FLAGCODE | size= | name= | notext= | border=  }}</pre>

Revision as of 14:28, 25 May 2007

Sample Code

{{flag | FLAGCODE | size= | name= | notext= | border=  }}

Required

  • FLAGCODE: This must be included. For possible values, see the table below.

Optional

  • size: Set in px the size of the flag you want. This can be anything as the flags are SVG files.
  • notext: Remove all text that shows up, by default, after the flag.
  • border: Set to Y to add a white border.
  • overrideborder: Set to Y to override the default border.
Flag Table
Code Outputs Example Code
AU

{{#if:AU

{{Flag|AU}}
BE[1]

{{#if:BE

BEL || {{Flag|BE}}

CA

{{#if:CA

{{Flag|CA}}
DE[1]

{{#if:DE

DE || {{Flag|DE}}

EE[1]

{{#if:EE

EST || {{Flag|EE}}

ES

{{#if:ES

{{Flag|ES}}
FI

{{#if:FI

{{Flag|FI}}
FR

{{#if:FR

{{Flag|FR}}
IT

{{#if:IT

{{Flag|IT}}
JP

{{#if:JP

{{Flag|JP}}
MY

{{#if:MY

{{Flag|MY}}
NL

{{#if:NL

{{Flag|NL}}
NO

{{#if:NO

{{Flag|NO}}
NZ

{{#if:NZ

{{Flag|NZ}}
PH

{{#if:PH

{{Flag|PH}}
PL

{{#if:PL

{{Flag|PL}}
SE

{{#if:SE

{{Flag|SE}}
TR

{{#if:TR

{{Flag|TR}}
UK

{{#if:UK

{{Flag|UK}}
US

{{#if:US

{{Flag|US}}
USUK[2]

{{#if:USUK

{{Flag|USUK}}
ZH

{{#if:ZH

{{Flag|ZH}}

Information

  1. 1.0 1.1 1.2 For the BE, DE, and EE flags, border=Y is assumed. If you don't want a border, use {{country flag|BE}}
  2. To be used only for showing the English Language.