跳转到内容

Template:Infobox station2/doc

本页使用了标题或全文手工转换
维基百科,自由的百科全书

本模板照搬自当前英维Infobox station模板。当前中维Infobox station模板已与英维模板差异过大,但考虑到其链入量过大,进行大幅改动则会“牵一发而动全身”,故不宜再一一对照英维更新。

Usage

[编辑]
{{{name}}}

{{{native_name}}}
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}|{{{alt}}}]]
{{{caption}}}
基本信息
其他名称{{{other_name}}}
位置{{{country}}}
{{{borough}}}
{{{address}}}
坐标0°N 0°E / 0°N 0°E / 0; 0
{{{grid_name}}}{{{grid_position}}}
海拔{{{elevation}}}
所属系统{{{system}}}
所属机构{{{owned}}}
运营机构{{{operator}}}
管理机构{{{manager}}}
交通局{{{transit_authority}}}
线路{{{line}}}
距离{{{distance}}}
站台{{{platforms}}}
股道{{{tracks}}}
铁路运营商{{{train_operators}}}
有轨电车线路{{{tram_routes}}}
有轨电车运营商{{{tram_operators}}}
公共汽车线路{{{bus_routes}}}
公共汽车站牌数量{{{bus_stands}}}
公共汽车运营商{{{bus_operators}}}
换乘交通{{{connections}}}
车站构造
站体类型{{{structure}}}
深度{{{depth}}}
站台层数{{{levels}}}
停车设施{{{parking}}}
自行车停放设施{{{bicycle}}}
无障碍车站{{{accessible}}}
建筑设计{{{architect}}}
建筑风格{{{architectural_style}}}
其他信息
状态{{{status}}}
车站编号{{{code}}}
IATA代码{{{iata}}}
收费区{{{zone}}}
等级{{{classification}}}
网站{{{website}}}
历史
启用日期{{{opened}}}
预计启用日期{{{opening}}}
关闭日期{{{closed}}}
重建日期{{{rebuilt}}}
电气化{{{electrified}}}
旧城{{{former}}}
原先所属机构{{{original}}}
合并前所属机构{{{pregroup}}}
合并后所属机构{{{postgroup}}}
国有化前所属机构{{{prenational}}}
重要事件
{{{years}}}{{{events}}}
{{{years1}}}{{{events1}}}
{{{years11}}}{{{events11}}}
{{{years12}}}{{{events12}}}
营运信息
乘客數量
({{{pass_year}}})
{{{passengers}}}  0% ({{{pass_system}}})
排行{{{pass_rank}}}
{{{mpassengers}}}
服务
    {{{services}}}    
{{{other_services_header}}}
    {{{other_services}}}    
{{{other_services2_header}}}
    {{{other_services2}}}    
{{{embedded}}}
{{{nrhp}}}
站线配置图
{{{route_map}}}
位置
地图
注释
{{{footnotes}}}

Railway stations

[编辑]
{{Infobox station2
| name                = 
| name_lang           = 
| native_name         = 
| native_name_lang    = 
| symbol              = 
| symbol_location     = 
| image               = 
| image_upright       =
| alt                 = 
| caption             = 
| other_name          = 
| address             = 
| borough             = 
| country             = 
| coordinates         = <!-- {{coord|latitude|N/S|longitude|E/W|display=inline,title}} -->
| grid_name           = 
| grid_position       = 
| elevation           = 
| system              = 
| owned               = 
| operator            = 
| manager             = 
| transit_authority   = 
| line                = 
| distance            = 
| platforms           = 
| tracks              = 
| train_operators     = 
| connections         = 
| structure           = 
| depth               = 
| levels              = 
| parking             = 
| bicycle             = 
| accessible          = 
| architect           = 
| architectural_style = 
| status              = 
| code                = 
| iata                = 
| zone                = 
| classification      = 
| website             = 
| opened              = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| opening             = 
| closed              = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| rebuilt             = 
| electrified         = 
| former              = 
| original            = 
| pregroup            = 
| postgroup           = 
| prenational         = 
| years               = 
| events              = 
| passengers          = 
| pass_system         = 
| pass_year           = 
| pass_percent        = 
| pass_rank           = 
| services            = 
| other_services      = 
| other_services_collapsible = 
| other_services_header = 
| other_services2     = 
| other_services2_collapsible = 
| other_services2_header = 
| footnotes           = 
| mapframe            = yes
| mapframe-zoom = 12
| mapframe-marker = rail
}}

