模解[] [] [] []

The Template:醫院明細 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.

{{{name}}}
{{{org/group}}}
[[File:{{{logo}}}|{{{logo_size}}}]]
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|{{{alt}}}]]
{{{caption}}}
{{{map_type}}}
地理
地址{{{country}}}{{{state}}}{{{region}}}{{{location}}}
座標{{{coordinates}}}
架構
醫療系統{{{healthcare}}}
資金{{{funding}}}
醫院類型{{{type}}}
宗教聯繫{{{religious_affiliation}}}
所屬大學{{{affiliation}}}
贊助人{{{patron}}}
聯網{{{network}}}
服務
標準{{{standards}}}
急症室{{{emergency}}}
病床{{{beds}}}
直升機停機坪{{{helipad}}}
創辦{{{founded}}}
關閉{{{closed}}}
拆卸{{{demolished}}}
Links
網頁{{{website}}}
第啲links{{{other_links}}}
{{{module}}}
or: {{{embedded}}}
or: {{{nrhp}}}

空白模 編輯

{{醫院明細
| name                  = {{subst:PAGENAMEBASE}}
| org/group             = 
| logo                  = 
| logo_size             = 
| image                 = 
| image_size            = 225 
| alt                   = 
| caption               = 
| coordinates           = <!-- {{coord|LAT|LON|type:landmark|display=inline, title}} -->
| location              = 
| region                = 
| state                 = 
| country               = 
| healthcare            = <!-- UK: NHS; AU/CA: Medicare; ELSE free-form text, e.g. Private -->
| funding               = 
| type                  = 
| religious_affiliation = 
| affiliation           = 
| patron                = 
| network               = 
| standards             = 
| emergency             = 
| beds                  = 
| speciality            = 
| helipad               = 
| h1-number             = 
| h1-length-f           = 
| h1-length-m           = 
| h1-surface            = <!-- up to h12 -->
| founded               = <!-- cite in article as well -->
| closed                = 
| demolished            = 
| website               = <!-- {{URL|www.example.com}} -->
| other_links           = 
| module                = 
}}

寫齊說明嘅模 編輯

{{醫院明細
<!-- All parameters and comments should be left intact for future editors -->
<!-- All parameters are optional, but please copy the entire template -->
<!-- Full documentation: http://zh-yue.wikipedia.org/wiki/Template:醫院明細 -->
| name        = {{subst:PAGENAMEBASE}}
| org/group   = <!-- org or group that owns/manages the hospital -->
| logo        = <!-- please conform to copyright -->
| logo_size   = <!-- logo size or width in pixels -->
| image       = <!-- preferably photo of the main building or entrance -->
| image_size  = <!-- 220 is the default image size or width in pixels (225 matches default map_size). Leave blank per [[MOS:ACCESSIBILITY]] unless special size is needed. -->
| alt         = <!-- alternative text for image, see [[WP:ALT]] -->
| caption     = <!-- text displayed below image -->
| 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    = <!-- map size or width in pixels (do not include "px"); default is 225 -->
| map_alt     = <!-- alternative text for map image, see WP:ALT for details -->
| map_caption = <!-- a small caption under the map such as "Shown in region, country" -->
| location    = <!-- optional - displayed before region, state, country -->
| region      = <!-- e.g. City or County -->
| state       = <!-- optional - 英國:英格蘭、威爾士、蘇格蘭、北愛爾蘭;美國:州名;加拿大:省份名 -->
| country     = <!-- country name or two-letter code - use UK for United Kingdom or US for United States -->
| coordinates = <!-- Use {{coord}} template with 'display=inline, title' -->
| healthcare  = <!-- UK: NHS; AU/CA: Medicare; ELSE free-form text, e.g. Private -->
| funding     = <!-- use: Non-profit, For-profit, Government, Public - will generate links -->
| type        = <!-- use: Community, District, General, District General, Teaching, Specialist -->
| religious_affiliation = <!-- religion the hospital is associated with -->
| affiliation = <!-- medical school / university affiliations (medical or paramedical) -->
| patron      = <!-- the individual who acts as the hospital patron -->
| network     = <!-- hospital network, non-owner -->
| standards   = <!-- optional if no national standards -->
| emergency   = <!-- 加拿大/以色列/美國:I/II/III/IV/V for Trauma certification level -->
| beds        = <!-- cite in article as well -->
| speciality  = <!-- if devoted to a speciality (i.e. not a broad spectrum); ONLY displayed if type=Specialist or type=Teaching or type=專科 or type=教學 -->
| helipad     = <!-- [[Template:Airport codes]] with p=n; leave blank if unknown or not verifiable -->
| h1-number   = <!-- The designation of the helipad (up to h12) -->
| h1-length-f = <!-- Helipad length in feet -->
| h1-length-m = <!-- Helipad length in metres -->
| h1-surface  = <!-- Helipad surface type, such as: Concrete, Asphalt, etc -->
| founded     = <!-- cite in article as well -->
| closed      = <!-- if defunct, please also add to Category:Defunct hospitals -->
| demolished  = <!-- if demolished at a different time from closure -->
| website     = <!-- use {{URL|www.example.com}} -->
| other_links = <!-- link(s) to related articles -->
| module      = <!-- or 'embedded' or 'nrhp' -->
}}

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.

