Difference between revisions of "Template:Flag"

From comp.tf
Jump to navigation Jump to search
(Adding documentation)
Line 214: Line 214:
 
   |bd                = [[Image:Bd.gif| Bangladesh|link=:Category:Bangladesh]]
 
   |bd                = [[Image:Bd.gif| Bangladesh|link=:Category:Bangladesh]]
 
   |bangladesh        = [[Image:Bd.gif| Bangladesh|link=:Category:Bangladesh]]
 
   |bangladesh        = [[Image:Bd.gif| Bangladesh|link=:Category:Bangladesh]]
   |#default          = [[Image:Space_filler_flag.png]] [[Category:Unrecognised Flag]]
+
   |#default          = [[Image:Space_filler_flag.png]] [[Category:Unrecognised Class]]
 
   }}
 
   }}
 
|m={{#switch:{{lc:{{{1|}}} }}
 
|m={{#switch:{{lc:{{{1|}}} }}
Line 318: Line 318:
 
== Example flag codes ==
 
== Example flag codes ==
  
{{flag|au}} Australia (au)<br/>
+
*{{flag|au}} Australia (au)<br/>
{{flag|ca}} Canada (ca)<br/>
+
*{{flag|ca}} Canada (ca)<br/>
{{flag|en}} England (en)<br/>
+
*{{flag|en}} England (en)<br/>
{{flag|eu}} European Union (eu)<br/>
+
*{{flag|eu}} European Union (eu)<br/>
{{flag|fr}} France (fr)<br/>
+
*{{flag|fr}} France (fr)<br/>
{{flag|de}} Germany (de)<br/>
+
*{{flag|de}} Germany (de)<br/>
{{flag|ie}} Ireland (ie)<br/>
+
*{{flag|ie}} Ireland (ie)<br/>
{{flag|es}} Spain (es)<br/>
+
*{{flag|es}} Spain (es)<br/>
{{flag|se}} Sweden (se)<br/>
+
*{{flag|se}} Sweden (se)<br/>
{{flag|uk}} United Kingdom (uk)<br/>
+
*{{flag|uk}} United Kingdom (uk)<br/>
{{flag|us}} United States (us)<br/>
+
*{{flag|us}} United States (us)<br/>
{{flag|wa}} Wales (wa)<br/>
+
*{{flag|wa}} Wales (wa)<br/>
  
 
You can also use the full names, e.g.:
 
You can also use the full names, e.g.:

Revision as of 19:19, 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