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

Editing Template:Flag

Template page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#switch:{{{1|}}}|BE|DE|EE={{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border=Y}}
{{ #ifeq: {{{1| }}} | | {{void}} | {{country_flag|{{{1|}}}|size={{{size|}}}|name={{{name|}}}|notext={{{notext|}}}}} }}<noinclude>
|{{country_flag|{{{1|}}}|size={{{size|}}}|notext={{{notext|}}}|border={{{border|}}}}}}}}}</includeonly><noinclude>
<pre>
== Sample Code ==
{{flag
<pre>{{flag | FLAGCODE | size= | notext= | border=  }}</pre>
| FLAGCODE
== Required ==
| size=
* FLAGCODE: This must be included. For possible values, see the table below.
| name=
== Optional ==
| notext=
* '''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.
</pre>
* '''border''': Set to <code>Y</code> to add a border.
 
== Table ==
{| class="messagebox" style="text-align: center"
|+ Flag Table
! Code !! Outputs !! Example Code
|-
| AU || {{flag|AU|notext=Y}}|| {{tlp|{{PAGENAME}}|AU}}
|-
| BE<ref name="autoborder">For the BE, DE, and EE flags, border=Y is assumed. If you don't want a border, use {{tlp|country flag|''Code''}}</ref> || {{flag|BE|notext=Y}} || {{tlp|{{PAGENAME}}|BE}}
|-
| CA || {{flag|CA|notext=Y}} || {{tlp|{{PAGENAME}}|CA}}
|-
| DE<ref name="autoborder"/> || {{flag|DE|notext=Y}} || {{tlp|{{PAGENAME}}|DE}}
|-
| EE<ref name="autoborder"/> || {{flag|EE|notext=Y}} || {{tlp|{{PAGENAME}}|EE}}
|-
| ES || {{flag|ES|notext=Y}} || {{tlp|{{PAGENAME}}|ES}}
|-
| FI || {{flag|FI|notext=Y}} || {{tlp|{{PAGENAME}}|FI}}
|-
| FR || {{flag|FR|notext=Y}} || {{tlp|{{PAGENAME}}|FR}}
|-
| HT || {{flag|HT|notext=Y}} || {{tlp|{{PAGENAME}}|HT}}
|-
| IL || {{flag|IL|notext=Y}} || {{tlp|{{PAGENAME}}|IL}}
|-
| IRL || {{flag|IRL|notext=Y}} || {{tlp|{{PAGENAME}}|IRL}}
|-
| IT || {{flag|IT|notext=Y}} || {{tlp|{{PAGENAME}}|IT}}
|-
| JP || {{flag|JP|notext=Y}} || {{tlp|{{PAGENAME}}|JP}}
|-
| MY || {{flag|MY|notext=Y}} || {{tlp|{{PAGENAME}}|MY}}
|-
| NL || {{flag|NL|notext=Y}} || {{tlp|{{PAGENAME}}|NL}}
|-
| NO || {{flag|NO|notext=Y}} || {{tlp|{{PAGENAME}}|NO}}
|-
| NZ || {{flag|NZ|notext=Y}} || {{tlp|{{PAGENAME}}|NZ}}
|-
| PH || {{flag|PH|notext=Y}} || {{tlp|{{PAGENAME}}|PH}}
|-
| PL || {{flag|PL|notext=Y}} || {{tlp|{{PAGENAME}}|PL}}
|-
| SA || {{flag|SA|notext=Y}} || {{tlp|{{PAGENAME}}|SA}}
|-
| SE || {{flag|SE|notext=Y}} || {{tlp|{{PAGENAME}}|SE}}
|-
| SW || {{flag|SW|notext=Y}} || {{tlp|{{PAGENAME}}|SW}}
|-
| TR || {{flag|TR|notext=Y}} || {{tlp|{{PAGENAME}}|TR}}
|-
| UK || {{flag|UK|notext=Y}} || {{tlp|{{PAGENAME}}|UK}}
|-
| UN<ref>This is the flag of the [[w:United Nations|United Nations]].</ref> || {{flag|UN|notext=Y}} || {{tlp|{{PAGENAME}}|UN}}
|-
| US || {{flag|US|notext=Y}} || {{tlp|{{PAGENAME}}|US}}
|-
| USUK<ref>To be used '''only''' for showing the English Language.</ref> || {{flag|USUK|notext=Y}} || {{tlp|{{PAGENAME}}|USUK}}
|-
| ZH || {{flag|ZH|notext=Y}} || {{tlp|{{PAGENAME}}|ZH}}
|}
 
== Information ==
<div style="font-size:85%"><references/></div>
[[Category:Flag templates| ]]
[[Category:Flag templates| ]]
[[Category:Special effects templates|{{PAGENAME}}]]
[[Category:Special effects templates|{{PAGENAME}}]]
[[fr:Modèle:Drapeau]]
[[de:Vorlage:Flag]]
</noinclude>
</noinclude>

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).

Templates used on this page: