Difference between revisions of "Template:Infobox MTR/doc"

From blackwiki
Jump to navigation Jump to search
imported>SPBesui
m (Fixed some templatedata labels)
imported>Jc86035
(Redirected page to Template:Infobox station/doc)
 
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:Infobox station/doc]]
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{Wraps infobox|Infobox station}}
 
 
 
== Blank syntax ==
 
{{Parameter names example|_template=|enname|zhname|type|line|style2|image|image_upright|caption|t|s|l|j|y|p|ci|poj|area|district|coordinatesN|coordinatesE|latd|latm|lats|latNS|longd|longm|longs|longEW|closed|module_lines|lrt_routes|line2|line3|line4|connections|structure|platformno|platformtype|depth|levels|tracks|open|open2|open3|open4|rebuilt|electrified|disabled|ADA|code|owned|operator|zone|former|passengers|pass_year|pass_percent|services}}
 
 
 
===Basic parameters===
 
<pre style="overflow: auto;">{{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      =
 
}}</pre>
 
 
 
===All parameters===
 
<pre style="overflow: auto;">{{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    =
 
}}</pre>
 
 
 
==Parameters/TemplateData==
 
{{TemplateData header}}
 
<templatedata>
 
{
 
"description": "Infobox for MTR station articles",
 
"params": {
 
"enname": {
 
"label": "Name in English",
 
"description": "Name of the station or stop in English",
 
"type": "string",
 
"required": true
 
},
 
"zhname": {
 
"label": "Name in Chinese",
 
"description": "Name of the station in Chinese",
 
"type": "string"
 
},
 
"image": {
 
"label": "Image",
 
"description": "Image of the station",
 
"type": "wiki-file-name"
 
},
 
"image_size": {
 
"label": "Image size",
 
"description": "Size in pixels of the image of the station",
 
"type": "string"
 
},
 
"caption": {
 
"label": "Image caption",
 
"description": "Caption to be placed under the image of the station",
 
"type": "string"
 
},
 
"area": {
 
"label": "Street address",
 
"description": "Street address of the station (street name, area; both linked)",
 
"type": "string"
 
},
 
"district": {
 
"label": "District",
 
"description": "District the station is in",
 
"type": "wiki-page-name"
 
},
 
"coordinatesN": {
 
"label": "Latitude",
 
"description": "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.",
 
"type": "number"
 
},
 
"coordinatesE": {
 
"label": "Longitude",
 
"description": "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.",
 
"type": "number"
 
},
 
"latd": {
 
"type": "number",
 
"label": "Latitude (degrees)",
 
"description": "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."
 
},
 
"latm": {
 
"type": "number",
 
"label": "Latitude (minutes)",
 
"description": "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."
 
},
 
"lats": {
 
"type": "number",
 
"label": "Latitude (seconds)",
 
"description": "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."
 
},
 
"latNS": {
 
"type": "string/line",
 
"label": "Latitude (NS)",
 
"description": "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."
 
},
 
"longd": {
 
"type": "number",
 
"label": "Longitude (degrees)",
 
"description": "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."
 
},
 
"longm": {
 
"type": "number",
 
"description": "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.",
 
"label": "Longitude (minutes)"
 
},
 
"longs": {
 
"type": "number",
 
"description": "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.",
 
"label": "Longitude (seconds)"
 
},
 
"longEW": {
 
"type": "string/line",
 
"description": "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.",
 
"label": "Longitude (EW)"
 
},
 
"line": {
 
"label": "Connecting line",
 
"description": "Line that the station connects to",
 
"type": "string",
 
"required": true
 
},
 
"lrt_routes": {
 
"label": "Light Rail routes",
 
"description": "(Light Rail only) Light Rail lines that the stop connects to",
 
"type": "string"
 
},
 
"line2": {
 
"label": "Second connecting line",
 
"description": "Line that the station connects to",
 
"type": "string"
 
},
 
"line3": {
 
"label": "Third connecting line",
 
"description": "Line that the station connects to",
 
"type": "string"
 
},
 
"line4": {
 
"label": "Fourth connecting line",
 
"description": "Line that the station connects to",
 
"type": "string"
 
},
 
"connections": {
 
"label": "Transport connections",
 
"description": "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]])",
 
"type": "string"
 
},
 
"structure": {
 
"label": "Structure type",
 
"description": "Structure of the station (at-grade, underground, elevated)",
 
"type": "string"
 
},
 
"platformno": {
 
"label": "Platforms",
 
"description": "Number of platforms that the station has",
 
"type": "number"
 
},
 
"platformtype": {
 
"label": "Type of platforms",
 
"description": "Type(s) of platform that the station has (island platform(s), side platform(s), split level side platforms)",
 
"type": "string"
 
},
 
"depth": {
 
"label": "Depth of station",
 
"description": "Depth of the station, in metres",
 
"type": "number"
 
},
 
"levels": {
 
"label": "Levels",
 
"description": "Number of levels of platforms at the station",
 
"type": "number"
 
},
 
"tracks": {
 
"label": "Tracks",
 
"description": "Number of tracks that the station has; same as platformno unless otherwise specified",
 
"type": "number"
 
},
 
"open": {
 
"label": "Opening date",
 
"description": "Opening date of the station or its first opening date. If more than one opening date, line name(s) in brackets afterward",
 
"type": "string"
 
},
 
"open2": {
 
"label": "Second opening date",
 
"description": "Second opening date. Line name(s) in brackets afterward",
 
"type": "string"
 
},
 
"open3": {
 
"label": "Third opening date",
 
"description": "Third opening date. Line name(s) in brackets afterward",
 
"type": "string"
 
},
 
"open4": {
 
"label": "Fourth opening date",
 
"description": "Fourth opening date. Line name(s) in brackets afterward",
 
"type": "string"
 
},
 
"closed": {
 
"label": "Closing date",
 
"description": "Date station closed, either temporarily or permanently, along with reason for closing (for presently closed stations only)",
 
"type": "string"
 
},
 
"rebuilt": {
 
"label": "Rebuilding date",
 
"description": "Date station last received a rebuild",
 
"type": "string"
 
},
 
"electrified": {
 
"label": "Electrification date",
 
"description": "Date station was electrified, if not previously at date of opening.",
 
"type": "date"
 
},
 
"ADA": {
 
"label": "Accessible? (non-empty if yes)",
 
"description": "If any text is placed here a universal symbol for accessible will appear",
 
"type": "line"
 
},
 
"code": {
 
"label": "MTR station code",
 
"description": "Three-letter (three-digit integer for Light Rail) station code of the station",
 
"type": "string"
 
},
 
"owned": {
 
"label": "Station owner",
 
"description": "Station owner name, with link to article about station owner",
 
"type": "wiki-page-name",
 
"default": "[[MTR Corporation]]"
 
},
 
"zone": {
 
"label": "Fare zone",
 
"description": "(Light Rail only) Fare zone the station is in (1, 2, 3, 4, 5A, 5)",
 
"type": "string"
 
},
 
"former": {
 
"label": "Former names",
 
"description": "Former station name(s)",
 
"type": "string"
 
},
 
"passengers": {
 
"label": "Passenger traffic",
 
"description": "Number of passengers using the station. In the reference, please make it clear if this figure is per day, per year, etc.",
 
"type": "string"
 
},
 
"services": {
 
"label": "Service rail/line templates",
 
"description": "Allows inclusion of the {{s-rail}}/{{s-line}} boxes",
 
"type": "string"
 
}
 
}
 
}
 
</templatedata>
 
 
 
Most of these are the same as {{tl|Infobox station}} parameters.
 
 
 
===Notes===
 
*services – <code><nowiki>{{s-rail|title=HK-MTR}}</nowiki></code> is automatically added at beginning.
 
*line, line2, line3, line4 – must be valid values of {{tl|HK-MTR icon}}.
 
*open, open2, open3, open4 – dates must be wrapped in {{tl|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 {{tl|Infobox station}} and invokes [[Module:HK-MTR stations]]
 
{{{{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, 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}}
 
}}
 
<pre style="overflow:auto">
 
{{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}}
 
}}
 
</pre>
 
 
 
== See also ==
 
* {{tl|Infobox station}}
 
* {{tl|Infobox MTR station}}
 
 
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Railway station infobox templates|MTR]]
 
[[Category:MTR templates]]
 
[[Category:Templates calling Infobox station]]
 
[[Category:Templates with coordinates fields]]
 
}}</includeonly>
 

Latest revision as of 08:11, 18 August 2016