Difference between revisions of "Template:Infobox GB station/doc"

From blackwiki
Jump to navigation Jump to search
imported>Redrose64
(|imagesize= is now only used for Huddersfield which has a very wide image)
imported>Jonesey95
(→‎Optional fields: these links are gone, per talk page discussion)
Line 89: Line 89:
 
| dft_category = B
 
| dft_category = B
 
</pre>
 
</pre>
 
Note: if you enter a station code, the template will automatically link to National Rail Enquiries Live Departure Board.
 
  
 
If 'dft_category' is specified and is a valid category, then the appropriate subcategory of [[:Category:Railway stations by Department for Transport category]] will be automatically set.
 
If 'dft_category' is specified and is a valid category, then the appropriate subcategory of [[:Category:Railway stations by Department for Transport category]] will be automatically set.

Revision as of 16:00, 23 October 2020

Scope

Template:Parameter names example

This template is intended for currently-open stations within Great Britain but outside the London area.

Data sources

Syntax

{{Infobox GB station                     
 | name        = Crewe                   
 | manager     = [[Virgin Trains]]       
 | locale      = [[Crewe]]               
 | borough     = [[Crewe and Nantwich]]  
 | platforms   = 12                      
 }}

In each case, use a wikilink, piped where necessary in order to hide text like "Metropolitan Borough of ", " (district)", etc. Examples:

  • |borough=[[Rutland]]
  • |borough=[[Bedford Borough|Bedford]]
  • |borough=[[Epping Forest District|Epping Forest]]
  • |borough=[[Highland (council area)|Highland]]
  • |borough=[[Bridgend County Borough|Bridgend]]

Optional fields

| image_name  = Crewe station platform12.jpg

The longer dimension of the image is automatically set to 265px unless |imagesize= is specified. For a consistent appearance, |imagesize= should be omitted for upright images and also when the width/height ratio is less than 2.65:1. For images whose width/height ratio is between 2.65:1 and 3:1, set |imagesize=x100px; for images whose width/height ratio exceeds 3:1, set |imagesize=300px.

| caption      = Crewe
| owner        = [[Network Rail]]
| code         = CRE
| symbol       = rail
| dft_category = B

If 'dft_category' is specified and is a valid category, then the appropriate subcategory of Category:Railway stations by Department for Transport category will be automatically set.

| usage0203   = 0.764
| usage0405   = 0.764
| usage0506   = 0.764
| usage0607   = 0.764
| usage0708   = 0.764
| usage0809   = 0.764
| usage0910   = 0.764
| usage1011   = 0.764
| usage1112   = 0.764
| usage1213   = 0.764
| usage1314   = 0.764
| usage1415   = 0.764
| lowusage0203= 5,250
| lowusage0405= 5,250
| lowusage0506= 5,250
| lowusage0607= 5,250
| lowusage0708= 5,250
| lowusage0809= 5,250
| lowusage0910= 5,250
| lowusage1011= 5,250
| lowusage1112= 5,250
| lowusage1213= 5,250
| lowusage1314= 5,250
| lowusage1415= 5,250
| int0203   = 0.764
| int0405   = 0.764
| int0506   = 0.764
| int0607   = 0.764
| int0708   = 0.764
| int0809   = 0.764
| int0910   = 0.764
| int1011   = 0.764
| int1112   = 0.764
| int1213   = 0.764
| int1314   = 0.764
| int1415   = 0.764
| lowint0203= 5,250
| lowint0405= 5,250
| lowint0506= 5,250
| lowint0607= 5,250
| lowint0708= 5,250
| lowint0809= 5,250
| lowint0910= 5,250
| lowint1011= 5,250
| lowint1112= 5,250
| lowint1213= 5,250
| lowint1314= 5,250
| lowint1415= 5,250

Note: either the 'usage' or the 'lowusage' fields may be used, but not both sets. For 'usage', figures should be expressed in millions, whilst for 'lowusage', figures should be in units. These rules also apply to 'int' and 'lowint'.

| coordinates = {{coord|53.089|N|2.437|W|display=inline,title}}
| gridref     = SJ710547

Note: Use the {{coord}} template. Latitude must be present if longitude is present, and vice versa, and they should have the same number of decimal places (trailing zeroes are significant). Three decimal places gives an accuracy of 111 metres (364 ft), and four decimal places gives an accuracy of 11 metres (36 ft), so greater precision is unnecessary for something as large as a railway station. You should include the display= parameter to ensure the coordinates are shown correctly in the info box.

