الگو:US-railway-routemap/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به: ناوبری، جستجو

Usage[ویرایش]

This template should be added to all Route Diagram Templates of ایالات متحده آمریکا 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:

الگو:Box


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:

الگو:Box

and,

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

will change the first line of the template to:

الگو:Box


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

{{US-railway-routemap|place=[[آلاباما]]}}

will change the first line of the template to:

الگو:Box

and,

{{US-railway-routemap|Metra Electric District|place=Chicago|type=[[راه‌آهن حومه]]}}

will change the first line of the template to:

الگو:Box

Categories[ویرایش]

By default the template will be included in Category:Templates for railway lines of the United States. However, adding the parameter |cat= provides a shortcut for other categories:

NO none
AM Category:Amtrak railway line navigational boxes
AR Category:United States amusement park railroad templates‎
BY Category:United States backyard railroad templates‎
CR Category:United States commuter railroad templates‎
HR Category:United States heritage railroad templates‎
HS Category:United States heritage streetcar templates‎
LR Category:United States light rail templates‎
MR Category:United States museum railroad templates‎
RM Category:United States rideable miniature railroad templates
RT Category:United States rapid transit templates‎

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

Also, for Category:Amtrak railway line navigational boxes (|cat=AM), the optional named parameter |name= will change the sort-name for the category. (The default is the page name.) Since most Amtrak route diagrams start with the name “Amtrak”, this is a simple way to change the sort key to the line name.

See also[ویرایش]

Africa
Asia & Oceania
Europe
North America