Şablon:Bilgi kutusu rdt

Vikipedi, özgür ansiklopedi
Gezinti kısmına atla Arama kısmına atla


Şablon belgelemesi[gör] [değiştir] [geçmiş] [temizle]

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 {{Tren hattı bilgi kutusu}}. 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 <noinclude> 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[kaynağı değiştir]

  • 1: route map template to be transcluded by this template
  • lejant: switching the types of map lejant to be linked. See {{BS-table}} for instruction. Entry route ({{Demiryolu hattı lejantı}}) by default.
  • navbar: add the {{Dolçub}} 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:
This route map:
  • mini: displaying the Navbar in the minimum form:

Example: transcluding {{Fairmount Line map}} into {{Tren hattı bilgi kutusu}}[kaynağı değiştir]

Bilgi kutusu rdt

The Wikisyntax below will render at right:

{{Tren hattı bilgi kutusu
|box_width = 320px
|map = {{Bilgi kutusu rdt|Fairmount Line map|lejant=no|navbar=mini}}
|map_state = show
}}

When Bilgi kutusu rdt is unnecessary or ineffective[kaynağı değiştir]

  • 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 {{Tren hattı bilgi kutusu}} 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.