กรุณใช้ Template:Infobox rail line freight สำหรับเส้นทางการบิน(รวมทั้งข้อมูลประวิัติการบินด้วย)

รายชื่อตัวแปรและคำจำกัดความ แก้

ตัวแปร ต้องระบุ คำจำกัดความ
box_width ไม่ Width of infobox, default: 25em; Note: use auto for automatic width
name ไม่ Name of rail line; default:Article Name
color ไม่ Color of rail line
logo ไม่ Filename of image for the logo
logo_width ไม่ Size of logo, default: 200px
logo_alt ไม่ Alt text for logo, for visually impaired readers; see WP:ALT. This should be present if "logo=" is present.
image ไม่ Filename of image
image_width ไม่ Size of image, default: 250px
image_alt ไม่ Alt text for image. This should be present if "image=" is present.
caption ไม่ Caption of image
type ไม่ Type of transit system. Types may include (one or more):
system ไม่ Name of transit system the rail line is part of
status ไม่ Status of rail line
locale ไม่ City or region transit system is located
start ไม่ Name of starting terminal station
end ไม่ Name of ending terminal station
stations ไม่ Number of stations/stops
routes ไม่ Service routes of rail line
ridership ไม่ Daily system ridership
ridership2 ไม่ Generic ridership field for non-daily values
open ไม่ Date rail line opened
close ไม่ Date rail line closed
reopen ไม่ Date rail line reopened after closure
owner ไม่ Owner of rail line
operator ไม่ Operator(s) of rail line
character ไม่
depot ไม่ Name of traction maintenance depot(s) of rail line
stock ไม่ Types of rolling stock used on the rail line
linelength ไม่ 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 ไม่ 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 ไม่ Number of tracks
gauge ไม่ Rail gauge (use template – see Category:Rail transport gauge templates)
ogauge ไม่ Old rail gauge (use template – see Category:Rail transport gauge templates)
minradius ไม่ Minimum radius of curvature (use template:convert)
racksystem ไม่ Rack system. Examples: Abt or Strub, as the case may be.
el ไม่ Electrification system (e.g. Third rail, Overhead catenary) and/or voltage
trainnumber ไม่ Train number(s) running as shown in official timetables and printed on tickets.
routenumber ไม่ Route number(s) indicated in timetables to identify the stretch of track, in Germany usually referred as Kursbuchstrecke
linenumber ไม่ 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 ไม่ 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 ไม่ Highest elevation of the rail line
website ไม่ Website
map ไม่ Map of line
map_name ไม่ Title of map; default: Route map
map_state ไม่ Shows or hides map. Use show or collapsed

การใช้งาน แก้

คัดลอกและวาง แก้

{{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
}}

ตัวอย่าง แก้

Alpha Line
Puzzle piece globe, captioned "Wikipedia The Free Encyclopedia"
P L A C E H O L D E R .
Placeholder caption
ข้อมูลทั่วไป
สถานะCeased operation
ที่ตั้งNewark
ปลายทาง
  • Station A
  • Station M
จำนวนสถานี15
การดำเนินงาน
รูปแบบLight rail
ระบบABC Transit
เส้นทาง1
ผู้ดำเนินงานBCT Transport
ผู้โดยสารต่อวัน239,200
ประวัติ
เปิดเมื่อJune 22, 1904
ปิดเมื่อMarch 8, 1942
ข้อมูลทางเทคนิค
ระยะทางแม่แบบ:Mi to km
รางกว้าง1,435 mm (4 ft 8 12 in) สแตนดาร์ดเกจ
แผนที่เส้นทาง
P L A C E H O L D E R .
{{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
Infobox rail line/doc
แผนที่เส้นทาง
แม่แบบ:Needhammap
Infobox rail line/doc
แผนที่เส้นทาง
แม่แบบ:Infobox rdt

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 soft return. Increase the box_width parameter, or putting auto will solve this problem.