แม่แบบ:Infobox hospital/doc

แม่แบบ Infobox hospital จะแสดงผลกล่องข้อมูลด้านขวาของหน้าเพื่อแสดงข้อมูลหลักของโรงพยาบาลหรือสถานพยาบาลแห่งหนึ่ง ๆ

**การใช้งาน**
คุณสามารถคัดลอกแม่แบบด้านล่างไปใช้งานได้เลย ข้อมูลทั้งหมดที่ปรากฏในกล่องข้อมูลนี้ควรมีอ้างอิงประกอบในบทความ ช่องที่เว้นไว้จะไม่แสดงผล

**แบบว่าง**

**แม่แบบพร้อมแนวทาง**

**Attributes**
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.
Any parameter indicated as free-form text is not automatically wikified/wiki-linked, but may be manually wiki-linked within a particular article that uses this template:

affiliation = Kings College

**Article subject**
 name: The hospital name. When not specified, it defaults to the Wikipedia article's title ().
 org/group: Optional; 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.

**Images**
 logo: Optional; an image name for the hospital's logo or crest.
 logo_size: Optional; a width for the logo. When not specified, it defaults to frameless which uses the size in each user's Preferences (ranges from 120px to 300px).
 logo_alt: Alt text for the logo, see Wikipedia:Alternative text for images.
 image: Optional; image name for an illustration of photograph of the hospital.
 image_size: Optional; a width for the image. When not specified, it defaults to frameless which uses the size in each user's Preferences (ranges from 120px to 300px).
 alt: Alt text for the image, see Wikipedia:Alternative text for images.
 caption: Optional; caption text displayed below the image.

image       = ACME_hospital.png

image_size  = 280px

caption     = The 2006 rebuilt hospital

**Location**
The parameter location was originally used to specify manually wiki-linked (or unlinked) location details because region (city or county), state (or province), and country used automatic wiki-linking. That is no longer the case, so any of those parameters can be used. They will display in the infobox as: location, region, state, country.
 location: Optional location details displayed before region (city or county), state, and country. This is not automatically wiki-linked.
 region: The city or county. This is not automatically wiki-linked.
 state: The state or province. This is not automatically wiki-linked.- 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.
 country: The country name. This is not wiki-linked. The template also recognizes the following two-letter abbreviations and will display the associated country name as shown: AU = Australia, CA = Canada, HK = Hong Kong, IE = Ireland, IN = India, IL = Israel, KE = Kenya, NZ = New Zealand, NO = Norway, PH = Philippines, PK = Pakistan, SA = South Africa, TZ = Tanzania, UK = United Kingdom, US = United States.
 Note: The country parameter is also used in the Links section of the infobox to display a link to List of hospitals in Country if such a page exists. For hospitals in the UK or US, the state parameter is used to display a link to List of hospitals in State if such a page exists, or the country list if not (works only when country  is one of the following: UK, United Kingdom, US, United States).

**Organisation**
(displayed as 'Organization' if country set as Canada or United States, to maintain spelling consistency within articles)
 healthcare: This indicates the insurance status of the hospital. This is generally a free-form text item.
 However for certain countries, specific values of healthcare are wiki-linked:
 All countries (including those above) will accept free-form text for this parameter
 Useful markups include 
 funding: The hospital funding source; may be one of the following- 'Non-profit' which displays as Non-profit hospital- 'For-profit' which displays as For-profit hospital- 'Government' which displays as Government hospital- 'Public' which displays as Public hospital- any other value is displayed as free-form text, which may be manually wiki-linked
 type: The hospital type; may be one of the following:- 'General', 'District', 'District General' which are automatically wiki-linked to Hospital#General- 'Specialist' which is automatically wiki-linked to Hospital#Specialized- 'Teaching' which is automatically wiki-linked to Teaching hospital (also known as a University hospital).- any other value is displayed as free-form text, which may be manually wiki-linked
 religious_affiliation: This free-form text gives the religion that the hospital is associated with. Hidden if undefined.
 affiliation: This free-form text 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.
 network: This free-form text 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).

