Template:Country data Spain
| This template is used on approximately 131,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 Spain is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others. |
| 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 |
Spain |
Main article name (Spain) |
flag alias |
Flag of Spain.svg |
Image name (File:Flag of Spain.svg, shown on right) |
Flag variants
Redirect aliases
| Alias name | {{flag|alias}} output | {{flagcountry|alias}} output |
|---|---|---|
ESP (view) | Template:Country data ESP | Template:Country data ESP |
SPA (view) | Template:Country data SPA | Template:Country data SPA |
See What links here for a full list of redirects.
Example usage
{{flag|Spain}}→
Spain{{flagicon|Spain}}→
Using a flag variant
{{flag|Spain|1506}}→
Spain{{flagicon|Spain|1506}}→
Using a redirect alias
{{flagicon|ESP}}→ Template:Country data ESPTemplate:Namespace detect showall{{flagcountry|ESP}}→ Template:Country data ESP{{flag|ESP}}→ Template:Country data ESP
Military ensigns
This template includes a naval flag variant that can be used with Template:Naval:
{{naval|Spain}}→ Template:Naval{{flagicon|Spain|naval}}→
This template includes an air force ensign flag variant that can be used with Template:Air force:
{{air force|Spain}}→
Spanish Air and Space Force{{flagicon|Spain|air force}}→
This template includes a marine ensign flag variant that can be used with Template:Marines:
{{marines|Spain}}→ Template:Marines{{flagicon|Spain|marines}}→
This template includes an ensign flag variant that can be used with Template:Navy:
{{navy|Spain}}→ Template:Navy{{flagicon|Spain|navy}}→
This template includes an army ensign flag variant that can be used with Template:Army:
{{army|Spain}}→
Spanish Army{{flagicon|Spain|army}}→
Related templates
Please see the following related country_data templates:
- Template:Country data Spanish EmpireTemplate:Country data Spanish Empire
- Template:Country data Kingdom of SpainTemplate:Country data Kingdom of Spain
- Template:Country data Spanish RepublicTemplate:Country data Spanish Republic
- Template:Country data Spanish StateTemplate:Country data Spanish State
- Template:Country data Francoist SpainTemplate:Country data Francoist Spain
TemplateData
TemplateData for Country data Spain
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.
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||