Difference between revisions of "Template:flag/doc"
Jump to navigation
Jump to search
m |
m (→Examples) |
||
| Line 27: | Line 27: | ||
* <tt><nowiki>{{flag|UK|32|20|ml=0}}</nowiki></tt> gives: {{flag|UK|32|20|ml=0}} | * <tt><nowiki>{{flag|UK|32|20|ml=0}}</nowiki></tt> gives: {{flag|UK|32|20|ml=0}} | ||
* <tt><nowiki>{{flag|UK|42|25|float=right}}</nowiki></tt> gives: {{flag|UK|32|20|float=right}} | * <tt><nowiki>{{flag|UK|42|25|float=right}}</nowiki></tt> gives: {{flag|UK|32|20|float=right}} | ||
| + | * <tt><nowiki>{{flag|UK|50|30|float=right}}</nowiki></tt> gives: {{flag|UK|32|20|float=right}} | ||
=== All current flags === | === All current flags === | ||
Revision as of 19:34, 24 May 2019
Template to generate teensy flags. The default is 27 x 16px, with a left- and right-margin of 5px.
Good usage examples: CK_Hutchison_Holdings_Ltd#UK_Power_Networks_Holdings_Ltd, BGL Group Ltd, Phoenix Equity Partners Ltd
ToDo: Install the SimpleTooltip extension, so flags can have country names on hover.
All images are in /Images/Flags/Flag-*.svg New flags: use /Images/Flags/Flag-Template.svg.
Usage
{{flag
|country-abbrv - one of [Abu-Dhabi, Argentina, Australia, Austria, Bahamas, Belgium, Bermuda, Brazil, British-Virgin-Islands, Canada, Cayman-Islands, China, Congo, Czech-Republic, Delaware, Egypt, France, Germany, Gibraltar, Guernsey, Hong Kong, India, Isle-of-Man, Italy, Jersey, Liechenstein, Luxembourg, Malaysia, Netherlands, Norway, Peru, Qatar, Russia, Scotland, Singapore, South-Africa, South-Korea, Spain, Switzerland, Tax-Haven, Tax-Haven-v2, Turkey, UK, USA ]
|width - optional; default = 27. Do not specify "width", merely give a 2nd parameter
|height - optional; default = 16. Do not specify "height", merely give a 3rd parameter
|float - optional; default = none. One of [left, right]
}}
Examples
- {{flag|UK}} gives:

- {{flag|UK|32|20}} gives:

- {{flag|UK|32|20|ml=0}} gives:

- {{flag|UK|42|25|float=right}} gives:

- {{flag|UK|50|30|float=right}} gives:

All current flags