**Services**
 standards: 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 deprecated 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.
 emergency: is the new more generic parameter. It is generally free-form text, 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.
 beds: The number of inpatient beds.
 speciality
 specialty
 Where type=Specialist, this parameter is used to specify the particular medical or surgical speciality (leave the parameter undefined if the hospital has a broad spectrum of specialities and one happens to be more famous than the rest). Where type=Teaching, this parameter is optional, since teaching hospitals may encompass the full spectrum of clinical specialities or be a single specialist centre.
 Link to a medical speciality, other useful links are pediatric hospital or psychiatric hospital.
 Note: This will only be displayed in the infobox when type=Specialist or type=Teaching.
 Either speciality (UK spelling) or specialty (US spelling) may be used. The infobox label is automatically adjusted based on which parameter is used.
 helipad: Optional parameter to denote helipad for Medevac. Use location identifiers using Airport codes. Only list if verifiable, leave blank if unknown.
These parameters specify details for each helipad in the "Helipads" section. Parameters start with h1- for the first helipad, h2- for the second helipad, up to h12- for the twelfth helipad. This section is optional and only appears if the h1- parameters are specified.
 hn-number(h1-number, h2-number, ...)
 The designation of the helipad. In the United States this is usually the letter "H" followed by a number, i.e. "H1", "H2", etc.
 hn-length-f (h1-length-f, h2-length-f, ...)
 Helipad length in feet.
 hn-length-m (h1-length-m, h2-length-m, ...)
 Helipad length in metres.
 hn-surface (h1-surface, h2-surface, ...)
 Helipad surface type, such as: Concrete, Asphalt, etc. Avoid the generic type "Paved" if possible.

**History**
 former-names: Optional; names that were used by the hospital before its current name.
 constructed: The date the construction of the hospital started.
 opened: The year or full date that the hospital opened.
 closed: Optional; year or date when a hospital closed.
 demolished: Optional; year or date when demolished, if different from closure.

**Links**
 website: Please give the full URL address using the URL template. If the hospital has no web presence, then leave this blank. Also will not display if set to N/A, n/a, None, or none.

website =                       Does not display the parameter at all

website = None                  Does not display the parameter at all

website =    Displays as: example.com
 other_links: Used to specify free-form text links to related material. Must be manually wiki-linked.
 The template automatically generates a link to List of hospitals in CountryList of hospitals in State if such a page exists, or the country list if not (works only when country  is one of the following: UK, United Kingdom, US, United States).
