Template:Infobox hospital

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Any Hospital
Documentation icon Template documentation[view] [edit] [history] [purge]

The Template:Infobox hospital formats a right-side infobox to display many data items about a hospital, with the typical labels listed down the left side, and the corresponding data values on the right side of the box.

The template uses several specialized arcane CSS format classes, which makes it very difficult to determine the styles applied to each data item in the infobox.


Copy-paste the entire unpopulated template below. It will display the infobox on the right. All relevant fields and invisible comments should be left intact for future editors, even if currently unused. All information in the infobox should originate in the article and be cited there.

{{Infobox hospital
<!-- Instructions: All fields and invisible comments should be left intact for future editors, even if currently unused. -->
<!--               All fields are optional, but if copying to another article, please copy the entire template. -->
<!--               Full template and instructions at: http://en.wikipedia.org/wiki/Template:Infobox_hospital -->
| name        = {{subst:PAGENAME}}
| org/group   = <!-- Org or group that owns/manages the hospital -->
| image       = <!-- Preferably photo of the main building or entrance-->
| alt         = <!-- Inserts alternate text for picture -->
| image_size  = 225 <!-- optional width of image, also Width=225 -->
| caption     = <!-- optional -->
| map_type    = <!-- Uses the "Template:Location map" format; defines value for {{{1}}} parameter; must have latitude and longitude if using this -->
| relief      = <!-- any non-blank value (yes, 1, etc.) will cause the template to display a relief map image, where available -->
| map_size    = <!-- width of the map in pixels (do not include "px"); default is 225 -->
| map_alt     = <!-- alternative text for map image, see WP:ALT for details -->
| map_caption = <!-- Optional. Gives a small caption under the map such as "Shown in region, country" -->
| latitude    = <!-- used for adding a map, with map_type, and for displayed coordinates -->
| longitude   = <!-- used for adding a map, with map_type, and for displayed coordinates -->
| logo        = <!-- Please conform to copyright -->
| logo_size   = <!-- Use to limit the logo size -->
| location    = <!-- manually link & alternatively name if wish -->
| region      = <!-- e.g. County or City - NB autolinked -->
| state       = <!-- optional UK: England, Wales, Scotland, Northern Ireland. US: The US State - NB autolinked -->
| country     = <!-- 2 letter code or in full, United States must be "US" -->
| coordinates = <!-- (alternative to latitude/longitude) use template {{coord}} with 'display=inline, title' -->
| address     = <!-- Address of main building -->
| healthcare  = <!-- UK:NHS. AU/CA: Medicare. ELSE freetext, e.g. Private -->
| funding     = <!-- Non-profit, For-profit, Government, Public - will generate linka -->
| type        = <!-- Community, District, General, District General, Teaching, Specialist -->
| speciality  = <!-- if devoted to a speciality (i.e. not a broad spectrum of specialities) and Type=Specialist/Teaching -->
| standards   = <!-- optional if no national standards -->
| emergency   = <!-- UK/IR/HK/SG: Yes/No, CA/IL/US: I/II/III/IV/V for Trauma certification level -->
| helipad     = <!-- Yes, No, or use "Template:Airport codes" with p=n. Only list if verifiable, leave blank if unknown. -->
| affiliation = <!-- 'None' or Medical School and university affiliations (medical or paramedical) -->
| patron      = <!-- 'None' or the individual who acts as the hospital patron -->
| network     = <!-- Hospital network, non-owner -->
| beds        = <!-- Cite in article as well -->
| founded     = <!-- Cite in article as well -->
| closed      = <!-- Use if defunct, please also add to Category:Defunct hospitals -->
| demolished  = <!-- Use if demolished at a different time from closure -->
| website     = <!-- Use {{URL}} -->
| other_links = <!-- Creates "See also" field -->


None of the fields are obligatory. Fill in as many of the values as possible. Hence if "image =" is not defined then it will default to blank.

Don't worry about getting all the fields -- just do your best, and if you have any questions or suggestions, feel free to ask at Template talk:Infobox hospital.

Parameter Free text (F/T) / Wikified (W) Processed (P) Comments
name F/T
org/group F/T UK: NHS=Trust/Health board, ELSE multiple-hospital organisation or group
image W inserts picture 'Image:Image '
alt W inserts alt text for picture. See WP:ALT.
caption F/T
map_type P See Map and coordinates section
latitude P See Map and coordinates section
longitude P See Map and coordinates section
image_size F/T
logo W inserts picture 'Image:Logo '
logo_size W Sets logo size
location F/T This parameter not wikified, but please move County/City & State details to Region & State parameters...
region W This parameter is wikified if it exists
state W UK=England, Wales, Scotland or N.Ireland.
country W see Wiki-links on Country/State parameter additional functionality
healthcare F/T P Wikifies if UK=NHS. AU/CA=Medicare.
ELSE non-wikified freetext, e.g. 'Private'
funding F/T P 'Non-profit', 'For-profit', 'Government', or 'Public' are wikilinked.
type F/T P 'General', 'District' or 'District General', 'Specialist' & 'Teaching' are wikilinked.
affiliation F/T University or Medical School association, may set to 'None' if no affiliation
standards F/T e.g. international ISO where absence of national standards
certification F/T please switch US hospitals to Emergency parameter setting as relevant I, II, III, IV, or V level
emergency F/T P UK/IR/HK/SG: if =Yes/No adds 'Accident & Emergency'
CA/IL/US:I/II/III/IV/V links to Trauma certification level; else Yes/No
helipad F/T Optional, use Yes, No, or {{Airport codes}}. Only list if verifiable, leave blank if unknown.
beds F/T
speciality F/T Only shown if Type=Specialist, If Type=Teaching then an optional parameter
founded F/T
closed F/T
website W Use {{URL|example.com|optional display text}} if applicable
other_links F/T P NB automatically added is 'List on hospitals in...' link for State or Country if defined above and if List article exists

Any item indicated as freetext is not automatically wikified/wikilinked unless the parameter is defined in a particular article that uses this template:

 Hence: |affiliation=[[Kings College]]

Article subject

This defaults to the article's name ({{PAGENAME}}) if not defined
is an optional parameter that may be used if the hospital is part of a wider organisation or group. Examples would be the name of a private company owning and running a number of different hospitals, in the UK may be used to specify the NHS Trust (these may operate several hospitals in a locality), other organisations might include Aga Khan Hospital or Aga Khan Health Services


may be used to provide an optional illustration. These fields are optional, but it is helpful to provide an image if you can find one. Of course most images on the internet are copyrighted.
Adds alt text to the image, see WP:ALT
optional caption for the image
an optional width parameter for the image. When no image_size parameter is specified, it defaults to 225 (pixels). You may though adjust the width if required like this:
 | image       = ACME_hospital.png
 | caption     = The 2006 rebuilt hospital 
 | image_size  = 280px
is a further optional parameter which also takes a relevant image name and shows, to a fixed 200-pixel width, the hospital's logo or crest.


The original placement parameter was location and would be set with manually wikilinked details of local place, city or country and US state. The template though adds wiki-links in a See also section to the relevant List of hospitals in State if this exits (i.e. if State is defines and the relevant wikipage exists), else to List of hospitals in State if that exists. So please split the hospital placement details into:

the local details. This is not wikilinked
the city or county. Is wikilinked and at least one of Location or Region need to be defined else 'Unknown' is shown
Optional wikilinked values.
  • For Canada this is the relevant Province
  • For the UK this is either England, Northern Ireland, Scotland or Wales.
  • For the US this is the relevant US State.
This must be defined else '(? country)' is shown.
Country may be freetext, but the template automatically shows the wikilinked 2 character ISO country codes if set as Australia, Canada, Ireland, India, Kenya, New Zealand, Pakistan, South Africa, Tanzania, United Kingdom or as the corresponding codes.
Hence | country    = Canada          gives:   Country  CA
Please note: region, state & country are automatically wikified if the relevant wikipage exists (i.e. no red links are shown if the relevant wikipage does not exist).


(displayed as 'Organization' if country set as Canada or USA, to maintain spelling consistency within articles)

This indicates the insurance status of the hospital. This is generally a free text item.
However for certain countries, specific values of healthcare are wikilinked:
Country HealthCare value Wikilinked to Displayed text
Australia Medicare Medicare (Australia) Public Medicare (AU)
Canada Medicare Medicare (Canada) Public Medicare (Canada) and wikilink to abbreviated Provincial plans where article exists
United Kingdom NHS National Health Service Public (NHS)
All countries (including those above) will accept free text for this parameter
Useful markups include Public ([[Ontario Health Insurance Plan|OHIP]])'
The hospital funding source should be set as one of 'Non-profit', 'For-profit', 'Government', or 'Public'. These are automatically wikilinked to Non-profit hospital, For-profit hospital, Government hospital (redirects to Public hospital), or Public hospital, respectively. Free text is also accepted for this parameter.
The hospital Type is should be set as one of 'Community', 'District General' (or 'District' or 'General'), 'Teaching' or 'Specialist'.
'General' 'District' 'District General' & 'Specialist' are automatically wikilinked to relevant section in hospital
'Teaching' is wikilinked to University hospital (whilst University Hospital seems the most commonly used official term, most doctors & patients (and hence wikireaders) would refer to these as Teaching hospitals)
This in freetext gives the Medical School that may be associated with the hospital. Hidden if undefined and may be set to 'None' if known that there is no affilication for that hospital.
This in freetext gives the hospital network to which the hospital may belong. This is different from an entity that may own the hospital (which belongs in Org/Group).


This optional parameter provides details of Quality Standards that the hospital may have achieved and is meant to be used for hospitals where there are no automatic national standards and external internal organisations (e.g. ISO) have been invited in to provide certification.
Emergency Department and Trauma provision
The depreciated Certification parameter was US-centric and referred to the externally assessed level of trauma care that the hospital is rated to manage. However for hospitals outside of the US, editors confused this for Quality Standards certification, for which the Standards parameter is now provided.
is the new more generic parameter. It is generally freetext, however certain countries have tended to use the alternative name of "Accident & Emergency" for this service, and all but Canada and the US generally specify whether or not an Emergency Department is operational or not. Canada, Israel, and the US have 5 levels of trauma care provision assessible.
Country Emergency value Displayed text
United Kingdom
Hong Kong
Yes Accident & Emergency
No Accident & Emergency
else Freetext
United States
Level I trauma center
Level II trauma center
Level III trauma center
Level IV trauma center
Level V trauma center
else Freetext
Optional parameter to denote helipad for Medevac. Use Yes, No, or enter location identifiers using {{Airport codes}}. Only list if verifiable, leave blank if unknown.
The number of inpatient beds.
Used where the hospital is primarily devoted to a particular medical or surgical speciality, i.e. Type=Specialist hospital (i.e. not if it has a broad spectrum of specialities and one happens to be more famous than the rest, for these leave parameter undefined). Teaching hospitals may encompass the full spectrum of clinical specialities or be a single Specialist centre; hence where Type=Teaching, this parameter is optional.
Either link to medical speciality, other useful links are to pediatric hospital, psychiatric hospital


Please give the year or full date that the hospital opened.
Optional parameter for when a hospital closed.


Please give the full URL address using the URL template. If the hospital has no web presence, then set this to 'None.'
|website =                                       Does not show the parameter at all
|website = None                                  Gives None
|website = {{URL|example.com}}                   Gives example.com
See also
This section gives freetext links to related material defined by other_links
Esoteric programming automatically generates links to the series of Wikipedia articles of 'List of hospital in ...'. For UK & US, if State place parameter has been set then the See also field automatically shows List of hospitals in State, but only if such article exists, otherwise and for all other countries, List of Hospitals in Country is shown if this article exists.
(This works even if country parameter is set to the 2-letter ISO code for Australia, Canada, Ireland, India, Kenya, New Zealand, Pakistan, South Africa, Tanzania, United Kingdom or United States. Also note that the wording of the Wikipedia 'List' article has additional definite article 'the' added for 'the United Kingdom' and 'the United States' and Ireland's list is for 'the Republic of Ireland').
Any freetext passed by other_links parameter are shown on a new line if an autolink has already been displayed.

Map and coordinates

It's usually not necessary to use the coordinates= parameter.

  • The latitude and longitude of the building may be specified:
    • in decimal degrees, using latitude= and longitude= OR
    • in degrees/minutes/seconds, using latd=, latm=, lats=, latNS=, longd=, longm=, longs=, and longEW=.
  • To suppress the display coordinates at the top of the page, set coordinates_display=none or coordinates_display=inline. Otherwise coordinates will appear at the top of the page and in the infobox.
  • The ISO 3166-1 alpha-2 or ISO 3166-2 region code is set using the iso_region= parameter.
  • The input format need not match the display format, use coordinates_format=dms to display the coordinates in degrees/minutes/seconds or coordinates_format=dec to display the coordinates in decimal degrees.

One advantage of omitting the coordinates= parameter is that you can display a {{Location map}} without duplicating coordinates.

{{Infobox hospital
| coordinates         = <!-- Template {{Coord}} if map is not used; empty if map is displayed. -->
| coordinates_display = <!-- set to 'inline' or 'none' to suppress display at the top of the page. -->
| iso_region          = <!-- to set the ISO 3166 region code. -->
| map_type            = <!-- location name used for Template:Location map -->
| relief              = <!-- any non-blank value (yes, 1, etc.) will cause the template to display a relief map image, where available -->
| map_size            = <!-- width of map in pixels (do not include "px"); default is 225 -->
| map_alt             = <!-- alternative text for map image, see WP:ALT for details -->
| map_caption         = <!-- text displayed below map; for no caption enter "map_caption="; if omitted the caption will be "Marker text (location map name)" -->
Parameters to specify coordinates in degrees, minutes, and seconds of arc:
{{Infobox hospital
| latd   = <!-- ''latitude'' degrees -->
| latm   = <!-- ''latitude'' minutes -->
| lats   = <!-- ''latitude'' seconds -->
| latNS  = <!-- latitude: S=south, N=north (default) -->
| longd  = <!-- ''longitude'' degrees -->
| longm  = <!-- ''longitude'' minutes -->
| longs  = <!-- ''longitude'' seconds -->
| longEW = <!-- longitude: W=west, E=east (default) -->
Parameters to specify coordinates in decimal degrees:
{{Infobox hospital
| latitude  = <!-- ''latitude'' (decimal format; enter negative numbers for southern latitude) -->
| longitude = <!-- ''longitude'' (decimal format; enter negative numbers for western longitude) --> 

Note: coordinates in decimal degrees are sensitive to extra whitespace in the parameters:

  • Incorrect: | longitude = - 123.45
  • Correct: | longitude = -123.45


The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article 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.


If the place or venue has an "established", "founded", "opened" or similar date, use {{start date}} unless the date is before 1583 CE.

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

Please do not remove instances of these sub-templates.


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.


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


This is the TemplateData documentation for this template used by VisualEditor and other tools.

Infobox hospital

The Template:Infobox_hospital formats a right-side infobox to display many data items about a hospital, with the typical labels listed down the left side, and the corresponding data values on the right side of the box.

Template parameters
Parameter Description Type Default Status
Hospital name name This defaults to the article's name ({{PAGENAME}}) if not defined string empty optional
Organisation/Group org/group Organisation or group that owns or manages the hospital string empty optional
Country country 2 letter code or in full, United States must be _US_ string empty optional
Year/date of foundation founded the year or full date that the hospital opened string empty optional

See also