Difference between revisions of "Template:flag/doc"
Jump to navigation
Jump to search
m |
m |
||
| Line 1: | Line 1: | ||
<small><< [[Template:flag]]</small> | <small><< [[Template:flag]]</small> | ||
| − | Template to generate teensy flags. The default is 27 x 16px. | + | 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]] | Good usage examples: [[CK_Hutchison_Holdings_Ltd#UK_Power_Networks_Holdings_Ltd]], [[BGL Group Ltd]], [[Phoenix Equity Partners Ltd]] | ||
| Line 16: | Line 16: | ||
{{flag | {{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 ] | |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 | + | |width - optional; default = 27. Do not specify "width", merely give a 2nd parameter |
| − | |height - optional | + | |height - optional; default = 16. Do not specify "height", merely give a 3rd parameter |
| − | |float - | + | |float - optional; default = none. One of [left, right] |
| + | |ml - optional; default = 5px. | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 25: | Line 26: | ||
* <tt><nowiki>{{flag|UK}}</nowiki></tt> gives: {{flag|UK}} | * <tt><nowiki>{{flag|UK}}</nowiki></tt> gives: {{flag|UK}} | ||
* <tt><nowiki>{{flag|UK|32|20}}</nowiki></tt> gives: {{flag|UK|32|20}} | * <tt><nowiki>{{flag|UK|32|20}}</nowiki></tt> gives: {{flag|UK|32|20}} | ||
| + | * <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}} | ||
Revision as of 14:30, 16 April 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]
|ml - optional; default = 5px.
}}
Examples
- {{flag|UK}} gives:

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

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

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

All current flags