Bus stations

[编辑]
{{Infobox station2
| name                = 
| name_lang           = 
| native_name         = 
| native_name_lang    = 
| symbol              = 
| symbol_location     = 
| image               = 
| image_upright       =
| alt                 = 
| caption             = 
| other_name          = 
| address             = 
| borough             = 
| country             = 
| coordinates         = <!-- {{coord|latitude|N/S|longitude|E/W|display=inline,title}} -->
| grid_name           = 
| grid_position       = 
| elevation           = 
| system              = 
| owned               = 
| operator            = 
| manager             = 
| transit_authority   = 
| line                = 
| distance            = 
| bus_routes          = 
| bus_stands          = 
| bus_operators       = 
| connections         = 
| structure           = 
| depth               = 
| levels              = 
| parking             = 
| bicycle             = 
| accessible          = 
| architect           = 
| architectural_style = 
| status              = 
| code                = 
| iata                = 
| zone                = 
| classification      = 
| website             = 
| opened              = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| opening             = 
| closed              = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| rebuilt             = 
| former              = 
| original            = 
| pregroup            = 
| postgroup           = 
| prenational         = 
| years               = 
| events              = 
| passengers          = 
| pass_system         = 
| pass_year           = 
| pass_percent        = 
| pass_rank           = 
| services            = 
| other_services      = 
| other_services_collapsible = 
| other_services_header = 
| other_services2     = 
| other_services2_collapsible = 
| other_services2_header = 
| footnotes           = 
| mapframe            = yes
| mapframe-zoom = 12
| mapframe-marker = bus
}}

Parameters

[编辑]

Descriptions

[编辑]

Name

[编辑]
name
name
name_lang
ISO 639-1 code or IETF language tag (for name); e.g. fr for French.
native_name
name in local language. If more than one, separate using {{Plain list}}
native_name_lang
ISO 639-1 code or IETF language tag (for native_name); e.g. fr for French. If more than one, use {{lang}} instead
other_name
current alternative name(s)
custom_header
custom header
mlanguage
insert a language module, e.g. {{Infobox Korean name}}. For best display results, set |child=yes.

Station symbols

[编辑]
symbol
Symbol reference of the primary operator or network; second parameter of {{Rail-interchange}}
symbol_location
The code of location of the station; first parameter of {{Rail-interchange}}
symboln
Symbol reference of a secondary operator or network; second parameter of {{Rail-interchange}} (symboln from 2 to 6)
symbol_locationn
The code of location of the station; first parameter of {{Rail-interchange}}. Not needed if identical to symbol_location (symbol_locationn from 2 to 6)

Overview

