Difference between revisions of "Template:flag/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎Examples)
m (→‎Usage)
Line 15: Line 15:
 
<pre>
 
<pre>
 
{{flag
 
{{flag
−
|country-abbrv - one of [Abu-Dhabi, Australia, Bahamas, Belgium, Bermuda, Brazil, British-Virgin-Islands, Canada, Cayman-Islands, China, Czech-Republic, Delaware, France, Germany, Guernsey, Hong Kong, India, Jersey, Liechenstein, Luxembourg, Malaysia, Netherlands, Norway, Qatar, Russia, Scotland, Singapore, South-Africa, South-Korea, Spain, Switzerland, Tax-Haven, Tax-Haven-v2, Turkey, UK, USA ]
+
|country-abbrv - one of [Abu-Dhabi, Australia, Bahamas, Belgium, Bermuda, Brazil, British-Virgin-Islands, Canada, Cayman-Islands, China, Czech-Republic, Delaware, Egypt, France, Germany, Guernsey, Hong Kong, India, Isle-of-Man, Italy, Jersey, Liechenstein, Luxembourg, Malaysia, Netherlands, Norway, 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
 
|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
 
|height        - optional, default = 16. Do not specify "height", merely give a 3rd parameter

Revision as of 19:06, 15 February 2019

<< Template:flag

Template to generate teensy flags. The default is 27 x 16px.

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, Australia, Bahamas, Belgium, Bermuda, Brazil, British-Virgin-Islands, Canada, Cayman-Islands, China, Czech-Republic, Delaware, Egypt, France, Germany, Guernsey, Hong Kong, India, Isle-of-Man, Italy, Jersey, Liechenstein, Luxembourg, Malaysia, Netherlands, Norway, 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         - one of [left, right]. Default = none.
}}

Examples

  • {{flag|UK}} gives: Flag-UK.svg
  • {{flag|UK|32|20}} gives: 20
  • {{flag|UK|42|25|float=right}} gives: 20

All current flags

Flag-Abu-Dhabi.svg Flag-Australia.svg Flag-Bahamas.svg Flag-Belgium.svg Flag-Bermuda.svg Flag-Brazil.svg Flag-British-Virgin-Islands.svg Flag-Canada.svg Flag-Cayman-Islands.svg Flag-China.svg Flag-Czech-Republic.svg Flag-Delaware.svg Flag-France.svg Flag-Germany.svg Flag-Hong-Kong.svg Flag-India.svg Flag-Guernsey.svg Flag-Jersey.svg Flag-Liechtenstein.svg Flag-Luxembourg.svg Flag-Malaysia.svg Flag-Netherlands.svg Flag-Norway.svg Flag-Qatar.svg Flag-Russia.svg Flag-Scotland.svg Flag-Singapore.svg Flag-South-Africa.svg Flag-South-Korea.svg Flag-Spain.svg Flag-Switzerland.svg Flag-Tax-Haven.svg Flag-Tax-Haven-v2.svg Flag-Turkey.svg Flag-UK.svg Flag-USA.svg