The markup for composing the diagram in {{{map}}} parameter is different than the legacy BS row templates. The major difference is the separators for separating icon IDs and text of each row. There is no need to call new BS row template for each new row because the hard return itself serves as a separator for calling another new table row in the diagram. You can use other supplementary templates like {{rmr}} in the text cell as usual, but be aware that special treatment is required for templates like {{BSsplit}} and {{BSto}} because they are essentially calling another new table for formatting.
Basic
icon id\icon id\icon id~~dist./time~~main text~~remark~~right remark
or
icon id\icon id\icon id~~main text
Flere oplysninger Example 1 ...
{{Routemap
|title=Example 1
|map=
KBHFa~~terminus
WASSERq\hKRZW\WASSERq~~ ~~ ~~ ~~Bridge
LDER\INT\~~1 km~~station~~transfer for HSR
\KBHFe\BUS~~2 km~~terminus~~bus terminal
}} |
|
|
|
|
|
|
terminus |
|
|
|
|
|
Bridge |
|
|
|
1 km |
station transfer for HSR |
|
|
|
2 km |
terminus bus terminal |
|
|
|
|
|
|
|
|
|
Luk
- The separator between icon IDs uses backslash (
\
) instead of slash (/
commonly used by XML closing tag).
- 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 it will be treated as a signature.
Icon overlay, icon link, background color and colspan
Flere oplysninger Example 2 ...
{{Routemap
|title=Example 2
|map=
-colspan-1
Icon overlay
uSTRq!~STR2!~BHF!~lHUB
-colspan-2-style=border-bottom:5px solid red;
----
icon link
utBHF!@Superhub
-colspan
----
background color
-colspan-end
utSTR~~ ~~ ~~ ~~ ~~bg=#7af
}} |
|
|
Icon overlay |
|
|
|
|
|
icon link |
|
|
|
|
|
background color |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Luk
- 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.
- 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 separator (
~~bg=
) requires 4 sets of preceding text separators to be recognizable even if there is no text on that row whatsoever.
Collapsible
Flere oplysninger Example 3.1: Basic collapsible ...
{{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
}} |
Example 3.1: Basic collapsible |
|
|
|
|
|
|
station transfer for HSR |
|
|
|
|
terminus bus terminal |
|
|
|
|
|
|
|
|
|
Luk
Flere oplysninger Example 3.2: Mixed odd and even rows ...
{{Routemap
|title=Example 3.2: Mixed odd and even rows
|tw=70
|map=
-startCollapsible-collapsed
d\KBHFa\d~~terminus
hKRZW~~ ~~ ~~ ~~bridge
-endCollapsible-
BS2+l\BS2+r~~junction
}} |
Example 3.2: Mixed odd and even rows |
|
|
|
Luk
- Adjust {{{text-width}}} (or tw) parameter until there is no break.
- Unit "px" by default, but other units such as "em" are acceptable.
- Check the map in different browser and increase text-width if it breaks.
- The icon number of the first row of collapsible section must equal to or greater than the icon number of the widest non-collapsible row.
- As in example 3.2, use half width empty icon Skabelon:Bsq as filler when you are mixing both odd and even rows in the same map.
- Change "collapsed" to "nil" will change the default state of the collapible to uncollapsed.
Collapsible replacement
Flere oplysninger Example 4.1, Example 4.2: Empty filler ...
{{Routemap
|title=Example 4.1
|text-width=150
|map=
KBHFa~~terminus
-startCollapsible-collapsed-replace
\LSTR\~~dispensable section
\hSTRa@g\
WASSERq\hKRZW\WASSERq~~ ~~ ~~ ~~bridge
hSTRe@f
-endCollapsible-
LDER\INT\~~ ~~station~~transfer for HSR
\KBHFe\BUS~~ ~~terminus~~bus terminal
}} |
|
|
|
|
|
|
terminus |
|
|
|
|
|
station transfer for HSR |
|
|
|
|
terminus bus terminal |
|
|
|
|
|
|
|
|
|
{{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
}} |
Example 4.2: Empty filler |
|
|
|
|
|
|
|
|
|
|
|
|
|
future terminus |
|
|
|
|
future station |
|
|
|
|
|
terminus |
|
|
|
|
terminus |
|
|
|
|
|
|
|
|
|
Luk
- The icon number of both replacement and replaced rows must equal to or greater than the icon number of the widest non-collapsible row.
- If you want to hide the replaced row after expanding the collapsible, use icon Skabelon:Bsq as empty filler as in example 4.2.
- In any case, mind to provide a sufficient text-width. Using here text-width=120 would break the alignment of the icons.
Dual text cell
left-left remark~~left remark~~left main text~~left dist./time! !icon id~~right dist./time~~right main text~~right remark~~right-right remark
or
left main text! !icon id~~right main text
Flere oplysninger Example 5 ...
{{Routemap
|title=Example 5
|map=
commuter terminus! !uKBHFa\\KBHFa~~regional terminus
River Boris~~ ~~ ~~! !uhKRZW\WASSERq\hKRZW~~ ~~ ~~ ~~bridge
transfer for HSR~~station~~1 km! !uINT\LDER\LSTR
commuter terminus~~2 km! !uKBHFe\\KBHFe~~2 km~~regional terminus
}} |
|
|
commuter terminus |
|
|
|
regional terminus |
River Boris |
|
|
|
|
|
bridge |
transfer for HSR station |
1 km |
|
|
|
commuter terminus |
2 km |
|
2 km |
regional terminus |
|
|
|
|
|
|
|
|
|
Luk
- Left text cells require "exclamation mark-space-exclamation mark" (
! !
) to separate 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 icon cells will be displayed in left main text cell.
Dual text cell collapsible
Flere oplysninger Example 6.1: All text cells applied ...
{{Routemap
|title=Example 6.1: All text cells applied
|style=width:540px
|text-width=65,150,30,30,120,
|map=
-startCollapsible
commuter terminus! !uKBHFa\leer\KBHFa~~regional terminus
River Boris~~ ~~ ~~! !uhKRZW\WASSERq\hKRZW~~ ~~ ~~ ~~bridge
-endCollapsible
transfer for HSR~~station~~1 km! !uINT\LDER\LSTR
commuter terminus~~2 km! !uKBHFe\\KBHFe~~2 km~~regional terminus
}} |
Example 6.1: All text cells applied |
|
|
commuter terminus |
|
|
|
|
|
River Boris |
|
|
|
|
|
bridge |
|
transfer for HSR station |
1 km |
|
|
|
commuter terminus |
2 km |
|
2 km |
regional terminus |
|
|
|
|
|
|
|
|
|
Luk
Flere oplysninger Example 6.2: Only main text cell applied ...
{{Routemap
|map-title=Example 6.2: Only main text cell applied
|style=width:380px
|text-width=,120,,,120,
|map=
-startCollapsible
commuter terminus! !uKBHFa\\KBHFa~~regional terminus
River Boris! !uhKRZW\WASSERq\hKRZW~~bridge
-endCollapsible
station! !uINT\LDER\LSTR
commuter terminus! !uKBHFe\\KBHFe~~regional terminus
}} |
Example 6.2: Only main text cell applied |
|
|
commuter terminus |
|
|
|
|
|
River Boris |
|
|
|
bridge |
|
station |
|
|
|
|
commuter terminus |
|
|
|
regional terminus |
|
|
|
|
|
|
|
|
|
Luk
- Apply {{{text-width}}} to eliminate the break:
- Only 1 value:
right main text+right remark
- 3 values, separated by commas:
right dist./time,right main text+right remark,right-right remark
- 6 values:
Left-left remark,left remark+left main text,left dist./time,right dist./time,right main text+right remark,right-right remark
- If the amount of values does not equal to 1, 3 or 6, the whole parameter will be ignored.
- If the text width of right-right remark is shorter to some degree, its width definition can be omitted, as in example 6.1.
- If the entire map never uses a specific text cell, that width definition can be omitted, as in example 6.2.
- Define the general table width in {{{style}}} parameter as well if {{{text-width}}} alone is ineffective to prevent the break.
- If the empty icon cell of the collapsible row is being squashed, use empty icon Skabelon:Bsq to fixate the icon columns.
If you use these templates, the vertical line separator (|
) right after the template name must be converted to {{!}} otherwise you will get a mess of unprocessed markups.
Flere oplysninger Example 7.1: Correct usage ...
{{Routemap
|title=Example 7.1: Correct usage
|map=
BHF~~{{BSsplit{{!}}upper|lower}}
}}
}} |
Example 7.1: Correct usage |
|
|
|
Luk
{{Routemap
|title=Example 7.2: Wrong usage
|map=
BHF~~{{BSto{{!}}upper|lower}}
}}
}} |
|