[编辑]
style
Refers to an external 'style' template (see external style template for details). Leave blank if you do not have this.
image
Image of the station
image_upright
Adjust the size of the image as a ratio
alt
Image alt text; see WP:ALT
caption
Caption to be placed under the image of the station
address
Street address of the station
borough
Country administrative subdivisions. This entry must end with the name of a state or other subdivision that has an assigned ISO 3166-2 code.
country
Country; this is displayed inline and used with {{coord}} when present. Must be in a format recognized by {{ISO 3166 code}}.
coordinates
Geographic coordinates. Use {{coord}} with display=inline,title; for example: {{coord|dd|mm|ss|N/S|dd|mm|ss|E/W|display=inline,title}}. (See the {{Coord}} documentation for more information.) type:railwaystation is automatically added, unless a different type is specified in the optional unnamed parameter after the coordinate values.
grid_name
Name of regional grid
grid_position
Position on regional grid (typically using a regional grid template)
elevation
MSL elevation
system
System(s) the station serves, such as SEPTA Regional Rail or Metrolink
owned
Station owner name
operator
Station operator name, if different from manager
manager
Station manager name, if different from operator
transit_authority
Local transit authority
line
List of lines (physical infrastructure) that the station is on. Use {{Plainlist}}. Named services should go below. Alias is lines.
distance
The distance from a set point on the line, to this station
platforms
Information on the type of platform(s) at the station, alias is platform.
tracks
Number of tracks at the station
train_operators
List of train operating companies (TOCs) that serve the station. Use {{Plainlist}}
tram_routes
tram routes serving the station
tram_operators
tram operators serving the station
bus_routes
number of bus routes serving the station
bus_stands
number of bus stands at the station
bus_operators
bus operators serving the station
connections
Connecting services that serve the station such as bus

Construction

[编辑]
structure
Type of station structure (underground, at-grade, or elevated)
depth
The depth of the primary platform below ground level
levels
Number of levels of platforms at the station (use only if more than one exists; mezzanine/entrance levels are not included)
parking
Information on station's parking facilities
bicycle
Information on station's bicycle facilities
accessible
Whether the station is accessible to all, e.g. an elevator to platforms
architect
Architect of the station
architectural_style
Architectural style, e.g. Baroque

Other information

[编辑]
status
Generic station status field, e.g. Unstaffed
code
Agency station code (used on tickets/reservations, etc.)
iata
IATA railway station code
zone
Fare zone station is located in
classification
Station national classification
website
Web address of the station; use {{URL}}
footnotes
General footnotes

History

[编辑]
opened
Date station originally opened
opening
Date station will be opening, if not open yet
closed
Date station closed, either temporarily or permanently, along with reason for closing (for presently closed stations only)
rebuilt
Date station last received a rebuild
electrified
Date station was electrified, if not previously at date of opening
former
Previous station name(s)
original
Original company name
pregroup
For UK stations: pre-grouping company name (before 1922 for Great Western Railway group, before 1923 for other groups)
postgroup
For UK stations: post-grouping company name (period 1922/1923 to 1947)
prenational
Pre-nationalisation for non-UK stations
years
Date or year of an event (continue with yearsn from 1 to 12)
events
Event that occurred on that date (continue with eventsn from 1 to 12)

Traffic

[编辑]
passengers
Number of passengers using the station. In the reference, please make it clear if this figure is per day, per year, etc.
pass_system
System the passengers are using
pass_year
Year passenger information was gathered
pass_percent
Percentage increase or decrease in usage
pass_rank
Rank by passenger traffic of the station compared to total number of stations within the system, e.g. 115 out of 421
mpassengers
Allows display of multiple passenger totals using {{Rail pass box}}

Services

[编辑]
services
Allows inclusion of the Template:Adjacent stations boxes for named services.
services_collapsible
If set to 1, yes or collapsible, makes the boxes hidden (by default) in a dropdown and adds a show/hide button to the Services header

Other services

[编辑]
other_services
Allows inclusion of the Template:Adjacent stations boxes for additional services. Goes up to other_services2.
other_services_collapsible
If set to 1, yes or collapsible, makes the boxes hidden (by default) in a dropdown and adds a show/hide button to the Services header. Goes up to other_services2_collapsible.
other_services_header
Set the header of this section (defaults to Other services). Goes up to other_services2_header.

Location

[编辑]
map_type, map_overlay, AlternativeMap, map_alt, map_caption, map_size, map_dot_label, map_label_position
Allows inclusion of an image of the station location on a map (see map and coordinates for details)
route_map
Allows inclusion of route diagram
map_state
Determines route map state ("expanded" or "collapsed").

