Wikipedia:WikiProject UK Railways/Templates

From Wikipedia, the free encyclopedia

Contents

[edit] Line navigation templates

[edit] Station infoboxes

See also Category:Rail transport infobox templates

  • {{Infobox UK station}}
    • Mandatory parameters: | name= | manager= [[]] | locale = [[]] | borough= [[]] | platforms =
    • Optional parameters: | image = [[Image: |300px]] | caption= | owner= [[]] | code= | pte= [[]] | zone= | other_name=
    • Statistic parameters: | usage0506= or | lowusage0506=
    • Events parameters: | years= | events= Additional events can be added, e.g. | years1= | events1= up to | years9= | events9=
Enter the station's name, the operator as manager, town as locale, local authority as borough, and the number of platforms in use. Optional fields allow an image and caption, owner, National Rail Enquiries three-letter code, pte and fare zone, and an other name, e.g. for bi-lingual station names. Passenger numbers can be expressed as lowusage where the number is less than 100,000, or usage where greater in millions to three decimal places. For events, the parameter years is the date and events the details. For full information see Template talk:Infobox UK station, where you will also find links to the usage statistics.

Alternative infoboxes:

[edit] Station navigation boxes

See also Category:Rail transport-related navigational boxes

[edit] Route information

Please read discussion now going on suggesting that Wikipedia is NOT a timetable - see Talk page

  • Start templates
    • {{rail start}} start of route information box for national rail. Headings for preceding and following station and a link to national rail
    • {{start TWM box}} start of route information box for Tyne and Wear Metro. Headings for preceding and following station and a link to Tyne and Wear Metro
    • {{Disused Rail Start}} start of disused route information. Heading for preceding and following station and a link to the disused rail category
    • {{Historical Rail Start}} start of information of the Original Line info. Heading for preceding and following station.
  • Line templates Next / previous are the stations served on either side; route is the company and/or route, col is the colour of the dividing columns (see Template talk:Rail line if in doubt). For Historical Lines in Scotland, the colour corresponds to that relating to the pre-1923 company as given in WPTIS Talk Page. Where there is more than one route, previous1 is the stations on the first route, previous2 is on the second route, etc.
    • {{rail line}} Details of the rail line stopping at the station. Parameters: | previous= | next= | route= | col=
    • {{TWM line}} Details of the Tyne and Wear Metro line stopping at the station. Parameters: | previous= | line= | next=
There are also many variants to deal with merging lines. In the examples below, {{{col}}} is blue , {{{col1}}} is yellow , and {{{col2}}} is red .
{{Rail line|previous=|next=|route=|col=}}
{{{previous}}}   {{{route}}}   {{{next}}}
{{Rail line one to three|previous=|col=
|next1=|route1=|next2=|route2=|next3=|route3=}}
{{{previous}}}   {{{route1}}}   {{{next1}}}
  {{{route2}}}   {{{next2}}}
  {{{route3}}}   {{{next3}}}
{{Rail line one to two|previous=|col=
|next1=|route1=|next2=|route2=}}
{{{previous}}}   {{{route1}}}   {{{next1}}}
  {{{route2}}}   {{{next2}}}
{{Rail line one to two two routes|previous=|col1=
|next1=|route1=|col2=|next2=|route2=}}
{{{previous}}}   {{{route1}}}   {{{next1}}}
  {{{route2}}}   {{{next2}}}
{{Rail line one to two type 2|previous=|col=
|route=|next1=|next2=}}
{{{previous}}}   {{{route}}}   {{{next1}}}
{{{next2}}}
{{Rail line three to one|next=|col=
|previous1=|route1=|previous2=
|route2=|previous3=|route3=}}
{{{previous1}}}   {{{route1}}}   {{{next}}}
{{{previous2}}}   {{{route2}}}  
{{{previous3}}}   {{{route3}}}  
{{Rail line two routes|previous=|next=
|route1=|col1=|route2=|col2=}}
{{{previous}}}   {{{route1}}}   {{{next}}}
  {{{route2}}}  
{{Rail line two to one|next=|col=
|previous1=|route1=|previous2=|route2=}}
{{{previous1}}}   {{{route1}}}   {{{next}}}
{{{previous2}}}   {{{route2}}}  
{{Rail line two to one two routes|next=|col1=
|previous1=|route1=|col2=|previous2=|route2=}}
{{{previous1}}}   {{{route1}}}   {{{next}}}
{{{previous2}}}   {{{route2}}}  
{{Rail line two to one type 2|next=|col=
|route=|previous1=|previous2=}}
{{{previous1}}}   {{{route}}}   {{{next}}}
{{{previous2}}}
{{Rail line two to two|route=|col=
|previous1=|next1=|previous2=|next2=}}
{{{previous1}}}   {{{route}}}   {{{next1}}}
{{{previous2}}} {{{next2}}}
{{TWM line|previous=|next=|line=}}
for Tyne and Wear Metro line
{{{previous}}}   {{{{{line}}} link}}   {{{next}}}
{{TWM two lines|previous=|next=|line1=|line2=}}
for Tyne and Wear Metro lines
{{{previous}}}   {{{{{line1}}} link}}   {{{next}}}
  {{{{{line2}}} link}}  
  • End templates
    • {{end box}} Finishes the box off after one or more line templates.
  • Generic templates
    • {{s-start}} start of route information box
    • {{s-rail}} heading for a mode of transport
    • {{s-line}} details of the rail line stopping at the station

[edit] Railway company, lines, etc. infoboxes

See also Category:Rail transport infobox templates

  • {{Heritage Railway}}
    • Mandatory parameters: | name= | locale= [[]] | terminus= | linename= | originalgauge= | operator= | stations= | preserved gauge= | originalopen= | closed=
    • Optional general parameters: | image=[[]] | caption= | map= | builtby=
    • Optional preservation parameters: | owned= | era= | stageyears= | years= | events= up to | years9= | events9=
Enter the railway's name, its country as locale and its terminus. The original operator as linename and originalgauge. The current operator, stations, length and preservedgauge. Events are originalopen and closed with optional preservation events as years1 and events1, etc. Note the map parameter only needs the file name, not the Image: or size restrictions.
  • {{Infobox rail}}
    • Mandatory parameters: | railroad_name= | locale = | gauge= | hq_city=
    • Optional parameters: | logo_filename= | system_map= | map_caption= | marks= | start_year= | end_year= | successor_line= | length=
Enter the railroad_name, the country as locale, headquarters as hq_city and gauge. The optional marks is for initials carried on rolling stock to identify the owner. The logo and map parameters only need the file name, not the Image: or size restrictions.

[edit] Railway company and line navigation boxes

See also Category:Rail transport-related navigational boxes

[edit] Train operating companies

[edit] Locomotive and stock infoboxes

See also Category:Rail transport infobox templates

[edit] Locomotive and stock navigation boxes

See also Category:Rail transport-related navigational boxes

[edit] Track gauges

See {{RailGauge}} for details

[edit] Stub templates

[edit] Project templates

  • {{User UKRail}} - Userbox for project participants
  • {{TrainsWikiProject}} - To be placed on talk page of relevant articles, but be sure to add the add UK=yes parameter.