Start dates

One of:

| start     = 2001
| starting  = 2014
| years     = {{Start date|1861}}  
| events    = Opened

Note: use |start= for stations already open, or |starting= for stations not yet open. The word "Opened" or "Opening" (respectively) will be inserted automatically.

Additional events

| original  = [[Glasgow Central Railway]]
| pregroup  = [[Caledonian Railway]]  
| postgroup = [[London Midland and Scottish Railway]]  
| years1    = 5 May 1896 
| events1   = [[Lanarkshire and Dunbartonshire Railway|L&AR]] to Clydebank opened
| years2    = 10 August 1896
| events2   = [[Glasgow Central Railway|GCR]] services commenced through to Glasgow Central
| years3    = 3 August 1959
| events3   = Station closed to passengers
| years4    = 10 August 1964
| events4   = Line closed to all traffic
| years5    = 5 November 1979
| events5   = Re-opened as '''Finnieston'''
| years6    = 1986
| events6   = Renamed as '''Exhibition Centre'''
| years7    =                
| events7   =                
| years8    =                
| events8   =                
| years9    =                
| events9   =                
| years10   =                
| events10  =                
| years11   =                
| events11  =                

Option fields for stations within a passenger transport executive area

| pte         = [[West Midlands Passenger Transport Executive|West Midlands]]   
| zone        = 1   

Note: This template should not be used on stations within the Transport for London area; use {{Infobox London station}} instead.

Option field for stations with Welsh/Gaelic/etc names

| other_name  = {{lang-cy|Caerdydd Canolog}}

Use the relevant language link template for the language concerned. These include:

All parameters (blank template)

{{Infobox GB station
 | name         = 
 | symbol       = 
 | symbol2      = 
 | manager      = 
 | locale       = 
 | coordinates  = {{coord|||||display=inline,title}}
 | borough      = 
 | platforms    = 
 | image_name   = 
 | caption      = 
 | owner        = 
 | code         = 
 | dft_category = 
 | usage0203    = 
 | usage0405    = 
 | usage0506    = 
 | usage0607    = 
 | usage0708    = 
 | usage0809    = 
 | usage0910    = 
 | usage1011    = 
 | usage1112    = 
 | usage1213    = 
 | usage1314    = 
 | usage1415    = 
 | usage1516    = 
 | usage1617    = 
 | lowusage0203 = 
 | lowusage0405 = 
 | lowusage0506 = 
 | lowusage0607 = 
 | lowusage0708 = 
 | lowusage0809 = 
 | lowusage0910 = 
 | lowusage1011 = 
 | lowusage1112 = 
 | lowusage1213 = 
 | lowusage1314 = 
 | lowusage1415 = 
 | lowusage1516 = 
 | lowusage1617 = 
 | int0203      = 
 | int0405      = 
 | int0506      = 
 | int0607      = 
 | int0708      = 
 | int0809      = 
 | int0910      = 
 | int1011      = 
 | int1112      = 
 | int1213      = 
 | int1314      = 
 | int1415      = 
 | int1516      = 
 | int1617      = 
 | lowint0203   = 
 | lowint0405   = 
 | lowint0506   = 
 | lowint0607   = 
 | lowint0708   = 
 | lowint0809   = 
 | lowint0910   = 
 | lowint1011   = 
 | lowint1112   = 
 | lowint1213   = 
 | lowint1314   = 
 | lowint1415   = 
 | lowint1516   = 
 | lowint1617   = 
 | gridref      = 
 | start        = 
 | starting     = 
 | original     = 
 | pregroup     = 
 | postgroup    = 
 | years        = 
 | events       = 
 | years1       = 
 | events1      = 
 | years2       = 
 | events2      = 
 | years3       = 
 | events3      = 
 | years4       = 
 | events4      = 
 | years5       = 
 | events5      = 
 | years6       = 
 | events6      = 
 | years7       = 
 | events7      = 
 | years8       = 
 | events8      = 
 | years9       = 
 | events9      = 
 | years10      = 
 | events10     = 
 | years11      = 
 | events11     = 
 | pte          = 
 | zone         = 
 | other_name   = 
 | listing_grade    = 
 | listing_detail   = 
 | listing_start    = 
 | listing_amended  = 
 | listing_entry    = 
 | listing_reference= 
}}

Microformats

Template:UF-hcard-geo

Tracking category

See also