Template:Infobox MTR/doc

From blackwiki
< Template:Infobox MTR
Revision as of 21:23, 8 July 2016 by imported>SPBesui (Fixed some templatedata labels)
Jump to navigation Jump to search

Template:Wraps infobox

Blank syntax

Template:Parameter names example

Basic parameters

{{Infobox MTR
| enname        = 
| zhname        = 
| image         = 
| caption       = 
| t = | s = | l = | j = | y = | p = | ci = 
| area          = 
| district      = 
| coordinatesN  = 
| coordinatesE  = 
| connections   = 
| structure     = 
| platformno    = 
| platformtype  = 
| tracks        = 
| levels        = 
| owned         = 
| open          = 
| open2         = 
| services      = 
}}

All parameters

{{Infobox MTR
| enname        = 
| zhname        = 
| image         = 
| caption       = 
| t = | s = | l = | j = | y = | p = | ci = 
| line          = 
| line2         = 
| line3         = 
| line4         = 
| lrt_routes    = 
| zone          = 
| code          = 
| area          = 
| district      = 
| coordinatesN  = 
| coordinatesE  = 
| latd          = 
| latm          = 
| lats          = 
| latNS         = 
| longd         = 
| longm         = 
| longs         = 
| longEW        = 
| connections   = 
| structure     = 
| platformno    = 
| platformtype  = 
| tracks        = 
| depth         = 
| levels        = 
| disabled      = 
| former        = 
| owned         = 
| open          = 
| open2         = 
| open3         = 
| open4         = 
| closed        = 
| rebuilt       = 
| electrified   = 
| services      = 
| passengers    = 
| pass_year     = 
}}

Parameters/TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox MTR

Infobox for MTR station articles

Template parameters

ParameterDescriptionTypeStatus
Name in Englishenname

Name of the station or stop in English

Stringrequired
Name in Chinesezhname

Name of the station in Chinese

Stringoptional
Imageimage

Image of the station

Fileoptional
Image sizeimage_size

Size in pixels of the image of the station

Stringoptional
Image captioncaption

Caption to be placed under the image of the station

Stringoptional
Street addressarea

Street address of the station (street name, area; both linked)

Stringoptional
Districtdistrict

District the station is in

Pageoptional
LatitudecoordinatesN

Latitude of the station. The coordinates of the station may be specified with decimal degrees using this field, or specified in degrees/minutes/seconds, using the Latitude (degrees/minutes/seconds/NS) fields.

Numberoptional
LongitudecoordinatesE

Longitude of the station. The coordinates of the station may be specified with decimal degrees using this field, or specified in degrees/minutes/seconds, using the Longitude (degrees/minutes/seconds/EW) fields.

Numberoptional
Latitude (degrees)latd

Latitude (degrees) of the station. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Latitude (minutes/seconds/NS) fields, or with decimal degrees using the coordinatesN field.

Numberoptional
Latitude (minutes)latm

Latitude (minutes) of the station. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Latitude (degrees/seconds/NS) fields, or with decimal degrees using the coordinatesN field.

Numberoptional
Latitude (seconds)lats

Latitude (seconds) of the station. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Latitude (degrees/minutes/NS) fields, or with decimal degrees using the coordinatesN field.

Numberoptional
Latitude (NS)latNS

Latitude (NS) of the station. Use 'N' or 'S'. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Latitude (degrees/minutes/seconds) fields, or with decimal degrees using the coordinatesN field.

Lineoptional
Longitude (degrees)longd

Longitude (degrees) of the station. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Longitude (minutes/seconds/NS) fields, or with decimal degrees using the coordinatesE field.

Numberoptional
Longitude (minutes)longm

Longitude (minutes) of the station. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Longitude (degrees/seconds/NS) fields, or with decimal degrees using the coordinatesE field.

Numberoptional
Longitude (seconds)longs

Longitude (seconds) of the station. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Longitude (degrees/minutes/NS) fields, or with decimal degrees using the coordinatesE field.

Numberoptional
Longitude (EW)longEW

Longitude (EW) of the station. Use 'E' or 'W'. The coordinates of the station may be specified in degrees/minutes/seconds, using this field and the other Latitude (degrees/minutes/seconds) fields, or with decimal degrees using the coordinatesE field.

Lineoptional
Connecting lineline

Line that the station connects to

Stringrequired
Light Rail routeslrt_routes

(Light Rail only) Light Rail lines that the stop connects to

Stringoptional
Second connecting lineline2

