Template:Flag: Difference between revisions
Template page
More actions
No edit summary |
#ifeq -> #if, add autoborder for BE and EE, add clarification |
||
| Line 1: | Line 1: | ||
{{ # | {{#if:{{{1|}}}|{{#switch:{{{1|}}}|BE|EE={{country_flag|{{{1|}}}|size={{{size|}}}|name={{{name|}}}|notext={{{notext|}}}|Y}} | ||
|{{country_flag|{{{1|}}}|size={{{size|}}}|name={{{name|}}}|notext={{{notext|}}}|border={{{border|}}}}}}} }}<noinclude> | |||
== Sample Code == | == Sample Code == | ||
<pre>{{flag | FLAGCODE | size= | name= | notext= | border= }}</pre> | <pre>{{flag | FLAGCODE | size= | name= | notext= | border= }}</pre> | ||
== Required == | == Required == | ||
* FLAGCODE: This must be included. | * FLAGCODE: This must be included. For possible values, see the table below. | ||
== Optional == | == Optional == | ||
* '''size''': Set in px the size of the flag you want. This can be anything as the flags are SVG files. | * '''size''': Set in px the size of the flag you want. This can be anything as the flags are SVG files. | ||
| Line 17: | Line 18: | ||
| AU || {{flag|AU|notext=Y}}|| {{tlp|{{PAGENAME}}|AU}} | | AU || {{flag|AU|notext=Y}}|| {{tlp|{{PAGENAME}}|AU}} | ||
|- | |- | ||
| BE || {{flag|BE|border=Y|notext=Y}} || {{tlp|{{PAGENAME}}|BE}} | | BE<ref name="autoborder">For the BE and EE flags, border=Y is assumed. If you don't want a border, use {{tlp|country flag|BE}}</ref> || {{flag|BE|border=Y|notext=Y}} || {{tlp|{{PAGENAME}}|BE}} | ||
|- | |- | ||
| CA || {{flag|CA|notext=Y}} || {{tlp|{{PAGENAME}}|CA}} | | CA || {{flag|CA|notext=Y}} || {{tlp|{{PAGENAME}}|CA}} | ||
| Line 23: | Line 24: | ||
| DE || {{flag|DE|notext=Y}} || {{tlp|{{PAGENAME}}|DE}} | | DE || {{flag|DE|notext=Y}} || {{tlp|{{PAGENAME}}|DE}} | ||
|- | |- | ||
| EE || {{flag|EE|border=Y|notext=Y}} || {{tlp|{{PAGENAME}}|EE}} | | EE<ref name="autoborder"/> || {{flag|EE|border=Y|notext=Y}} || {{tlp|{{PAGENAME}}|EE}} | ||
|- | |- | ||
| ES || {{flag|ES|notext=Y}} || {{tlp|{{PAGENAME}}|ES}} | | ES || {{flag|ES|notext=Y}} || {{tlp|{{PAGENAME}}|ES}} | ||
Revision as of 15:22, 23 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.
- name: What is the name you want to show us?
- notext: Remove all text that shows up, by default, after the flag.
- border: Set to
Yto add a white border.
Information
- ↑ 1.0 1.1 For the BE and EE flags, border=Y is assumed. If you don't want a border, use {{country flag|BE}}
- ↑ To be used only for showing the English Language.