Map and coordinates

[编辑]
  • The location map uses the value of the |coordinates= parameter. It was previously necessary to use individual parameters for latitude and longitude, but the format was obsoleted by an RfC in August 2016 (see Help:Coordinates in infoboxes).
  • The ISO 3166-1 alpha-2 or ISO 3166-2 region code can often be determined automatically, based on the country= and borough= parameters. This can be overridden by specifying region:XX or region:XX-ABC in the unnamed parameter after the coordinate values.
{{Infobox station
...
| coordinates         = <!-- {{Coord}} template -->
| map_type            = <!-- Location from Location map. -->
| map_overlay         = <!-- Overlay image file name, to be placed on top of the main map. Should have the same border coordinates. -->
| AlternativeMap      = <!-- Alternative map file name (changes background map, border coordinates are determined based on the map name); this is only recommended for use in templates. -->
| map_alt             = <!-- Alternative text for map image, see [[WP:ALT]] -->
| map_caption         = <!-- Map caption; for no caption leave it blank; if the parameter is omitted then the caption will be "Marker text (location map name)" -->
| map_size            = <!-- Width of map -->
| map_dot_label       = <!-- Text to be displayed next to dot on map image -->
| map_label_position  = <!-- Override automatic label positioning; valid values are left, right, top, bottom, or none -->
...
}}

Mapframes

[编辑]

This template supports mapframes. Parameter instructions:

  • 基本参数:
    • mapframe — 指定yesno以显示或隐藏地图,覆盖默认值。默认:no
    • mapframe-caption — 地图说明。默认: 空白(或如果设置了|mapframe-geomask=,则:“在<遮罩标签>的位置”)
    • mapframe-custom — 使用自定义地图代替自动地图框架。请使用{{maplink}}模板(或其他可生成地图框架的模板)或图像文件名称。如果使用,后续的mapframe参数将被忽略。默认:未指定
    • mapframe-ididqid — 要使用的维基数据项QID。默认:当前页面对应数据项
    • mapframe-coordinatesmapframe-coordcoordinatescoord — 指定的坐标,而不是维基数据上的坐标。使用{{Coord}}模板,例如:|coord={{Coord|12.34|N|56.78}}默认:来自维基数据的坐标
    • mapframe-wikidata — 当设置了|coord=时,设为yes以显示维基数据中的面/线特征(如果有)。默认: 未指定
  • 自定义显示哪些特征:
    • mapframe-point — 设为none时关闭点标记的显示。设为on时强制显示点标记。默认: 未指定
    • mapframe-line — 设为none时关闭线特征的显示。默认: 未指定
    • mapframe-shape — 设为none时关闭面特征的显示。设为inverse时使用反转形状(geomask)代替常规形状。默认: 未指定
    • mapframe-geomask — 用作遮罩的维基数据项(遮罩边界外的区域变暗)。可以是特定的维基数据项(QID),或数据项的属性(例如,P17表示国家 (P17)P131表示所在行政领土实体 (P131))。默认:automatically determined by the 隶属于 (P31) value on Wikidata, if available
    • mapframe-switcher — 设置为autogeomaskszooms,以启用切换多个地图框架的功能(以Template:Switcher的风格)。默认: 未指定
      • auto — 以维基数据项的位置 (P276)所在行政领土实体 (P131)声称为遮罩进行切换,递归搜索。例如,数据项的城市、该城市的州以及该州的国家。
      • geomasks — 在mapframe-geomask参数中的维基数据项(QID)列表(以逗号分隔)指定的遮罩之间切换。
      • zooms — 在“zoomed in”/“zoomed midway”/“zoomed out”之间切换,其中“zoomed in”为默认缩放(最小值为3),“zoomed out”为1,而“zoomed midway”为平均值。
  • 其他可选参数:
    • mapframe-frame-widthmapframe-width — 框架宽度。默认:270
    • mapframe-frame-heightmapframe-height — 框架高度。默认:200
    • mapframe-shape-fill — 面特征的填充颜色。默认:#606060
    • mapframe-shape-fill-opacity — 面特征填充的不透明度,数值介于0和1之间。默认:0.5
    • mapframe-stroke-colormapframe-stroke-colour — 线特征、面特征轮廓的颜色。默认:#ff0000
    • mapframe-stroke-width — 线特征、面特征轮廓的粗细。默认:5
    • mapframe-marker — 用于坐标点标记的符号;具体选项参见mw:Help:Extension:Kartographer/Icons默认:automatically determined by the 隶属于 (P31) value on Wikidata, if available
      • 也可以设置为blank以覆盖默认标记符号。
    • mapframe-marker-colormapframe-marker-colour — 点标记的背景颜色。默认:#5E74F3
    • mapframe-geomask-stroke-colormapframe-geomask-stroke-colour — 遮罩轮廓的颜色。默认:#555555
    • mapframe-geomask-stroke-width — 遮罩轮廓的粗细。默认:2
    • mapframe-geomask-fill — 遮罩外部区域的填充颜色。默认:#606060
    • mapframe-geomask-fill-opacity — 遮罩外部区域填充的不透明度,数值介于0和1之间。默认:0.5
    • mapframe-zoom — 设置缩放级别,从“1”(全球地图)到 “18”(最大级别),用于无法根据对象长度或面积自动确定缩放级别的情况。默认:10
    • mapframe-length_kmmapframe-length_mimapframe-area_km2mapframe-area_mi2 — 通过输入对象的长度(以公里或英里为单位)或面积(以平方公里或平方英里为单位)来确定缩放级别。默认:未指定
    • mapframe-frame-coordinatesmapframe-frame-coord — 地图初始位置的备用坐标,使用使用{{coord}}模板。默认:衍生自项目坐标

