Template:Routemap-Infobox

From Wikipedia, the free encyclopedia
  (Redirected from Template:BS-Infobox)
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

Usage[edit]

For transcluding into the "top" parameter of {{BS-map}} or {{Routemap}}.

Example
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|{{{image_alt}}}]]
{{{caption}}}
[[File:{{{map}}}|{{{map_size}}}|alt={{{map_alt}}}|{{{map_alt}}}]]
{{{map_caption}}}
Line length {{{linelength}}}{{{linelength_footnotes}}}
Track gauge {{{gauge}}}
{{Routemap-Infobox
 | box_width=
 | image=
 | image_upright=
 | image_size=
 | image_alt=
 | caption=
 | map=
 | map_upright=
 | map_size=
 | map_alt=
 | map_caption=
 | linelength_km=
 | linelength_mi=
 | linelength=
 | linelength_footnotes=
 | gauge=
}}

Example[edit]

Blue Water
Amtrak Blue Water.jpg
An Amtrak Blue Water train pulling into the East Lansing station
Amtrak Blue Water.svg
Line length 319 mi (513 km)
Track gauge 4 ft 8 12 in (1,435 mm)
0 mi
0 km
Chicago Bus interchange US Passenger rail transport
IL
IN
IN
MI
62 mi
100 km
New Buffalo
89 mi
143 km
Niles
102 mi
164 km
Dowagiac
138 mi
222 km
Kalamazoo Bus interchange
160 mi
257 km
Battle Creek Bus interchange
208 mi
335 km
East Lansing Bus interchange
238 mi
383 km
Durand
256 mi
412 km
Flint Bus interchange
274 mi
441 km
Lapeer
319 mi
513 km
Port Huron
{{Routemap
| title=''Blue Water''
| top=
{{Routemap-Infobox
 | image = Amtrak Blue Water.jpg
 | image_size = 300px
 | image_alt =
 | caption = An Amtrak ''Blue Water'' train pulling into the East Lansing station
 | map = Amtrak Blue Water.svg
 | map_size = 300px
 | map_alt =
 | map_caption =
 | linelength_km =
 | linelength_mi = 319
 | linelength =
 | linelength_footnotes =
 | gauge = {{track gauge|ussg}}
}}
 | map=
KINTACCa~~{{BScvt|0}}~~[[Chicago Union Station|Chicago]] {{rint|bus}} {{rint|us|rail}}
STR+GRZq~~ {{BSsplit|[[Illinois|IL]]|[[Indiana|IN]]|line=1}}
STR+GRZq~~ {{BSsplit|[[Indiana|IN]]|[[Michigan|MI]]|line=1}}
HST~~{{BScvt|62}}~~{{amtk|New Buffalo}}
ACC~~{{BScvt|89}}~~{{amtk|Niles}}
HST~~{{BScvt|102}}~~{{amtk|Dowagiac}}
INTACC~~{{BScvt|138}}~~[[Kalamazoo Transportation Center|Kalamazoo]] {{rint|bus}}
INTACC~~{{BScvt|160}}~~{{amtk|Battle Creek}} {{rint|bus}}
INTACC~~{{BScvt|208}}~~{{amtk|East Lansing}} {{rint|bus}}
HSTACC~~{{BScvt|238}}~~[[Durand Union Station|Durand]]
INTACC~~{{BScvt|256}}~~{{amtk|Flint}} {{rint|bus}}
HSTACC~~{{BScvt|274}}~~{{amtk|Lapeer}}
KACCe~~{{BScvt|319}}~~{{amtk|Port Huron}}
}}

A small infobox to be used in the «top» parameter of the BS-map and Routemap templates.

Template parameters

Parameter Description Type Status
Child infobox child

If the template is being used inside another infobox. Not to be used directly inside BS-map or Routemap.

Default
empty
Example
yes
Auto value
empty
String optional
Box width box_width

Width of the template in em or px. Useful for wrapping unnecessarily long lines of text.

Default
empty
Example
22em
Auto value
empty
String optional
Style style

Custom CSS styling for the whole box. Usually not necessary.

Default
empty
Example
empty
Auto value
empty
Unknown optional
Image image

Filename of an image of the line.

Default
empty
Example
Amtrak Blue Water.jpg
Auto value
empty
File suggested
Image upright image_upright

Image size, relative to the default. If "yes", displays image at 75% of default image size (which is 220px if not changed in user preferences). If a number, values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%).

Default
1.15
Example
1.35
Auto value
empty
String optional
Image size image_size

Size of the image in pixels.

Default
250px
Example
300px
Auto value
empty
String optional
Image alt text image_alt

Alt text for the image (unformatted), for accessibilty.

Default
empty
Example
An Amtrak diesel train arriving at East Lansing station
Auto value
empty
String suggested
Image caption caption

Text displayed below the image.

Default
empty
Example
An Amtrak ''Blue Water'' train pulling into East Lansing station
Auto value
empty
String suggested
Map map

Filename of a map of the line.

Default
empty
Example
Amtrak Blue Water.svg
Auto value
empty
File suggested
Map upright map_upright

Map size, relative to the default. If "yes", displays map image at 75% of default image size (which is 220px if not changed in user preferences). If a number, values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%).

Default
1.15
Example
1.35
Auto value
empty
String optional
Map size map_size

Size of the map image in pixels.

Default
250px
Example
300px
Auto value
empty
String optional
Map alt text map_alt

Alt text for the map image (unformatted), for accessibilty.

Default
empty
Example
Geographically accurate map of the Amtrak Blue Water route from Chicago, IL, to Port Huron, MI.
Auto value
empty
String suggested
Map caption map_caption

Text displayed below the map image.

Default
empty
Example
Map of the ''Blue Water'' route
Auto value
empty
String optional
Line length (kilometres) linelength_km

Length of the line in kilometres, as a number. Automatically converted to miles.

Default
empty
Example
513
Auto value
empty
Number suggested
Line length (miles) linelength_mi

Length of the line in miles, as a number. Automatically converted to kilometres.

Default
empty
Example
319
Auto value
empty
Number suggested
Line length linelengthlength

Length of the line, using the Convert template for conversion between km and mi.

Default
empty
Example
{{Convert|20|km}}
Auto value
empty
String optional
Line length footnotes linelength_footnotes

Source for the line length, in … tags.

Default
empty
Example
<ref>{{cite web|url=http://www.amtrak.com/pdf/factsheets/MICHIGAN05.pdf|title=Amtrak Fact Sheet, Fiscal Year 2005|publisher=[[Amtrak]]|format=PDF|accessdate=October 30, 2006}}</ref>
Auto value
empty
String optional
Track gauge gauge

Track gauge of the line, using the Track gauge template.

Default
empty
Example
{{Track gauge|1435 mm}}
Auto value
empty
String suggested