Template:Infobox autonomous community of Spain/doc

From IxWiki
Revision as of 13:07, 25 April 2020 by >Vanisaac (→‎Microformat: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{{name}}}

[[File:{{{image_flag}}}|120px|alt={{{image_flag_alt}}}|Flag of {{{name}}}]] [[File:{{{image_coat}}}|75px|alt={{{image_coat_alt}}}|Coat of arms of {{{name}}}]]
[[Flag of {{{name}}}|Flag]] [[Coat of arms of {{{name}}}|Coat of arms]]
Anthem: "{{{anthem}}}"
Motto: {{{motto}}}
[[File:{{{map}}}|center|270px|alt={{{map_alt}}}|Map of Spain with {{{name}}} highlighted]]
{{{map_caption}}}
Capital{{{capital}}}
Largest city{{{largest_city}}}
Official language{{{official_lang}}}
Recognised languages{{{recognised_lang}}}
Demonym{{{demonym}}}
Sovereign state{{{sovereignty}}}
Government
 • [[President of {{{name}}}|President]]{{{president}}} ({{{president_party}}})
 • [[Vice President of {{{name}}}|Vice President]]{{{vice_president}}} ({{{vice_president_party}}})
Legislature{{{legislature}}}
Formation
AreaRanked {{{area_rank}}}
 • Total{{{area_km2}}} ({{{area_sq_mi}}})
 • Proportion of Spain{{{area_percent}}} of 505,990 km2
PopulationRanked {{{population_rank}}}
 • Total ({{{population_year}}}){{{population}}}
 • Density{{{density_km2}}}/km2 ({{{density_sq_mi}}}/sq mi)
GDPRanked {{{GDP_rank}}}
 • Total ({{{GDP_year}}}){{{GDP_total}}}
 • Per capita{{{GDP_per_capita}}} ({{{GDP_per_capita_rank}}})
Currency{{{currency}}} ({{{currency_code}}})
Time zone{{{time_zone}}}
 • Summer (DST){{{summer_time}}}
Calling code{{{calling_code}}}
Patron saint{{{patron_saint}}}
Internet TLD{{{internet_TLD}}}
Website
{{{website}}}
{{{footnotes}}}

Usage

{{Infobox autonomous community of Spain
| name = 
| native_name = 
| alt_name = 
| alt_native_name = 
| image_flag = 
| image_flag_alt =
| image_coat = 
| image_coat_alt =
| anthem = 
| motto = 
| map = 
| map_alt
| map_caption = 
| capital = 
| largest_city = <!-- Set this to "capital" if the capital and the largest city are the same. --> 
| official_lang = 
| official_langs =
| recognised_lang = 
| other_langs =
| demonym = 
| sovereignty = 
| government = 
| president = 
| president_party = 
| vice_president = 
| vice_president_party = 
| legislature = 
| area_footnotes = 
| area_rank = 
| area_km2 = 
| area_sq_mi =
| area_percent =
| population_footnotes = 
| population_rank = 
| population_year = 
| population = 
| population_ref = 
| density_km2 =
| density_sq_mi =
| GDP_footnotes = 
| GDP_rank = 
| GDP_year = 
| GDP_total = 
| GDP_per_capita = 
| GDP_per_capita_rank = 
| currency  = 
| currency_code = 
| time_zone = 
| summer_time = 
| calling_code  = 
| patron_saint = 
| ISO_code = 
| internet_TLD  = 
| website = 
| footnotes = 
}}

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.