External style template

[编辑]

An external style template may be used to allow the modification of display parameters. This can be the same template that is used in conjunction with Template:S-line, but may be a different template. The |style= parameter is used to specify the name of the template where the styling is defined; the template's name must end with the word "style", but this word must be omitted from the |style= parameter. For example, |style=DB-IC will use the {{DB-IC style}} template.

Parameter Description
name_format Formatting the station name in Infobox station
thcolor Font color for table headings in Infobox station
thbgcolor Background color for table headings in Infobox station

For systems which have an Adjacent stations module defined the |style2= parameter may be used to specify a sub-style within that system. For example, |style2=Amtrak old used with |style=Amtrak will return the pre-Acela Amtrak heritage colors from Module:Adjacent stations/Amtrak.

Embedding other infoboxes

[编辑]

The |embedded= or |nrhp= parameters can be used to embed another infobox with such capability like {{infobox designation list}} and {{infobox NRHP}}.

Old parameters

[编辑]

Obsolete / Unsupported

[编辑]

The following parameters have been obsoleted and will no longer function:

  • baggage_check – Whether bags can be checked
  • facilities – generic facilities parameter; use more specific parameters where possible
  • gates – Type (or presence) of ticket barriers/ gates
  • image_size – Size in pixels of the image of the station
  • local_authority – Local authority or council covering the station
  • map
  • map dot label
  • Melway
  • pte
  • reopened
  • reopening
  • smartcardname – name of any smartcard(s) that are or will be available at the station
  • smartcardstatus – "Yes" if smart card is available, or a date (or other information) if available in the future (see Union (TTC) for an example)
  • station_type
  • travelcentre – Whether there is a travel advice centre
  • iso_region

Deprecated

[编辑]

The following parameters are deprecated and may be removed in the future:

  • ADA – If any text is placed here a universal symbol for accessibility will appear
  • map_image – Allows inclusion of an image of the station location on a map (only use when a mapframe or a location map is not appropriate).

Examples

[编辑]

This first example shows the infobox of Sinanju Station with the Korean names:

Sinanju Ch'ŏngnyŏn Station
韓文名稱
諺文신안주청년역
汉字
文观部式Sinanju-cheongnyeonyeok
马-赖式Sinanju-ch'ŏngnyŏnyŏk
基本信息
位置North Korea
Anju, South Pyongan Province
线路P'yŏngŭi Line
Kaech'ŏn Line
{{Infobox station 
| name          = Sinanju Ch'ŏngnyŏn Station
| mlanguage     = {{Infobox Korean name|child=yes
  | hangul        = 신안주청년역
  | hanja         = {{linktext||||||}}
  | mr            = Sinanju-ch'ŏngnyŏnyŏk
  | rr            = Sinanju-cheongnyeonyeok
}}
| image         = Sinanju Chongnyon Station.jpg
| caption       = 
| borough       = [[Anju, South Pyongan|Anju]], [[South Pyongan Province]]
| country       = North Korea
| coordinates   = 
| line          = [[Pyongui Line|P'yŏngŭi Line]]<br />[[Kaechon Line|Kaech'ŏn Line]]
}}

This second example from the Paso Robles station article uses {{Adjacent stations}} in the |services= parameter, and the external style template:

Paso Robles, CA
Paso Robles train station in 2012
基本信息
位置800 Pine Street
Paso Robles, California 93446
坐标35°37′22″N 120°41′16″W / 35.6227°N 120.6878°W / 35.6227; -120.6878
所属机构City of Paso Robles
线路Coast Line
站台1 side platform
股道1
换乘交通Amtrak Thruway Motorcoach, RTA Route 9, Paso Express, MST Route 83, Orange Belt Stages
其他信息
车站编号PRB
历史
原先所属机构Southern Pacific
营运信息
乘客數量
(2015)
12,149  0.69% (Amtrak)
服务
上一站 美铁 下一站
Salinas 海岸星光號 聖路易斯-奧比斯保
Former services
Module:Adjacent_stations第206行Lua错误:attempt to index field '?' (a nil value)
位置
地图
{{Infobox station
 | style          = Amtrak
 | name           = Paso Robles, CA
 | image          = Paso Robles Train Station.jpg
 | caption        = Paso Robles train station in 2012
 | address        = 800 Pine Street<br />[[Paso Robles, California]] 93446
 | coordinates    = {{coord|35.6227|-120.6878|region:US-CA|display=inline}}
 | mapframe       = yes
 | mapframe-zoom  = 14
 | line           = [[Coast Line (UP)|Coast Line]]<!-- the physical "line" is not the same as "services" which are detailed below -->
 | connections    = [[Amtrak Thruway Motorcoach]], [[San Luis Obispo Regional Transit Authority|RTA]] Route 9, [[List of small Southern California transit agencies#Paso Express|Paso Express]], [[Monterey Salinas Transit|MST]] Route 83, [[Orange Belt Stages]]
 | platform       = 1 [[side platform]]
 | tracks         = 1
 | passengers     = 12,149
 | pass_year      = 2015
 | pass_percent   = 0.69
 | pass_system    = Amtrak
 | original       = [[Southern Pacific]]
 | code           = PRB
 | owned          = City of Paso Robles 
 | services       = {{Adjacent stations|system=Amtrak|line=Coast Starlight|left=Salinas|right=San Luis Obispo|to-left=Seattle|to-right=Los Angeles}}
 | other_services_header = Former services
 | other_services_collapsible = yes
 | other_services = {{Adjacent stations|system1=Southern Pacific Railroad|line1=Coast Line|left1=Wellsona|right1=Atscadero}}
}}

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更名或删除。

當指定經緯度數值時,請避免太過詳細。

Tracking categories

[编辑]

TemplateData

[编辑]

Subtemplates

[编辑]

See also

[编辑]