Template:Country data Iran/sandbox
| File:Edit In Sandbox Icon - Color.svg | This is the template sandbox page for Template:Country data Iran (diff). |
| This template is used on approximately 162,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Template:Country data Iran/sandbox is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flag icon, and others. |
| File:Information icon4.svg | This 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. |

Standard parameters
| Parameter name | Value | Meaning |
|---|---|---|
alias |
Iran |
Main article name (Iran) |
flag alias |
Flag of Iran.svg |
Image name (File:Flag of Iran.svg, shown on right) |
Flag variants
| Label | Flag image (40px) | Image name |
|---|---|---|
1502 | Flag of Persia (1502-1524).svg | |
1576 | File:Safavid Flag.svg | Safavid Flag.svg |
1665 | File:Flag of Persia (1665).svg | Flag of Persia (1665).svg |
1736 | File:Nadir Shah Flag.svg | Nadir Shah Flag.svg |
1760 | File:Zand Dynasty flag.svg | Zand Dynasty flag.svg |
1796 | File:Qajar Naval Ensign.svg | Qajar Naval Ensign.svg |
1849 | File:Amir Kabir Flag.svg | Amir Kabir Flag.svg |
1907 | File:Flag of Persia (1907).svg | Flag of Persia (1907).svg |
1910 | File:Flag of Persia (1910-1925).svg | Flag of Persia (1910-1925).svg |
1925 | File:State Flag of Iran (1925).svg | State Flag of Iran (1925).svg |
1964 | File:State Flag of Iran (1964).svg | State Flag of Iran (1964).svg |
military | File:Flag of the Islamic Republic of Iran Army.svg | Flag of the Islamic Republic of Iran Army.svg |
coast guard | File:Flag of the Army of the Guardians of the Islamic Revolution.svg | Flag of the Army of the Guardians of the Islamic Revolution.svg |
navy | File:Flag of the Islamic Republic of Iran Navy.svg | Flag of the Islamic Republic of Iran Navy.svg |
air force | File:Flag of the Islamic Republic of Iran Air Force.svg | Flag of the Islamic Republic of Iran Air Force.svg |
army | File:Flag of the Islamic Republic of Iran Army Ground Forces.svg | Flag of the Islamic Republic of Iran Army Ground Forces.svg |
Redirect aliases
| Alias name | {{flag|alias}} output | {{flag country|alias}} output |
|---|---|---|
IRN (view) | Error creating thumbnail: IRN | Error creating thumbnail: Iran |
IRI (view) | Error creating thumbnail: IRI | Error creating thumbnail: Iran |
See What links here for a full list of redirects.
Example usage
{{flag|Iran/sandbox}}→ Error creating thumbnail: Iran/sandbox{{flag icon|Iran/sandbox}}→ Error creating thumbnail:
Using a flag variant
{{flag|Iran/sandbox|1502}}→ Error creating thumbnail: Iran/sandbox{{flag icon|Iran/sandbox|1502}}→ Error creating thumbnail:
Using a redirect alias
{{flag icon|IRN}}→ Error creating thumbnail:{{flag country|IRN}}→ Error creating thumbnail: Iran{{flag|IRN}}→ Error creating thumbnail: IRN
Military ensigns
This nation's naval flag is the same as its national flag, so Template:Naval produces the following:
{{naval|Iran/sandbox}}→ Error creating thumbnail: Islamic Republic of Iran Navy
This template includes an air force ensign flag variant that can be used with Template:Air force:
{{air force|Iran/sandbox}}→ File:Flag of the Islamic Republic of Iran Air Force.svg Islamic Republic of Iran Air Force{{flag icon|Iran/sandbox|air force}}→ Iran
This template includes a marine ensign flag variant that can be used with Template:Armed forces:
{{Armed forces|Iran/sandbox}}→ File:Flag of the Islamic Republic of Iran Army.svg Islamic Republic of Iran Army{{flag icon|Iran/sandbox|military}}→ Iran
This template includes an ensign flag variant that can be used with Template:Navy:
{{navy|Iran/sandbox}}→ File:Flag of the Islamic Republic of Iran Navy.svg Islamic Republic of Iran Navy{{flag icon|Iran/sandbox|navy}}→ Iran
This template includes a coast guard ensign flag variant that can be used with Template:Coast guard:
{{coast guard|Iran/sandbox}}→ File:Flag of the Army of the Guardians of the Islamic Revolution.svg Navy of the Islamic Revolutionary Guard Corps{{flag icon|Iran/sandbox|coast guard}}→ Iran
This template includes an army ensign flag variant that can be used with Template:Army:
{{army|Iran/sandbox}}→ File:Flag of the Islamic Republic of Iran Army Ground Forces.svg Islamic Republic of Iran Army Ground Forces{{flag icon|Iran/sandbox|army}}→ Iran
Related templates
Please see the following related country_data templates:
- Template:Country data PersiaFile:Flag of Iran (1964).svg Persia
- Template:Country data Pahlavi dynastyFile:State flag of Iran (1964–1980).svg Pahlavi dynasty
- Template:Country data Qajar dynastyFile:Flag of Persia (1910-1925).svg Qajar dynasty
TemplateData
TemplateData for Country data Iran
This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flag icon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||