Difference between revisions of "Template:Infobox rail line/doc"
imported>Eubulides (Document new alt text parameters.) |
|||
| Line 140: | Line 140: | ||
| tracklength = <nowiki>{{mi to km|0|abbr=yes|precision=2|wiki=yes}}</nowiki> | | tracklength = <nowiki>{{mi to km|0|abbr=yes|precision=2|wiki=yes}}</nowiki> | ||
| notrack = | | notrack = | ||
| − | | gauge = | + | | gauge = <nowiki>{{RailGauge|sg|al=on|lk=on}}</nowiki> |
| old gauge = | | old gauge = | ||
| minradius = | | minradius = | ||
Revision as of 03:10, 22 October 2009
Template:Template doc page viewed directly
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Please use Template:Infobox rail line freight for freight lines (includes historic data).
Contents
Parameter list and definitions
| Parameter | Required | Definition |
|---|---|---|
box_width |
No | Width of infobox, default: 25em; Note: use auto for automatic width
|
name |
No | Name of rail line; default:Article Name |
color |
No | Color of rail line |
logo |
No | Filename of image for the logo |
logo_width |
No | Size of logo, default: 200px |
logo_alt |
No | Alt text for logo, for visually impaired readers; see WP:ALT. This should be present if "logo=" is present.
|
image |
No | Filename of image |
image_width |
No | Size of image, default: 250px |
image_alt |
No | Alt text for image. This should be present if "image=" is present.
|
caption |
No | Caption of image |
type |
No | Type of transit system. Types may include (one or more):
|
system |
No | Name of transit system the rail line is part of |
status |
No | Status of rail line |
locale |
No | City or region transit system is located |
start |
No | Name of starting terminal station |
end |
No | Name of ending terminal station |
stations |
No | Number of stations/stops |
routes |
No | Service routes of rail line |
ridership |
No | Daily system ridership |
open |
No | Date rail line opened |
close |
No | Date rail line closed |
reopen |
No | Date rail line reopened after closure |
owner |
No | Owner of rail line |
operator |
No | Operator(s) of rail line |
character |
No | |
depot |
No | Name of traction maintenance depot(s) of rail line |
stock |
No | Types of rolling stock used on the rail line |
linelength |
No | Line length (use {{mi to km}} or {{km to mi}} to display both U.S. and metric units, alternatively 1 km (0.6 mi) or 1 mi (1.6 km)) |
tracklength |
No | Track length (use {{mi to km}} or {{km to mi}} to display both U.S. and metric units, alternatively 1 km (0.6 mi) or 1 mi (1.6 km)) |
notrack |
No | Number of tracks |
gauge |
No | Rail gauge (use template – see Category:Rail transport gauge templates) |
ogauge |
No | Old rail gauge (use template – see Category:Rail transport gauge templates) |
minradius |
No | Minimum radius of curvature (use template:convert) |
racksystem |
No | Rack system. Examples: Abt or Strub, as the case may be. |
el |
No | Electrification system (e.g. Third rail, Overhead catenary) and/or voltage |
trainnumber |
No | Train number(s) running as shown in official timetables and printed on tickets. |
routenumber |
No | Route number(s) indicated in timetables to identify the stretch of track, in Germany usually referred as Kursbuchstrecke |
linenumber |
No | Line number(s). Identifier(s) of set of trains with same service, usually seen in suburban trains. eg. S7, IENA, 7, Line A. Not to be confused with the technical track. |
speed |
No | Maximum or operating speed of the rail line (use {{convert|0|mph|km/h|abbr=on}} or {{convert|0|km/h|mph|abbr=on}} to display both U.S. and metric units)) |
elevation |
No | Highest elevation of the rail line |
website |
No | Website |
map |
No | Map of line |
map_name |
No | Title of map; default: Route map |
map_state |
No | Shows or hides map. Use show or collapsed
|
Usage
Copy and paste
{{Infobox rail line
| box_width =
| name =
| color =
| logo =
| logo_width =
| logo_alt =
| image =
| image_width =
| image_alt =
| caption =
| type =
| system =
| status =
| locale =
| start =
| end =
| stations =
| routes =
| ridership =
| open =
| close =
| owner =
| operator =
| character =
| depot =
| stock =
| linelength = {{mi to km|0|abbr=yes|precision=2|wiki=yes}}
| tracklength = {{mi to km|0|abbr=yes|precision=2|wiki=yes}}
| notrack =
| gauge = {{RailGauge|sg|al=on|lk=on}}
| old gauge =
| minradius =
| racksystem =
| route number=
| el =
| speed = {{convert|0|mph|km/h|abbr=on}}
| elevation =
| website =
| map =
| map_state = collapsed
}}
Example
| Alpha Line | |||
|---|---|---|---|
| Puzzle piece globe, captioned "Wikipedia The Free Encyclopedia" | |||
![]() Placeholder caption | |||
| Overview | |||
| Status | Ceased operation | ||
| Locale | Newark | ||
| Termini | Station A Station M | ||
| Stations | 15 | ||
| Service | |||
| Type | Light rail | ||
| System | ABC Transit | ||
| Services | 1 | ||
| Operator(s) | BCT Transport | ||
| History | |||
| Opened | June 22, 1904 | ||
| Closed | March 8, 1942 | ||
| Technical | |||
| Line length | Template:Mi to km | ||
| Track gauge | Template:RailGauge | ||
| |||
{{Infobox rail line
| name = Alpha Line
| color = 003399
| logo = wiki.png
| logo_width = 100px
| logo_alt = Puzzle piece globe, captioned "Wikipedia The Free Encyclopedia"
| image = placeholder.png
| image_width =
| image_alt = P L A C E H O L D E R .
| caption = Placeholder caption
| type = [[Light rail]]
| system = ABC Transit
| status = Ceased operation
| locale = [[Newark, New Jersey|Newark]]
| start = Station A
| end = Station M
| stations = 15
| routes = 1
| ridership = 239,200
| open = June 22, 1904
| close = March 8, 1942
| owner =
| operator = BCT Transport
| character =
| depot =
| stock =
| linelength = {{mi to km|13.8|abbr=yes|precision=2|wiki=yes}}
| tracklength =
| notrack =
| gauge = {{RailGauge|sg|al=on|lk=on}}
| el =
| speed =
| elevation =
| map = [[Image:placeholder.png|200px|alt=P L A C E H O L D E R .]]
| map_name =
| map_state = collapsed
}}
Including WP:Route diagram template in map parameter
There are reports that route map using WP:Route diagram template included in the infobox "breaks apart" in browser such as Microsoft Internet Explorer 7 like the left one. This issue doesn't exist under browser like IE8, Firefox or Opera by their default font and margin preferences.
| breaking rows | fixed | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||
Use template {{infobox rdt}} if break occurs on every row:
map = {{Infobox rdt|ROUTE DIAGRAM TEMPLATE NAME}}
If some of the row of route map made with WP:ROUTE set (not entirely) breaks apart, possibly the infobox width is too short and forcing some of the text description within the route diagram template to return. Increase the box_width parameter, or putting auto will solve this problem.
