Template:Infobox route diagram/doc

From MOASSpedia
Jump to navigation Jump to search

This template is deprecated, use {{BS-map}} instead.

Adding the following lines when using the BS-map template allows better transclusion of the route map into the info box.
|inline={{{inline|}}}
|legend={{{legend|}}}


This template is specially built for fitting route map based on the Wikipedia:route diagram template set into the infobox map parameter or anything like that, primarily for {{Infobox rail line}}. Direct transclusion of the route diagram without the help of this template might cause the rows of map to "break apart" and look bad in Microsoft Internet Explorer 7. (Icons that comprising the diagram are not cohesively joining row by row.) This problem doesn't exist in IE8, Firefox or Safari.

When preparing the separate route map template which will apply this template, make sure the parameter |inline = <includeonly>yes</includeonly> is included in the {{BS-map}} or {{Routemap}} diagram template.

Parameters

  • 1: name of route map template to be transcluded by this template
  • map: inline route map template to be inserted, this parameter has higher priority than parameter 1
  • legend: switching the types of map legend to be linked. See {{BS-table}} for instruction. Entry route ({{Railway line legend}}) by default.
  • navbar: add the {{Navbar}} for the route map template below the diagram within the infobox map section, if parameter 1 is available
  • 0 or no (default): no Navbar at all
  • 1 or yes: displaying the Navbar in this format:
This diagram: 
  • mini: displaying the Navbar in the minimum form:

Example: transcluding {{Fairmount Line}} into {{Infobox rail line}}

Infobox route diagram/doc
Route map
<span style="background-color:#Script error: No such module "Adjacent stations".; border:1px solid #Script error: No such module "Adjacent stations".;">  Red Line   to Template:Station link
South Station
<span style="background-color:#Script error: No such module "Adjacent stations".; color: white; border: none; border-radius: 50%; padding:0.4em; text-align: center; font-size:9px; line-height:9px">Silver Line (MBTA) <span style="background-color:#Script error: No such module "Adjacent stations".; color: white; border: none; border-radius: 50%; padding:0.4em; text-align: center; font-size:9px; line-height:9px">MBTA Commuter Rail Amtrak
<span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Worcester  <span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Needham  <span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Franklin  <span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Providence 
<span style="background-color:#Script error: No such module "Adjacent stations".; border:1px solid #Script error: No such module "Adjacent stations".;">  Red Line   to Template:Station link or Template:Station link
<span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Greenbush  <span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Old Colony 
Template:Station link
Template:Station link
Template:Station link
Template:Station link
Template:Station link
Template:Station link
Template:Station link
Template:Station link
<span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Providence/Stoughton  &
Northeast
Corridor
<span style="background-color:#Script error: No such module "Adjacent stations".; border:0.1em solid #Script error: No such module "Adjacent stations".;"> Franklin 

The Wikisyntax below will render at right:

{{Infobox rail line
|box_width = 320px
|map = {{Infobox rdt|Fairmount Line|legend=no}}
|map_state = show
}}

When infobox RDT is unnecessary or ineffective

  • The rows of map will partially break apart if the text in that BS(#) row template is too long thus forcing a soft return. This can be solved by moving some of the text to the next BS(#) row template. Increase the width or set by auto of the infobox if the text is only slightly lengthy that causes the breaking. Editor should check the infobox template if such parameter is available. For example, box_width of {{Infobox rail line}} and {{Infobox rail service}}. If the soft return is still there to cause the break, and the width of the infobox is clearly wide enough, use the parameter tw in 1 of the BS(#) row template to increase the text column width until it's long enough to avoid the soft return.
  • There are at least 3 possbilities that applying this template will mess up the whole article layout:
  1. Incorrect or non-existing route template name. (This might happen when solely transwiking the syntax of the main article to another Wiki project without the route map template alongside)
  2. Bad syntax within the route template. Usually lacking the table closing syntax for BS startCollapsible section.
  3. The map parameter of the infobox, such as {{infobox rail}} (protected), restricts the input to 1 single image link only. At this rate, editor should consider changing infobox or give up the idea to transclude route map template into the infobox. You can just use the standalone route map format and place it following the infobox.

Tracking categories