用法 编辑

{{{name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|{{{alt}}}]]
{{{caption}}}
[[File:{{{image_map}}}|{{{map_size}}}|alt={{{map_alt}}}|{{{map_alt}}}]]
{{{map_caption}}}
{{{pushpin_label}}}在世界的位置
{{{pushpin_label}}}
{{{pushpin_label}}}
{{{pushpin_map_caption}}}
地址{{{location}}}
坐标0°N 0°E / 0°N 0°E / 0; 0
状态{{{status}}}
安全级别{{{classification}}}
监狱容量{{{capacity}}}
囚犯数量{{{population}}} ({{{populationdate}}})
启用时间{{{opened}}}
关闭时间{{{closed}}}
曾用名{{{former_name}}}
管理机关{{{managed_by}}}
监狱长{{{director}}}
{{{governor-title}}}{{{governor}}}
{{{warden-title}}}{{{warden}}}
驻所检察机关{{{procuratorate}}}
驻所武警部队{{{forces}}}
城市{{{city}}}
地址{{{street-address}}}
{{{state}}}
邮编{{{postcode}}}
国家{{{country}}}
网站{{{website}}}
著名囚犯{{{prisoners}}}
{{{embedded}}}
{{Infobox prison
| name                = 
| image               = 
| image_size          = 
| alt                 = 
| caption             = 
| image_map           = 
| map_size            = 
| map_alt             = 
| map_caption         = 
| pushpin_map         = 
| pushpin_relief      = 
| pushpin_mapsize     = 
| pushpin_map_alt     = 
| pushpin_map_caption = 
| pushpin_label       = 
| map_dot_mark        = 
| location            = 
| coordinates         = 
| status              = 
| classification      = 
| capacity            = 
| population          = 
| population_as_of    = 
| opened              = 
| closed              = 
| former_name         = 
| managed_by          = 
| director            = 
| governor-title      = 
| governor            = 
| warden-title        = 
| warden              = 
| procuratorate       = 
| forces              = 
| street-address      = 
| city                = 
| county              = 
| state               = 
| postcode            = 
| zip                 = 
| country             = 
| website             = 
| prisoners           = 
| jurisdiction           = 
| rationale           = 
| embedded            = 
}}

参数 编辑

Parameter Usage
prison_name Name of the facility
image A photograph of the facility. Use wiki image syntax.
caption To go with the image
location City, state, province, etc.
coordinates Use {{coord|...|display=inline,title}}
status "Operational" or "Closed"
classification Security class, e.g. "Minimum", "Maximum", "Minimum to medium", etc.
capacity Maximum operating capacity of the facility
population Actual inmate population
populationdate Effective date of the "population" figure, above
opened Year or date the facility began operating, Use {{Start date}}
closed Year or date the facility closed
managed_by Company that manages the facility.
director or governor or warden Name of the warden or other individual responsible for day-to-day operations.
prisoners Any notable prisoners. Separate by commas or line breaks.

Example 编辑

California State Prison, Corcoran (CSP-COR)
地址Corcoran, California
坐标36°03′36″N 119°32′56″W / 36.060°N 119.549°W / 36.060; -119.549
状态Operational
安全级别minimum-maximum
监狱容量3,116
囚犯数量5,685 (September 2007)
启用时间1988年 (1988)
管理机关California Department of Corrections and Rehabilitation
监狱长Derral G. Adams, Warden
著名囚犯Juan Corona, Cameron Hooker, Charles Manson
{{Infobox prison
| prison_name    = California State Prison, Corcoran (CSP-COR)
| image          = [[Image:CSP Corcoran.jpg|240px]]
| location       = [[Corcoran, California]]
| coordinates    = {{coord|36.060|-119.549|display=inline,title}} 
| status         = Operational
| classification = minimum-maximum
| capacity       = 3,116
| population     = 5,685
| populationdate = September 2007
| opened         = {{Start date|1988}}
| closed         = 
| managed_by     = [[California Department of Corrections and Rehabilitation]]
| director       = Derral G. Adams, Warden
| prisoners      = [[Juan Corona]], [[Cameron Hooker]], [[Charles Manson]]
}}

Microformat 编辑

本模板产生的HTML记号包含了HCard 微格式,能够让电脑解析地点名称和位置,具有可自动将文章分类至适当类别的功能。在HCard中有Geo微格式,能让电脑分析经纬度资料,因此可在地图上查询,或下载至全球定位系统(GPS)装置。关于微格式的更多使用资讯,请参阅维基百科的微格式专题

hCard 使用以下的 HTML class:

  • adr
  • county-name
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • vcard

Geo由{{coord}}产生,并使用以下的HTML class:

  • geo
  • latitude
  • longtitude

请勿将这些class更名或删除。

当指定经纬度数值时,请避免太过详细。