• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.215
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Country data Bahrain

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
File:Test Template Info-Icon - Version (2).svg Template documentation
File:Ambox warning yellow.svgThis template is used on approximately 10,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
NoticeTemplate:Country data Bahrain is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.
File:Information icon4.svgThis template is within the scope of WikiProject Flag Template, a collaborative effort to maintain flag templates on Wikipedia. A more thorough discussion of the flag template system, including parameters not described here, can be found on the project page.
File:Flag of Bahrain.svg

Contents

  • 1 Standard parameters
  • 2 Flag variants
  • 3 Redirect aliases
  • 4 Example usage
    • 4.1 Using a flag variant
    • 4.2 Using a redirect alias
  • 5 Military ensigns
  • 6 TemplateData

Standard parameters

Parameter nameValueMeaning
alias Bahrain Main article name (Bahrain)
flag alias Flag of Bahrain.svg Image name (File:Flag of Bahrain.svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
1972File:Flag of Bahrain (1972-2002).svgFlag of Bahrain (1972-2002).svg
1932File:Flag of Bahrain (1932 to 1972).svgFlag of Bahrain (1932 to 1972).svg
1820File:Flag of Bahrain (1820-1932).svgFlag of Bahrain (1820-1932).svg
oldFile:Flag of Bahrain (before 1820).svgFlag of Bahrain (before 1820).svg
air forceFile:Flag of the Royal Bahraini Air Force.svgFlag of the Royal Bahraini Air Force.svg
armyFile:Flag of the Royal Bahraini Army.svgFlag of the Royal Bahraini Army.svg

Redirect aliases

This template can also be used via an alias name (implemented as a redirect to this template):
Alias name{{flag|alias}} output{{flagcountry|alias}} output
BHR (view)File:Flag of Bahrain.svg BHRFile:Flag of Bahrain.svg Bahrain

See What links here for a full list of redirects.

Example usage

  • {{flag|Bahrain}} → File:Flag of Bahrain.svg Bahrain
  • {{flagicon|Bahrain}} → File:Flag of Bahrain.svg

Using a flag variant

  • {{flag|Bahrain|1972}} → File:Flag of Bahrain (1972-2002).svg Bahrain
  • {{flagicon|Bahrain|1972}} → File:Flag of Bahrain (1972-2002).svg

Using a redirect alias

  • {{flagicon|BHR}} → File:Flag of Bahrain.svg
  • {{flagcountry|BHR}} → File:Flag of Bahrain.svg Bahrain
  • {{flag|BHR}} → File:Flag of Bahrain.svg BHR

Military ensigns

This nation's naval flag is the same as its national flag, so Template:Naval produces the following:

  • {{naval|Bahrain}} → File:Flag of Bahrain.svg Royal Bahrain Naval Force

This template includes an air force ensign flag variant that can be used with Template:Air force:

  • {{air force|Bahrain}} → File:Flag of the Royal Bahraini Air Force.svg Royal Bahraini Air Force
  • {{flagicon|Bahrain|air force}} → File:Flag of the Royal Bahraini Air Force.svg

This nation's navy flag is the same as its national flag, so Template:Navy produces the following:

  • {{navy|Bahrain}} → File:Flag of Bahrain.svg Royal Bahrain Naval Force

This template includes an army ensign flag variant that can be used with Template:Army:

  • {{army|Bahrain}} → File:Flag of the Royal Bahraini Army.svg Royal Bahraini Army
  • {{flagicon|Bahrain|army}} → File:Flag of the Royal Bahraini Army.svg

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Country data Bahrain

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified
This is the documentation for Template:Country data Bahrain. It is automatically generated by Template:Country showdata.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please purge the cache after making any changes to this template.
This template has a /doc subpage for the purposes of categories and documentation specific to this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Country_data_Bahrain&oldid=10192"
Categories:
  • Pages with broken file links
  • Country data templates of countries
  • Country data templates of Bahrain
  • Templates using TemplateData
  • Country data templates with documentation subpage
  • All country data templates
Last edited on 24 January 2022, at 01:38

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 24 January 2022, at 01:38.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop