Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Colours  





1.2  Additional parameters  







2 Example 1  





3 Example 2  





4 See also  














Template:Rail line







Deutsch
Ελληνικά
فارسی
Français

Bahasa Indonesia

Ladin
Magyar
Bahasa Melayu
Română
Русский
Scots
Simple English
سنڌي
Sunda


Українська
اردو
Tiếng Vit
ייִדיש

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


Terminus   {{{route}}}   Terminus

Usage

{{rail line |previous= |next= |route= |col= }}

Colours

The |col= parameter is used to set the colour of the two vertical bands which separate the three main columns. If this parameter is blank or omitted, the bands are present but their colours are undefined, and the appearance may vary between web browsers.

The colour set by |col= is normally associated with the railway company or operator given in the |route= parameter; if that parameter indicates both a major company and a minor company, or a rail operator and one of its services, |col= should indicate the more important of the two. To indicate the less important of the two, the optional |lightcol= parameter may be used; it will add a horizontal coloured band beneath the text of the |route= parameter. If |lightcol= is blank or omitted, the band is also omitted.


For consistency, colours should be specified using colour templates, e.g. |col={{Caledonian colour}} |lightcol={{Caledonian light}}. The predefined colours are at WikiProject UK Railways/Colours list. Colours may also be given in the form of a six-character hex triplet. In either case, the initial # sign is omitted, e.g. |col=be2d2c |lightcol=d77f7e.


The |lightcol= parameter is preferred to the older method of setting a coloured background for some of the text, which had accessibility problems.

Additional parameters

Example 1

{{rail start}}
{{rail line
|previous = {{rws|Banbury}}
|next     = {{rws|Heyford}}
|route    = [[Great Western Railway (train operating company)|Great Western Railway]]<br><small>[[Cherwell Valley Line]]</small>
|col      = {{FGW colour}}
}}
{{rail end}}

This produces:

Preceding station National Rail National Rail Following station
Banbury   Great Western Railway
Cherwell Valley Line
  Heyford

Example 2

{{rail start}}
{{s-note|text=Former services}}
{{rail line
|col= {{LSWR colour}}
|previous= ''Terminus''|rows1=3|route= [[London and South Western Railway]]<br/><small>(1869-1916)</small>
|next= {{lus|Kew Gardens}} |term2= {{stn|West Brompton}}
}}
{{rail line
|col= {{MetRly colour}}
|hide1=yes
|route= [[Metropolitan Railway]]<br/><small>(1877-1906)</small>
|next= {{lus|Kew Gardens}} |term2= [[London Paddington station|Paddington]] |rows2=2}}
{{rail line
|col= {{GWR colour}}
|hide1=yes
|route= [[Great Western Railway]]<br/><small>(1894-1910)</small>
|hide2=yes
}}
{{rail end}}
Preceding station National Rail National Rail Following station
  Former services  
Terminus   London and South Western Railway
(1869-1916)
  Kew Gardens
towards West Brompton
  Metropolitan Railway
(1877-1906)
  Kew Gardens
towards Paddington
  Great Western Railway
(1894-1910)
 

See also

  • {{rail line one to two}}
  • {{rail line one to two three routes}}
  • {{rail line one to three}}
  • {{rail line one to four}}
  • {{rail line two to two}}
  • {{rail line two routes}}
  • {{rail line three routes}}
  • {{rail line four routes}}
  • {{rail line two to one}}
  • {{rail line two to one three routes}}
  • {{rail line three to one}}
  • {{rail line four to one}}
  • {{rail line three to two}}

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Rail_line&oldid=1215323389"

    Category: 
    Rail transport succession templates
    Hidden category: 
    Wikipedia template-protected templates
     



    This page was last edited on 24 March 2024, at 12:29 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki