This Lua-based template replaces the older parser-function-based  (and deprecated ,  and ) templates for উইকিপিডিয়া:Route diagram templates because diagrams created by  load faster.   ব্যবহার   {{routemap | inline      = | title       = | title color = | title bg    = | collapsible = | collapse    = | navbar      = | navbar pos  = | navbar mini = | legend      = | legend alt  = | float       = | bg          = | style       = | top         = | footnote    = | text-width  = | map =  }}   Markup for map parameter   The markup for composing the diagram in the  parameter is different to the -based templates. The major differences are the separators in each row. Subtemplates are not necessary, since a new row in the table is simply created by a carriage return (newline).  }}   Basic    Icons are separated by the backslash \.  Each group of icons is centered in its row. The nameless icon (at the start of row 5 in the diagram) can be used as a spacer.  The ID of each icon can be seen in its tooltip. Move your cursor over the icons to see them.   Sidebar text   or  <nowiki>{{Routemap |title=Example 1.2 |map= KBHFa~~terminus WASSERq\hKRZWae\WASSERq~~ ~~ ~~ ~~Bridge LDER\INT\~~1 km~~station~~transfer for HSR \KBHFe\BUS~~2 km~~terminus~~bus terminal }}</nowiki>  The third and fourth pairs of tildes can be omitted if there is no content following either of them.  After the last icon ID, if there is only one set of "tilde-tilde" (~~), the following text will be displayed in the main text cell instead of dist./time.  Separating text cells requires at least one empty space; otherwise the tildes will be treated as a signature.   Text cells in icon rows   {{Routemap |title=Example 1.3 |map= ENDEa~~ ~~ ~~Reversing siding SPLa cPLT\vSTR\cPLT~~Station d*1\cPLT\vSTR\cPLT\d*2~~ ~~ ~~Platform numbers cPLT\vSTR\cPLT vCONTfge~~ ~~ ~~''to City'' }}  The asterisk indicating a text cell can be preceded by one of the BSicons' width prefixes. (Normal BSicons are square.)   Letters c  d  cd    b  s  bs  w Width       1  2  4  6  8   Icon overlay, icon link, background color and colspan  {{Routemap |title=Example 2.1 |map= -colspan-1 Icon overlay uSTRq!~STR2!~BHF!~lHUB\\dSTR!~uSTRq\dSTR!~dNULf -colspan-2-style=border-bottom:5px solid red; ---- icon link utBHF!@Superhub -colspan ---- background color -colspan-end utSTR~~ ~~ ~~ ~~ ~~bg=#7af }}  Overlay separator "exclamation mark-tilde" (!~) must follow the icon ID which is to be overlaid.  Overlay is practically unlimited, but legibility should be taken into account.  The width of the underlying icon determines the width of the combination, even if less than the overlay. The icons are aligned with their left edges together, so that they will not be centered on each other if they differ in width. If the overlay extends past the underlying icon, it will overlay the following icon (but not the following icon's overlay).  When using icon overlay and icon link for the same icon cell, the icon link separator (!@) must follow the last (top) overlaying icon ID.  The background color parameter (bg=) requires 5 sets of preceding text separators to be recognizable even if there is no text on that row whatsoever.   Other formatting options    Rows   Aside from bg=, there are several other parameters, separated by commas (,), which can be used to customize the display of a row. Only bg= can be used to change the display of icons; all others only affect text cells.  Row parametersParameter nameValuesResultbg=, background= or bgcolor=Any X11 color name, RGB hex triplet or other valid values of the CSS background propertyRow background is coloredcolor= or colour=Any X11 color name or RGB hex tripletText cells in a row are coloredb= or bold=1, yes, y or trueText cells in a row are emboldenedi=, it= or italic=1, yes, y or trueText cells in a row are italicizedalign=No or invalid valueText in cells is centered horizontally and verticallyl or leftText in cells is aligned to the leftr or rightText in cells is aligned to the righta, t or topText in cells is aligned to the tope, b or bottomText in cells is aligned to the bottomla, tl, c4, nw, top-left or topleftText in cells is aligned to the top-left cornerra, tr, c1, ne, top-right or toprightText in cells is aligned to the top-right cornerle, bl, c3, sw, bottom-left or bottomleftText in cells is aligned to the bottom-left cornerre, br, c2, se, bottom-right or bottomrightText in cells is aligned to the bottom-right cornerfontsize=No valueText in cells is 10px high and is transformed to be narrower (example)info or mainText in cells is the same size as the large sidebar text (second column from center)cmt or commentText in cells is the same size as the small sidebar text (other columns)Any valid values of the CSS font-size propertyText in cells is a different size (percentages are relative to the large sidebar text)   Individual cells/icons    Parameters for a single icon or text cell (e.g. BHF, *Text) are preceded by two underscores (__).  Parameters for the contents of a table cell (a stack of overlaid objects, or a single icon or text box with no overlays) are preceded by an exclamation mark and an underscore (!_). This must follow the link (if any).  For the last overlaid item in a stack, the individual item parameters (if any) must precede the stack parameters.  Most of the parameters are the same as those for rows, but there are a few additional ones. Additionally, the values for align=, bg= and color= will override the row parameter values.  Icon, text box and overlay stack parametersParameter nameValuesResultbg=, background= or bgcolor=Any X11 color name, RGB hex triplet or other valid values of the CSS background propertyBackground is coloredThis should not be used with overlays above icons.color= or colour=Any X11 color name or RGB hex tripletAll the text of a cell, or the text of an individual text box, is coloredb= or bold=1, yes, y or trueBoldfaced texti=, it= or italic=1, yes, y or trueItalicized textalign=No or invalid valueText is aligned per parameters of its parent (default: centered vertically and horizontally)l or leftText is aligned to… (vertical / horizontal)"Inherit" indicates that the cell will inherit its parent's value for that axis.inheritleftr or rightinheritrighta, t or toptopinherite, b or bottombottominheritla, tl, c4, nw, top-left or toplefttopleftra, tr, c1, ne, top-right or toprighttoprightle, bl, c3, sw, bottom-left or bottomleftbottomleftre, br, c2, se, bottom-right or bottomrightbottomrightc, center or centreinheritcenterm or middlemiddleinheritma, tc, top-center, top-centre, topcenter or topcentretopcenterme, bc, bottom-center, bottom-centre, bottomcenter or bottomcentrebottomcenterlm, ml, middle-left or middleleftmiddleleftrm, mr, middle-right or middlerightmiddlerightcm, mc, middle-center, middle-centre, middlecenter or middlecentremiddlecenterfontsize=No valueText is 10px high and is transformed to be narrower (example)info or mainText is the same size as the large sidebar text (second column from center)cmt or commentText is the same size as the small sidebar text (other columns)Any valid values of the CSS font-size propertyText is a different size (percentages are relative to the large sidebar text)abbr=Pretty much anything that doesn't mess up the MediaWiki markupText has dotted underline and a tooltip containing the text after abbr=This will not have any effect if used on an overlay stack.   Collapsible   <nowiki>{{Routemap |title=Example 3.1: Basic collapsible |text-width=80 |map= -startCollapsible-collapsed \KBHFa\~~terminus hSTRa@g WASSERq\hKRZW\WASSERq~~ ~~ ~~ ~~bridge hSTRe@f -endCollapsible- LDER\INT\~~ ~~station~~transfer for HSR \KBHFe\BUS~~ ~~terminus~~bus terminal }}</nowiki> <nowiki>{{Routemap |title=Example 3.2:<br/>Mixed odd and even rows |tw=70 |map= -startCollapsible-collapsed d\KBHFa\d~~terminus hKRZWae~~ ~~ ~~bridge -endCollapsible- BS2+l\BS2+r~~junction }}</nowiki>  Adjust  (or ) parameter until there is no break.  Unit is "px" by default, but other units such as "em" are acceptable.  Check the map in different browser and in mobile view, and increase text-width if it breaks.  The icon number of the first row of collapsible section must be equal to or greater than the icon number of the widest non-collapsible row.  As in example 3.2, use half-width empty icon  as filler when you are mixing both odd and even rows in the same map.  Changing "collapsed" to "nil" will change the default state of the collapible section to uncollapsed.   Collapsible replacement   <nowiki>{{Routemap |title=Example 4.1 |text-width=150 |map= KBHFa~~terminus -startCollapsible-collapsed-replace \LSTR\~~hidden section \hSTRa@g\ WASSERq\hKRZW\WASSERq~~ ~~ ~~viaduct hSTRe@f -endCollapsible- LDER\INT\~~ ~~station~~transfer for HSR \KBHFe\BUS~~ ~~terminus~~bus terminal }}</nowiki> <nowiki>{{Routemap |title=Example 4.2: Empty filler |text-width=150 |map= -startCollapsible-collapsed-replace exCONTg~~under construction leer exKBHFa~~future terminus exBHF~~future station -endCollapsible KBHFxa~~terminus KBHFe~~terminus }}</nowiki>  Both replacement and replaced rows must be as wide as the widest non-collapsible row in the diagram.  If you want to hide the replaced row after expanding the collapsible, use icon  as empty filler as in example 4.2.  In any case, mind to provide a sufficient text-width. Here, using text-width=120 would break the alignment of the icons.  Collapsible elements are intentionally disabled in mobile view, so the replaced row will never be visible. Keep this in mind while creating a diagram.   Dual text sidebar   For larger and more complicated diagrams, it often helps to have a text sidebar on the left as well as the right.  or  <nowiki>{{Routemap |title=Example 5 |map= ~~km! !~~km~~ commuter terminus~~0! !uKBHFa\\KBHFa~~0~~regional terminus River Boris~~ ~~! !uhKRZWae\WASSERq\hKRZWae~~ ~~ ~~bridge transfer for HSR~~station~~1! !uINT\LDER\LSTR commuter terminus~~2! !uKBHFe\\KBHFe~~2~~regional terminus }}</nowiki>  Left text cells require "exclamation mark-space-exclamation mark" (! !) separating them from icon cells.  If there is no "tilde-tilde" (~~) separator to the left of "exclamation mark-space-exclamation mark", the text to the left of the separator will be displayed in the left main text cell.   Dual text sidebar collapsible  {|class="wikitable" |- ! Code !! Result |- | {{demo|{{Routemap |title=Example 6.1: All text cells applied |text-width=,130,,,110, |map= ~~km! !\\~~km~~ -startCollapsible commuter terminus~~0{{0|00}}! !uKBHFa\leer\KBHFa~~{{0|00}}0~~regional terminus River Boris~~ ~~! !uhKRZWae\WASSERq\hKRZWae~~~~ ~~bridge -endCollapsible transfer for HSR~~station~~1! !uINT\LDER\LSTR commuter terminus~~2{{0|00}}! !uKBHFe\\KBHFe~~{{0|00}}2~~regional terminus }} |br=}} |- | </code> ending after the map code) and show preview. It will generate the safesubst version and show the original versions (for comparison) of the map code. You copy the safesubst code from the preview area back to the edit area, and you should remove everything of #invoke:Routemap|convertbs if the preview of the new code works properly.  On the English Wikipedia, the template  can be used as a shortcut:  <nowiki>{{subst:convertbs|1=  }}</nowiki>  If it doesn't work, it's possible that you haven't copied some of the relevant code, such as table markup for BS-table diagrams, or that you've copied code which actually belongs to something else.  Example<nowiki>{{#invoke:Routemap|convertbs|<nowiki> {{BS-map |title=Demonstration |map= {{BS|KBHFa|0 km|A station|Shuttle bus}} {{BS3|WASSERq|hKRZWae|WASSERq||||{{BSsplit|Suburb|Capital}}}} {{BS|KINTe|10 km|B station|City hub}} {{BS-colspan}} ---- Not to scale }} </nowiki></nowiki><nowiki>}}</nowiki>ResultCopy safe substitution markup for actual usage   Embedding into infobox   Use  to remove title bar and table border. If creating a separate template which will be embedded into an infobox, wrap inline=1 in <includeonly> tags. Also  is helpful to locate the  better. <nowiki>{{Infobox station | name = {{color box|orange}} Station layout | image = Placeholder.png | image_upright = 0.5 | image_caption = Platform level | opened = {{Start date|1935|05|15|df=y}} | tracks = 2 | route_map = {{routemap|inline=1|navbar=asd|navbar pos=2| KBHFa~~terminus WASSERq\hKRZWae\WASSERq~~ ~~ ~~ ~~Bridge LDER\INT\~~1 km~~station~~transfer for HSR \KBHFe\BUS~~2 km~~terminus~~bus terminal }} }}</nowiki>   টেমপ্লেটতথ্য