Parameter Free-form 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
logo P Logo file name only. Used in [[File:logo|logo_size]].
logo_size P Logo size in pixels. Used in [[File:logo|logo_size]].
image P Image file name only. Used in [[File:image|image_size|alt=alt|alt]].
image_size P Image size in pixels. Used in [[File:image|image_size|alt=alt|alt]].
alt P Alternative text for image. Used in [[File:image|image_size|alt=alt|alt]].
caption F/T Text displayed below image.
map_type P See Map and coordinates section.
coordinates P See Map and coordinates section.
location F/T This parameter not wikified, but please move County/City & State details to Region & State parameters.
region F/T This parameter is not wikified.
state F/T, P This parameter is not wikified. For Canada use province name. For UK use England, Wales, Scotland, or Northern Ireland. For US use the full state name. See #Links for additional functionality related to this parameter for UK and US.
country F/T, P This parameter is not wikified. See #Links for additional functionality related to this parameter.
healthcare F/T, P Wikifies if UK=NHS. AU/CA=Medicare.
ELSE non-wikified free-form text, e.g. 'Private'
funding F/T, P 'Non-profit', 'For-profit', 'Government', or 'Public' are wiki-linked.
type F/T, P 'General', 'District' or 'District General', 'Specialist' & 'Teaching' are wiki-linked.
affiliation F/T University or Medical School association, may set to 'None' if no affiliation
religious_affiliation F/T Religion associated with the hospital, e.g. Roman Catholic
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, W 美國/加拿大/以色列:I/II/III/IV/V links to Trauma certification level; else 有/冇
beds F/T
speciality F/T Only shown if type=Specialist or type=Teaching or type=專科 or type=教學
helipad F/T Optional, use {{Airport codes}}. Only list if verifiable, leave blank if unknown.
h1-number F/T Optional, the designation of the helipad. In the United States this is usually the letter "H" followed by a number, i.e. "H1", "H2", etc. Repeat up to h12-number.
h1-length-f F/T Optional, helipad length in feet. Repeat up to h12-length-f.
h1-length-m F/T Optional, helipad length in metres. Repeat up to h12-length-m.
h1-surface F/T Optional, helipad surface type, such as: Concrete, Asphalt, etc. Avoid the generic type "Paved" if possible. Repeat up to h12-surface.
founded F/T
closed F/T
website F/T, P Use {{URL}} if applicable. Processed to prevent display of the following: N/A, n/a, None, or none.
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 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 ({{PAGENAME}}).
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).
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

