Bước tới nội dung

Bản mẫu:US-railway-routemap/doc

Bách khoa toàn thư mở Wikipedia

Cách sử dụng Bản mẫu:US-railway-routemap/doc

This template should be added to all Route Diagram Templates of United States railways, unless a more-specific category or template is appropriate.

It will automatically include the diagram in Category:Templates for railway lines of the United States.


Adding an optional parameter will include the railway name as a link, for example,

{{US-railway-routemap|Atchison, Topeka and Santa Fe Railway}}

will change the first line of the template to:


The optional named parameter |type= will change “a United States railway” to “a United States alternate text”. For example,

{{US-railway-routemap|type=light rail line}}

will change the first line of the template to:

and,

{{US-railway-routemap|BMT Broadway Line|type=subway}}

will change the first line of the template to:


The optional named parameter |display= will replace the text of the article link. If display is set to either I or i the article link will automatically be italicized. This is useful for named train services. For example,

{{US-railway-routemap|Heartland Flyer|display=''Heartland Flyer''|cat=AM}} and
{{US-railway-routemap|Heartland Flyer|display=i|cat=AM}}

will both change the first line of the template to:


The optional named parameter |the=anything will omit the word “the” before the linked page. For example,

{{US-railway-routemap|the=x|Washington Union Station|cat=STN}}

will change the first line of the template to:


The optional named parameter |place= will change “a United States railway” to “a(n) alternate text railway”. For example,

{{US-railway-routemap|place=[[Alabama]]}}

will change the first line of the template to:

and,

{{US-railway-routemap|Metra Electric District|place=Chicago|type=[[commuter line]]}}

will change the first line of the template to:

Categories

By default the template will be included in Category:Templates for railway lines of the United States. However, adding the optional named parameter |cat= provides a shortcut for other categories, and changes the default type description, as shown in this table:

|cat=Categorydefault type description
Generic
NOnonerailway
APMCategory:United States airport people mover system templatespeople mover system
APRCategory:United States amusement park railroad templates‎amusement park railroad
BYCategory:United States backyard railroad templates‎backyard railroad
CRCategory:United States commuter railroad templates‎commuter rail line
HRCategory:United States heritage railroad templates‎heritage railroad
HSCategory:United States heritage streetcar templates‎heritage streetcar
LRCategory:United States light rail templates‎light rail line
MRCategory:United States museum railroad templates‎museum railroad
PMCategory:United States people mover system templates‎people mover system
RMCategory:United States rideable miniature railroad templatesminiature railroad
RTCategory:United States rapid transit templates‎rapid transit line
STNCategory:United States station layout templates*railway station
﹡﹡Category:United States state and territory passenger rail network templatesState passenger rail network
﹡SCategory:State rail transport templatesState rail network
* in addition to Category:Templates for railway lines of the United States

** = any two-letter state abbreviation

Specific
AFCategory:Amtrak route diagram templatesformer Amtrak train service
AMAmtrak train service
AMLAmtrak railway line
APplanned Amtrak train service
BNSFCategory:BNSF Railway templates‎BNSF railway line
CSXCategory:CSX templatesCSX railway line
CTACategory:Chicago 'L' line templatesrapid transit line
LIRRCategory:Long Island Rail Road lines templates‎Long Island Rail Road line
MAXCategory:MAX Light Rail line templateslight rail line
MBCCategory:Massachusetts Bay Transportation Authority line templatesMBTA Commuter Rail line
MBTMBTA subway line
METRACategory:Metra line templatescommuter rail line
MLCACategory:Metrolink (California) line mapsMetrolink line
NJTCategory:NJ Transit lines templatesNJ Transit route
PECategory:Pacific Electric Railway templatesPacific Electric line
SPCategory:Templates for Southern Pacific linesSouthern Pacific railway
UPCategory:Union Pacific Railroad templates‎Union Pacific railway line

Note that this parameter is not case sensitive: i.e. |cat=NO produces the same result as |cat=no.


The optional named parameter |name= or |catidx= will change the category sorting name for the page. The default is the page name, but since some route diagrams start with the system name, this is a simple way to change the sort key to the line or route name.

Xem thêm Bản mẫu:US-railway-routemap/doc

Bản mẫu:RyrmSeeAlso