Line that the station connects to

Stringoptional
Third connecting lineline3

Line that the station connects to

Stringoptional
Fourth connecting lineline4

Line that the station connects to

Stringoptional
Transport connectionsconnections

Other modes of public transport that the station connects to; if values are other than bus, public light bus, or tram, can have a link to the article about the mode of transport (e.g. [[Peak Tram]])

Stringoptional
Structure typestructure

Structure of the station (at-grade, underground, elevated)

Stringoptional
Platformsplatformno

Number of platforms that the station has

Numberoptional
Type of platformsplatformtype

Type(s) of platform that the station has (island platform(s), side platform(s), split level side platforms)

Stringoptional
Depth of stationdepth

Depth of the station, in metres

Numberoptional
Levelslevels

Number of levels of platforms at the station

Numberoptional
Trackstracks

Number of tracks that the station has; same as platformno unless otherwise specified

Numberoptional
Opening dateopen

Opening date of the station or its first opening date. If more than one opening date, line name(s) in brackets afterward

Stringoptional
Second opening dateopen2

Second opening date. Line name(s) in brackets afterward

Stringoptional
Third opening dateopen3

Third opening date. Line name(s) in brackets afterward

Stringoptional
Fourth opening dateopen4

Fourth opening date. Line name(s) in brackets afterward

Stringoptional
Closing dateclosed

Date station closed, either temporarily or permanently, along with reason for closing (for presently closed stations only)

Stringoptional
Rebuilding daterebuilt

Date station last received a rebuild

Stringoptional
Electrification dateelectrified

Date station was electrified, if not previously at date of opening.

Dateoptional
Accessible? (non-empty if yes)ADA

If any text is placed here a universal symbol for accessible will appear

Lineoptional
MTR station codecode

Three-letter (three-digit integer for Light Rail) station code of the station

Stringoptional
Station ownerowned

Station owner name, with link to article about station owner

Default
[[MTR Corporation]]
Pageoptional
Fare zonezone

(Light Rail only) Fare zone the station is in (1, 2, 3, 4, 5A, 5)

Stringoptional
Former namesformer

Former station name(s)

Stringoptional
Passenger trafficpassengers

Number of passengers using the station. In the reference, please make it clear if this figure is per day, per year, etc.

Stringoptional
Service rail/line templatesservices

Allows inclusion of the {{s-rail}}/{{s-line}} boxes

Stringoptional

Most of these are the same as {{Infobox station}} parameters.

Notes

  • services – {{s-rail|title=HK-MTR}} is automatically added at beginning.
  • line, line2, line3, line4 – must be valid values of {{HK-MTR icon}}.
  • open, open2, open3, open4 – dates must be wrapped in {{start-date}}.
  • The colour of the header and section headers is defined using Module:HK-MTR stations, or a custom style page if necessary.

Examples

Infobox of Fortress Hill Station, which transcludes {{Infobox station}} and invokes Module:HK-MTR stations {{Template:PAGENAMETDOC | enname = Fortress Hill | zhname = 炮台山 | image = Fortress Hill Station 2014 04 part1.JPG | caption = Platform 1 | l = Mount Battery| p = Pàotáishān| j = paau3 toi4 saan1| y = paau3 toi4 saan1 | area = King's Road, Fortress Hill | district = Eastern District | latd = 22 | latm = 17 | lats = 17 | longd = 114 | longm = 11 | longs = 37 | connections = Bus, public light bus, tram | structure = Underground | platformno = 2 | platformtype = island platform | levels = 1 | open = Template:Start-date | services = Template:S-line }}

{{Infobox MTR
| enname        = Fortress Hill
| zhname        = 炮台山
| image         = Fortress Hill Station 2014 04 part1.JPG
| caption       = Platform 1
| l = Mount Battery| p = Pàotáishān| j = paau3 toi4 saan1| y = paau3 toi4 saan1
| area          = [[King's Road, Hong Kong|King's Road]], [[Fortress Hill]]
| district      = [[Eastern District, Hong Kong|Eastern District]]
| latd          = 22
| latm          = 17
| lats          = 17
| longd         = 114
| longm         = 11
| longs         = 37
| connections   = Bus, public light bus, tram
| structure     = Underground
| platformno    = 2
| platformtype  = island platform
| levels        = 1
| open          = {{start-date|31 May 1985}}
| services      = {{s-line|system=HK-MTR|line=Island|previous=Tin Hau|next=North Point}}
}}

See also