: (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 free-form text passed by other_links parameter are shown on a new line if an autolink has already been displayed.

**Map and coordinates**

**Mapframe maps**
A Mapframe map is automatically included if:- There are coordinates specified on the page's Wikidata item- It has not be turned off by setting no
The following optional parameters can then be used to adjust the map- mapframe-zoom zoom level (default is 10)- mapframe-width and mapframe-height for the map size (defaults are 270 and 200)- mapframe-marker for the marker icon (default is hospital)- either mapframe-marker-color or mapframe-marker-colour for the marker colour (hex triplet, default is #5E74F3)- either mapframe-stroke-color or mapframe-stroke-colour for the stroke colour (hex triplet, default is #FF0000)- mapframe-caption caption below the map- mapframe-lat and mapframe-long (or mapframe-latitude and mapframe-longitude) – alternate initial latitude and longitude for the map, instead of the hospital's coordinates. Specify as a decimal number.

**Location map**
If a location map is specified, the coordinates= parameter, used with Coord, will display the location on a map. For details on how to add the latitude and longitude of the building, see the documentation for Coord. - To display coordinates at the top of the page only, set display=title within Coord; to display them in the infobox and the title, set display=inline,title.  Otherwise, coordinates will appear only in the infobox.

**Embedding other templates**
The module=, embedded=, or nrhp= parameters can be used for embedding other templates into this infobox (see Wikipedia:Infobox modules):

**ตัวอย่าง**

**Microformat**

**TemplateData**
{
	"params": {
		"name": {
			"required": true,
			"label": "Name",
			"type": "wiki-page-name",
			"aliases": 
				"Name"
			,
			"description": "The hospital name. When not specified, it defaults to the Wikipedia article's title "
		},
		"org/group": {
			"required": false,
			"label": "Org/group",
			"aliases": 
				"Org/Group"
			,
			"type": "string",
			"description": "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."
		},
		"logo": {
			"required": false,
			"label": "Logo",
			"aliases": 
				"Logo"
			,
			"type": "string",
			"description": "An image name for the hospital's logo or crest."
		},
		"logo_size": {
			"required": false,
			"label": "Logo size",
			"aliases": 
				"Logo Size"
			,
			"description": "A width for the logo. When not specified, it defaults to frameless which uses the size in each user's Preferences (ranges from 120px to 300px)."
		},
		"image": {
			"required": false,
			"label": "Image",
			"aliases": 
				"Image"
			,
			"description": "Image name for an illustration of photograph of the hospital."
		},
		"image_size": {
			"required": false,
			"label": "Image size",
			"aliases": 
				"Image_size",
				"Width"
			,
			"description": "A width for the image. When not specified, it defaults to frameless which uses the size in each user's Preferences (ranges from 120px to 300px)."
		},
		"alt": {
			"required": false,
			"label": "Alt",
			"aliases": 
				"image alt"
			,
			"description": "Alternative text for image"
		},
		"caption": {
			"required": false,
			"label": "Caption",
			"aliases": 
				"Caption"
			,
			"type": "string",
			"description": "Caption text displayed below the image"
		},
		"map_type": {
			"required": false,
			"label": "Map type",
			"description": "Location name used for Template:Location map",
			"aliases": 
				"pushpin_map"
			,
			"type": "string"
		},
		"map_alt": {
			"required": false,
			"label": "Map alt",
			"description": "alternative text for map",
			"aliases": 
				"pushpin_map_alt"
			,
			"type": "string"
		},
		"relief": {
			"required": false,
			"label": "Relief",
			"description": "any non-blank value (yes, 1, etc.) will cause the template to display a relief map image, where available",
			"aliases": 
				"pushpin_relief"
			
		},
		"coordinates": {
			"required": false,
			"label": "Coordinates",
			"aliases": 
				"Coordinates"
			,
			"description": "Use  template with 'display=inline, title'"
		},
		"map_caption": {
			"required": false,
			"label": "Map caption",
			"aliases": 
				"pushpin_map_caption"
			
		},
		"map_size": {
			"required": false,
			"label": "Map size",
			"aliases": 
				"pushpin_mapsize"
			
		},
		"location": {
			"required": false,
			"label": "Location",
			"aliases": 
				"Location"
			,
			"description": "optional – displayed before region, state, country"
		},
		"address": {
			"required": false,
			"label": "Address",
			"aliases": 
				"Addresss"
			
		},
		"region": {
			"required": false,
			"label": "Region",
			"aliases": 
				"Region"
			
		},
		"state": {
			"required": false,
			"label": "State",
			"aliases": 
				"State"
			,
			"description": "optional – UK: England, Wales, Scotland, Northern Ireland; US: the US state name; CA: province name"
		},
		"country": {
			"required": false,
			"label": "Country",
			"aliases": 
				"Country"
			,
			"description": "Country name or two-letter code – use UK for United Kingdom or US for United States"
		},
		"healthcare": {
			"required": false,
			"label": "Healthcare",
			"aliases": 
				"HealthCare"
			,
			"description": "UK: NHS; AU/CA: Medicare; ELSE free-form text, e.g. Private"
		},
		"funding": {
			"required": false,
			"label": "Funding",
			"aliases": 
				"Funding"
			,
			"description": "use: Non-profit, For-profit, Government, Public"
		},
		"type": {
			"required": false,
			"label": "Type",
			"aliases": 
				"Type"
			,
			"description": "use: Community, District, General, District General, Teaching, Specialist "
		},
		"religious_affiliation": {
			"required": false,
			"label": "Religious affiliation",
			"description": "religion associated with the hospital"
		},
		"affiliation": {
			"required": false,
			"label": "Affiliation",
			"aliases": 
				"Affiliation"
			,
			"description": "medical school / university affiliations (medical or paramedical)"
		},
		"patron": {
			"required": false,
			"label": "Patron",
			"aliases": 
				"Patron"
			,
			"description": "the individual who acts as the hospital patron"
		},
		"network": {
			"required": false,
			"label": "Network",
			"aliases": 
				"Network"
			,
			"description": "hospital network, non-owner"
		},
		"standards": {
			"required": false,
			"label": "Standards",
			"aliases": 
				"Standards"
			
		},
		"certification": {
			"required": false,
			"label": "Certification",
			"aliases": 
				"Certification"
			,
			"deprecated": "Yes"
		},
		"emergency": {
			"required": false,
			"label": "Emergency",
			"aliases": 
				"Emergency"
			,
			"description": "UK/IR/HK/SG: Yes/No, in CA/IL/US: I/II/III/IV/V for Trauma certification level"
		},
		"helipad": {
			"required": false,
			"label": "Helipad",
			"aliases": 
				"Helipad"
			,
			"description": "To denote helipad for Medevac. Use Yes, No, or enter location identifiers using . Only list if verifiable, leave blank if unknown."
		},
		"beds": {
			"required": false,
			"label": "Beds",
			"aliases": 
				"Beds"
			,
			"type": "number",
			"description": "The number of inpatient beds"
		},
		"speciality": {
			"required": false,
			"label": "Speciality",
			"aliases": 
				"Speciality",
				"Specialty",
				"specialty"
			,
			"description": "Where type=Specialist, this parameter is used to specify the particular medical or surgical speciality (leave the parameter undefined if the hospital has a broad spectrum of specialities and one happens to be more famous than the rest). Where type=Teaching, this parameter is optional, since teaching hospitals may encompass the full spectrum of clinical specialities or be a single specialist centre.\nLink to a medical speciality, other useful links are pediatric hospital or psychiatric hospital.\nNote: This will only be displayed in the infobox when type=Specialist or type=Teaching.\nEither speciality (UK spelling) or specialty (US spelling) may be used. The infobox label is automatically adjusted based on which parameter is used."
		},
		"opened": {
			"required": false,
			"label": "Opened",
			"aliases": 
				"Founded",
				"founded"
			,
			"description": "The year or full date that the hospital opened."
		},
		"closed": {
			"required": false,
			"label": "Closed",
			"aliases": 
				"Closed"
			,
			"description": "Optional; year or date when a hospital closed."
		},
		"demolished": {
			"required": false,
			"label": "Demolished",
			"aliases": 
				"Demolished"
			,
			"description": "Optional; year or date when demolished, if different from closure"
		},
		"constructed": {
			"required": false,
			"label": "Constructed",
			"description": "Optional; year or date when construction began"
		},
		"former-names": {
			"required": false,
			"label": "Former names",
			"description": "Any previous names of the hospital, separate with s"
		},
		"website": {
			"required": false,
			"label": "Website",
			"aliases": 
				"Website"
			,
			"description": "The full URL address using the  template. If the hospital has no web presence, then leave this blank. Also will not display if set to N/A, n/a, None, or none."
		},
		"other_links": {
			"required": false,
			"label": "Other links",
			"description": "Used to specify free-form text links to related material. Must be manually wiki-linked. The template automatically generates a link to List of hospitals in Country based on the country parameter (if such a page exists). For the UK or US, the state parameter is used to display a link to List of hospitals in State if such a page exists, or the country list if not (works only when country is one of the following: UK, United Kingdom, US, United States).",
			"aliases": 
				"Wiki-Links"
			,
			"type": "string"
		},
		"nrhp": {
			"required": false,
			"label": "NRHP",
			"aliases": 
				"NRHP",
				"embedded",
				"module"
			,
			"description": "To embed "
		},
		"pushpin_label": {},
		"h1-number": {},
		"h1-length-f": {},
		"h1-length-m": {},
		"h1-surface": {},
		"publictransit": {},
		"metric-rwy": {},
		"h2-number": {},
		"h2-length-m": {},
		"h2-length-f": {},
		"h2-surface": {}
	},
	"description": "Infobox for hospitals, worldwide from large to small. 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.",
	"format": "block",
	"paramOrder": 
		"name",
		"org/group",
		"logo",
		"logo_size",
		"image",
		"image_size",
		"alt",
		"caption",
		"map_type",
		"map_alt",
		"relief",
		"coordinates",
		"pushpin_label",
		"map_caption",
		"map_size",
		"location",
		"address",
		"region",
		"state",
		"country",
		"healthcare",
		"funding",
		"type",
		"religious_affiliation",
		"affiliation",
		"patron",
		"network",
		"standards",
		"certification",
		"emergency",
		"beds",
		"helipad",
		"speciality",
		"opened",
		"closed",
		"demolished",
		"constructed",
		"publictransit",
		"former-names",
		"website",
		"other_links",
		"nrhp",
		"h1-number",
		"h1-length-m",
		"h1-length-f",
		"h1-surface",
		"metric-rwy",
		"h2-number",
		"h2-length-m",
		"h2-length-f",
		"h2-surface"
	
}

**Tracking category**
 Pages using infobox hospital with unknown parameters

**See also**
 WP:HOSPITAL for WikiProject page
 Subtemplates- Template:Infobox hospital/care system- Template:Infobox hospital/lists