Difference between revisions of "Template:Flag"

From comp.tf
Jump to navigation Jump to search
m (Deleting linebreak at beginning of page)
(Adding documentation)
Line 308: Line 308:
 
   }}
 
   }}
 
| [[Category:Unrecognised Flag]]
 
| [[Category:Unrecognised Flag]]
}}}}<noinclude>[[Category:Templates]]</noinclude>
+
}}}}<noinclude>
 +
Template for flags.
 +
 
 +
== Usage ==
 +
<pre>{{flag|uk}}</pre>
 +
yields
 +
{{flag|uk}}
 +
 
 +
== Example flag codes ==
 +
 
 +
{{flag|au}} Australia (au)<br/>
 +
{{flag|ca}} Canada (ca)<br/>
 +
{{flag|en}} England (en)<br/>
 +
{{flag|eu}} European Union (eu)<br/>
 +
{{flag|fr}} France (fr)<br/>
 +
{{flag|de}} Germany (de)<br/>
 +
{{flag|ie}} Ireland (ie)<br/>
 +
{{flag|es}} Spain (es)<br/>
 +
{{flag|se}} Sweden (se)<br/>
 +
{{flag|uk}} United Kingdom (uk)<br/>
 +
{{flag|us}} United States (us)<br/>
 +
{{flag|wa}} Wales (wa)<br/>
 +
 
 +
You can also use the full names, e.g.:
 +
 
 +
<code><nowiki>{{flag|united kingdom}}</nowiki></code> = {{flag|united kingdom}}<br/>
 +
<code><nowiki>{{flag|australia}}</nowiki></code> = {{flag|australia}}
 +
 
 +
[[Category:Templates]]</noinclude>

Revision as of 11:42, 25 August 2013

Template for flags.

Usage

{{flag|uk}}

yields United Kingdom

Example flag codes

Australia Australia (au)
Canada Canada (ca)
England England (en)
Europe European Union (eu)
France France (fr)
Germany Germany (de)
Ireland Ireland (ie)
Spain Spain (es)
Sweden Sweden (se)
United Kingdom United Kingdom (uk)
USA United States (us)
Wales Wales (wa)

You can also use the full names, e.g.:

{{flag|united kingdom}} = United Kingdom
{{flag|australia}} = Australia