<templatestyles src="Module:Documentation/styles.css"></templatestyles>

Template documentation

Template:Country data Mexico is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

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

Flag variants

LabelFlag image (40px)Image name
1821Flag of Mexico (1821-1823).svg
1823Flag of Mexico (1823-1864, 1867-1893).svg
1864Flag of Mexico (1864-1867).svg
1881Flag of Mexico (1881-1917).png
1893Flag of Mexico (1893-1916).svg
1916Flag of Mexico (1916-1934).svg
1917Flag of Mexico (1917-1918).png
1934Flag of Mexico (1934–1968).png
1968Flag of Mexico (WFB 2000).png
2004Flag of Mexico (WFB 2004).gif
2013Flag of Mexico (WFB 2013).gif
marinesEstandarte Infantería de Marina de México.svg
armyFlag of the Mexican Army.svg

Military ensigns

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

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

This template includes a marine ensign flag variant that can be used with Template:Marines:


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

  • {{army|Mexico}} Mexican Army
  • {{flagicon|Mexico|army}}Mexico

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
MEX (view) MEX Mexico

See What links here for a full list of redirects.

Example usage

  • {{flag|Mexico}} Mexico
  • {{flagicon|Mexico}}Mexico

Using a flag variant

  • {{flag|Mexico|1821}} Mexico
  • {{flagicon|Mexico|1821}}Mexico

Using a redirect alias

  • {{flagicon|MEX}}Mexico
  • {{flagcountry|MEX}} Mexico
  • {{flag|MEX}} MEX

Other information

State flags

Country_data templates are also available for each of the thirty-one states of Mexico and the Mexican Federal District:

Template:Country data Aguascalientes  Aguascalientes
Template:Country data Baja California  Baja California
Template:Country data Baja California Sur  Baja California Sur
Template:Country data Campeche  Campeche
Template:Country data Chiapas  Chiapas
Template:Country data Chihuahua  Chihuahua
Template:Country data Coahuila  Coahuila
Template:Country data Colima  Colima
Template:Country data Durango  Durango
Template:Country data Guanajuato  Guanajuato
Template:Country data Guerrero  Guerrero
Template:Country data Hidalgo  Hidalgo
Template:Country data Jalisco  Jalisco
Template:Country data México (state)  México
Template:Country data Michoacán  Michoacán
Template:Country data Morelos  Morelos
Template:Country data Nayarit  Nayarit
Template:Country data Nuevo León  Nuevo León
Template:Country data Oaxaca  Oaxaca
Template:Country data Puebla  Puebla
Template:Country data Querétaro  Querétaro
Template:Country data Quintana Roo  Quintana Roo
Template:Country data San Luis Potosí  San Luis Potosí
Template:Country data Sinaloa  Sinaloa
Template:Country data Sonora  Sonora
Template:Country data Tabasco  Tabasco
Template:Country data Tamaulipas  Tamaulipas
Template:Country data Tlaxcala  Tlaxcala
Template:Country data Veracruz  Veracruz
Template:Country data Yucatán  Yucatán
Template:Country data Zacatecas  Zacatecas
Template:Country data Mexican Federal District  Mexican Federal District

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for Country data Mexico

<templatedata> {

 "description": "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.",
 "params": {}

} </templatedata>