Template:Infobox rdt/doc

This template is specially built for fitting route map based on the WikiQueer:route diagram template set into the infobox map parameter or anything like that, primarily for Infobox rail line. Direct transclusion of the route digram 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, do not include any Wiki table opening, closing syntaxes or BS-table template because this template has already transcluded the BS-table3 and the table ending |}. (Alternatively you can ring them with   tags for better presentation in the template page of the map.) Just start your map template with BS(#) row templates but do not forget the required table ending |} for collapsible section within the map.

Parameters

 * 1: route map template to be transcluded by this template
 * 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.
 * 0 or no (default): no Navbar at all
 * 1 or yes: displaying the Navbar in this format:
 * {|class=wikitable


 * This route map:
 * }
 * mini: displaying the Navbar in the minimum form:
 * {|class=wikitable


 * }
 * }

Example: transcluding Fairmount Line map into Infobox rail line
The Wikisyntax below will render at right:



When infobox RDT is unnecessary or ineffective

 * Infobox public transit is ok with direct transclusion of route template with a proper table header BS-table3, so this template is not needed. See Sochi Light Metro route diagram‎ for reference.


 * 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.