Difference between revisions of "Template:BSsplit/doc"
Jump to navigation
Jump to search
imported>Useddenim (→Usage: align=center) |
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
||
| Line 21: | Line 21: | ||
|map= | |map= | ||
{{BS||<big>'''Input:'''</big>}} | {{BS||<big>'''Input:'''</big>}} | ||
| − | {{BS|||< | + | {{BS|||<kbd><nowiki>{{BSsplit|opened 1900|closed 1969}}</nowiki></kbd>}} |
{{BS||<big>'''Result:'''</big>}} | {{BS||<big>'''Result:'''</big>}} | ||
{{BS|eBHF|{{BSsplit|opened 1900|closed 1969}}|Station}} | {{BS|eBHF|{{BSsplit|opened 1900|closed 1969}}|Station}} | ||
{{BS|| }} | {{BS|| }} | ||
{{BS||<big>'''Input:'''</big>}} | {{BS||<big>'''Input:'''</big>}} | ||
| − | {{BS|||< | + | {{BS|||<kbd><nowiki>{{BSsplit|open|9 am–3 pm|align=left}}</nowiki></kbd>}} |
{{BS||<big>'''Result:'''</big>}} | {{BS||<big>'''Result:'''</big>}} | ||
{{BS|pBHF|{{BSsplit|open|9 am–3 pm|align=left}}|Station}} | {{BS|pBHF|{{BSsplit|open|9 am–3 pm|align=left}}|Station}} | ||
{{BS|| }} | {{BS|| }} | ||
{{BS||<big>'''Input:'''</big>}} | {{BS||<big>'''Input:'''</big>}} | ||
| − | {{BS|||< | + | {{BS|||<kbd><nowiki>{{BSsplit|Llanfairpwllgwyngyllgogerychwyrn-|drobwllllantysiliogogogoch|Llanfairpwllgwyngyll}}</nowiki></kbd>}} |
{{BS||<big>'''Result:'''</big>}} | {{BS||<big>'''Result:'''</big>}} | ||
{{BS|HST||{{BSsplit|Llanfairpwllgwyngyllgogerychwyrn-|drobwllllantysiliogogogoch|Llanfairpwllgwyngyll}} }} | {{BS|HST||{{BSsplit|Llanfairpwllgwyngyllgogerychwyrn-|drobwllllantysiliogogogoch|Llanfairpwllgwyngyll}} }} | ||
{{BS|| }} | {{BS|| }} | ||
{{BS||<big>'''Input:'''</big>}} | {{BS||<big>'''Input:'''</big>}} | ||
| − | {{BS|||< | + | {{BS|||<kbd><nowiki>{{BSsplit|DC|AC|line=yes}}</nowiki></kbd>}} |
{{BS||<big>'''Result:'''</big>}} | {{BS||<big>'''Result:'''</big>}} | ||
{{BS|STR+GRZq|{{BSsplit|DC|AC|line=yes}}|}} | {{BS|STR+GRZq|{{BSsplit|DC|AC|line=yes}}|}} | ||
{{BS||| }} | {{BS||| }} | ||
{{BS||<big>'''Input:'''</big>}} | {{BS||<big>'''Input:'''</big>}} | ||
| − | {{BS|||< | + | {{BS|||<kbd><nowiki>{{BSsplit|Zone A|free-fare|4=it|line=yes|5=b}}</nowiki></kbd>}} |
{{BS||<big>'''Result:'''</big>}} | {{BS||<big>'''Result:'''</big>}} | ||
{{BS|STR+GRZq|{{BSsplit|Zone A|free-fare|4=it|line=yes|5=b}}}} | {{BS|STR+GRZq|{{BSsplit|Zone A|free-fare|4=it|line=yes|5=b}}}} | ||
{{BS||| }} | {{BS||| }} | ||
{{BS||<big>'''Input:'''</big>}} | {{BS||<big>'''Input:'''</big>}} | ||
| − | {{BS|||< | + | {{BS|||<kbd><nowiki>{{BSsplit|Canada|USA|bg1=#f00|bg2=lightblue|align=center}}</nowiki></kbd>}} |
{{BS||<big>'''Result:'''</big>}} | {{BS||<big>'''Result:'''</big>}} | ||
{{BS|eBHF|{{BSsplit|Canada|USA|bg1=#f00|bg2=lightblue|align=center}}}} | {{BS|eBHF|{{BSsplit|Canada|USA|bg1=#f00|bg2=lightblue|align=center}}}} | ||
Revision as of 05:30, 5 August 2018
| 40px | This is a documentation subpage for Template:BSsplit. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Usage
This template displays two lines of text in a text field of a route diagram created with {{BS-map}}.
- The text will inherit the alignment of the parent cell, but can be overridden by applying the parameter
|align=left,|align=center, or|align=right. - The third parameter (alternatively
|L=) defines a shared wikilink for both lines of text (no[[or]]are needed). - The fourth parameter (alternatively
|4=) will change both lines to italic text. Any character or text can be used. - The fifth parameter (alternatively
|5=) will change both lines to bold text. Any character or text can be used. - The separating line can be forced to appear by providing an argument for the parameter
|line=anything. - Background colors can be specified by providing a valid X11 color name (e.g. Template:Tt) or RGB hex triplet (e.g. Template:Tt) for the parameters
|bg1=(top line) and|bg2=(bottom line).
Examples
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also
- {{BSsrws}} for a railway station name on two lines
- {{BSto}} for two lines of unequal-height text
- {{BScvt}} for two distances
See project:ROUTE#Fractional text display template for usage instruction.