地址 編輯

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 = 澳洲, CA = 加拿大, HK = 香港, IE = 愛爾蘭, IN = 印度, IL = 以色列, KE = Kenya, NZ = 紐西蘭, NO = 挪威, PH = 菲律賓, PK = 巴基斯坦, SA = 南非, TZ = Tanzania, UK = 英國, US = 美國.
Note: The country parameter is also used in the Links section of the infobox to display a link to [[Country醫院一覽]] if such a page exists. For hospitals in the UK or US, the state parameter is used to display a link to [[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, 美國).

架構 編輯

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:
Country HealthCare value wiki-linked to Displayed text
Australia Medicare Medicare (Australia) Public Medicare (AU)
Canada Medicare Medicare (Canada) Public Medicare (Canada) and wiki-link to abbreviated Provincial plans where article exists
United Kingdom NHS National Health Service Public (NHS)
All countries (including those above) will accept free-form text for this parameter
Useful markups include Public ([[Ontario Health Insurance Plan|OHIP]])
funding
The hospital funding source; may be one of the following
  • 'Non-profit' which displays as 非牟利醫院
  • 'For-profit' which displays as 牟利醫院
  • 'Government' which displays as 政府醫院
  • 'Public' which displays as 公營醫院
  • 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 醫院#綜合醫院
  • 'Specialist', '專科' which is automatically wiki-linked to 醫院#專科醫院
  • 'Teaching', '教學' which is automatically wiki-linked to 教學醫院 (also known as a 大學醫院).
  • 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 醫院聯網 to which the hospital may belong. This is different from an entity that may own the hospital (which belongs in org/group).

服務 編輯

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.
Country Emergency value Displayed text
Canada
United States
I
II
III
IV
V
Level I trauma center
Level II trauma center
Level III trauma center
Level IV trauma center
Level V trauma center
else free-form text
beds
The number of inpatient beds.
speciality
specialty
Where type=Specialist or type=專科, 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 or type=教學, 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 兒科醫院 or 精神科醫院.
Note: This will only be displayed in the infobox when type=Specialist or type=Teaching or type=專科 or type=教學.
helipad
Optional parameter to denote 直升機停機坪 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.

編輯

founded
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 = {{URL|example.com}}   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 [[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 <nowiki>[[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 澳洲, 加拿大, 愛爾蘭, 印度, Kenya, 紐西蘭, 巴基斯坦, 南非, Tanzania, 英國 or 美國.)
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 編輯

If a 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.
{{Infobox hospital
...
| coordinates         = <!-- Use template {{Coord}}. -->
| 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)" -->
...
}}

Embedding other templates 編輯

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

{{醫院明細
| name = 
...
| module = <!-- or 'embedded' or 'nrhp' -->
  {{Infobox ABC
  | embed = yes <!-- or child=yes or subbox=yes-->
  ...
  }}
}}

編輯

The Johns Hopkins Hospital
Johns Hopkins Medicine
Lua error in 模組:Location_map at line 508: 搵唔到所指定嘅位置地圖定義。無論係〈Module:Location map/data/Baltimore〉定〈Template:Location map Baltimore〉都唔存在.
地理
地址美國MarylandBaltimore1800 Orleans Street
座標39°17′51″N 76°35′33″W / 39.29738°N 76.59239°W / 39.29738; -76.59239
架構
醫療系統Nonprofit
醫院類型教學
所屬大學Johns Hopkins University School of Medicine
服務
急症室Level I trauma center
病床1,059
直升機停機坪FAA代碼0MD3 and 17MD
創辦1889
Links
網頁hopkinshospital.org
hopkinsmedicine.org
一覽美國醫院
第啲linksJohns Hopkins Bayview Medical Center
Template:Infobox NRHP
{{醫院明細
| name        = The Johns Hopkins Hospital
| org/group   = [[Johns Hopkins Medicine]]
| logo        = 
| logo_size   = 250
| image       = 
| image_size  = 200
| alt         =
| caption     = Johns Hopkins new clinical building
| map_type    = Baltimore
| map_size    = 250
| map_alt     = A map of Baltimore with a dot showing location of Johns Hopkins Hospital
| map_caption = Location of hospital on map of Baltimore
| coordinates = {{coord|39.29738|-76.59239|region:US-MD|format=dms|display = inline}}
| location    = 1800 Orleans Street
| region      = [[Baltimore]]
| state       = [[Maryland]]
| country     = US
| healthcare  = Nonprofit
| type        = Teaching <!--infobox generates link to [[Teaching hospital]]-->
| affiliation = [[Johns Hopkins School of Medicine|Johns Hopkins University School of Medicine]]
| standards   =
| emergency   = I <!--infobox generates link to [[Level I trauma center]] -->
| helipad     = {{airport codes|||0MD3 {{nobold|and}} 17MD|p=n}}
| beds        = 1,059
| speciality  =
| founded     = 1889
| closed      = <!-- optional -->
| website     = {{URL|hopkinshospital.org}}<br />{{URL|hopkinsmedicine.org}}
| other_links = [[Johns Hopkins Bayview Medical Center]]
| nrhp        =
  {{Infobox NRHP | embed = yes
  | name = Johns Hopkins Hospital Complex
  | image = Johns Hopkins Hospital.jpg
  | caption = Photograph as of September 2012
  | location = 601 North Broadway, [[Baltimore]], Maryland
  | area = {{convert|8|acre|ha|1}}
  | built = 1889
  | architect = Cabot & Chandler; Et al.
  | architecture = Queen Anne
  | governing_body = Private
  | refnum = 75002094
  | added = February 24, 1975
  }}
}}

Microformat 編輯

呢個模產生嘅HTML記號包含咗HCard微格式,可以畀電腦知地點名同位置,可以自動將文分類到啱嘅類。喺HCard度有Geo微格式,可以畀電腦分析經緯度資料,令佢可以喺地圖上搵到,或者下載落全球定位系統(GPS)裝置。想知多啲微格式點用,請睇英文維基Template:UF-hcard-geo

TemplateData 編輯

呢個係用喺呢個模嘅TemplateData解,用喺VisualEditor同埋其它工具度;睇吓呢個模嘅每月錯誤報告

TemplateData for 醫院明細嘅TemplateData

JSON語法錯誤。

Tracking category 編輯

See also 編輯

Subtemplates