Template:Flag: Difference between revisions
Template page
More actions
m fixing autoborder code |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}}|{{#switch:{{{1|}}}|BE|EE={{country_flag|{{{1|}}}|size={{{size|}}}|name={{{name|}}}|notext={{{notext|}}}|border=Y}} | {{#if:{{{1|}}}|{{#switch:{{{1|}}}|BE|DE|EE={{country_flag|{{{1|}}}|size={{{size|}}}|name={{{name|}}}|notext={{{notext|}}}|border=Y}} | ||
|{{country_flag|{{{1|}}}|size={{{size|}}}|name={{{name|}}}|notext={{{notext|}}}|border={{{border|}}}}}}} }}<noinclude> | |{{country_flag|{{{1|}}}|size={{{size|}}}|name={{{name|}}}|notext={{{notext|}}}|border={{{border|}}}}}}} }}<noinclude> | ||
== Sample Code == | == Sample Code == | ||
| Line 22: | Line 22: | ||
| CA || {{flag|CA|notext=Y}} || {{tlp|{{PAGENAME}}|CA}} | | CA || {{flag|CA|notext=Y}} || {{tlp|{{PAGENAME}}|CA}} | ||
|- | |- | ||
| DE || {{flag|DE|notext=Y}} || {{tlp|{{PAGENAME}}|DE}} | | DE<ref name="autoborder"/> || {{flag|DE|notext=Y}} || {{tlp|{{PAGENAME}}|DE}} | ||
|- | |- | ||
| EE<ref name="autoborder"/> || {{flag|EE|notext=Y}} || {{tlp|{{PAGENAME}}|EE}} | | EE<ref name="autoborder"/> || {{flag|EE|notext=Y}} || {{tlp|{{PAGENAME}}|EE}} | ||
Revision as of 15:26, 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 1.2 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.