แม่แบบ:London stations/doc

จากวิกิพีเดีย สารานุกรมเสรี

Syntax[แก้]

Example with high exits[แก้]

{{Infobox London station |               
name = Barking |                  
image = [[Image:barkinglongview.jpg|300px]] | 
caption = Barking station | 
manager = [[c2c]] |               
zone = [[Travelcard Zone 4|4]] |  
locale = [[Barking]] |            
borough = [[London Borough of Barking and Dagenham|London Borough of<br>Barking and Dagenham]] |             
latitude    = 53.089 |                  *optional*
longitude   = -2.437 |                  *optional*
platforms=9 |                     
owner=[[Network Rail]] |             *optional* possible values Network Rail, London Underground (usually not the train operators)
start={{Start date|1854}} |                         *optional, cannot be used with years and events*
years={{Start date|1854}}<br>1902<br>1905<br>1908 | *optional, cannot be used with start*
events=Opened by LT&SR<br>District Line started<br>District withdrawn<br>District Line restarted |  *optional, cannot be used with start*
railexits0405= 4.687 |                *optional, cannot be used with exits* (Stats from National Rail)
 tubeexits04= 9.963 |                    *optional, cannot be used with exits* (Stats from TfL), *will also cause the TubePortal tag to be displayed at the bottom of the infobox*
livedepline=Victoria      |                 *optional*, if used causes link to live departure information page at TfL site to appear at bottom of infobox - enter name of line
livedepstation=KXX       |               *optional* use with livedepline - enter station code
livedepline2=Northern      |                 *optional*, if used causes link to live departure information page at TfL site to appear at bottom of infobox - enter name of line
livedepstation2=KXX       |               *optional* use with livedepline - enter station code
livedepline3=Metropolitan      |                 *optional*, if used causes link to live departure information page at TfL site to appear at bottom of infobox - enter name of line
livedepstation3=KXX       |               *optional* use with livedepline - enter station code
railcode=BKG                          *optional* for stations assigned a National Rail code 
}}

Example with low National Rail exits[แก้]

{{Infobox London station |               
name = Blackhorse Road |                  
image = [[Image:Blackhorse Road station.jpg|300px]] | 
caption = Station building | 
manager = [[London Underground]] |               
zone = [[Travelcard Zone 3|3]] |  
locale = [[Walthamstow]] |            
borough = [[London Borough of Watham Forest|London Borough of Waltham Forest]] |        
latitude = 53.089 |                  *optional*
longitude = -2.437 |                  *optional*
platforms=4 |                     
owner= To be completed |             *optional* possible values Network Rail, London Underground (usually not the train operators)
start={{Start date|1894}} |                         *optional, cannot be used with years and events*
years={{Start date|1894}}<br>1968 |                 *optional, cannot be used with start*
events=National Rail opened<br>Victoria Line started|  *optional, cannot be used with start*
raillowexits0405= 26,143 |            *optional, cannot be used with exits* (Stats from National Rail)
tubeexits05= 5.312 |                    *optional, cannot be used with exits* (Stats from TfL), *will also cause the TubePortal tag to be displayed at the bottom of the infobox*
livedepline=victoria      |                 *optional*, if used causes link to live departure information page at TfL site to appear at bottom of infobox - enter name of line
livedepstation=BHR       |               *optional* use with livedepline - enter station code
railcode=BHO                          *optional* for stations assigned a National Rail code 
}}

Adding the railexits or tubeexits parameter will cause an automatically generated reference to appear. Please make sure the article has a References section.

Sources[แก้]

Microformat[แก้]

button to indicate the presence of a Geo microformat
button to indicate the presence of a Geo microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

hCard uses HTML classes including:

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

Geo is produced by calling {{coord}}, and uses HTML classes hCard uses HTML classes including:

  • "geo"
  • "latitude"
  • "longitude"

Please do not rename or remove these classes.