Difference between revisions of "Template:BSto/doc"
Jump to navigation
Jump to search
imported>JJMC89 bot m (Replace BSicon(s): ABZrf→ABZgr, ABZlf→ABZgl) |
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 25: | Line 25: | ||
|map= | |map= | ||
'''Input:'''! !STR!~MFADEg~~'''Result:''' | '''Input:'''! !STR!~MFADEg~~'''Result:''' | ||
| − | < | + | <kbd><nowiki>{{BSto|Line Name|to Destination}}</nowiki></kbd>! !dCONTgq\ABZgr\d~~{{BSto|Line Name|to Destination}} |
! !STR | ! !STR | ||
'''Input:'''! !STR~~'''Result:''' | '''Input:'''! !STR~~'''Result:''' | ||
| − | < | + | <kbd><nowiki>{{BSto|Other Route|to Somewhere Else|align=right}}</nowiki></kbd>! !d\ABZgl\dCONTfq~~{{BSto|Other Route|to Somewhere Else|align=right}} |
! !STR | ! !STR | ||
'''Input:'''! !STR~~'''Result:''' | '''Input:'''! !STR~~'''Result:''' | ||
| − | < | + | <kbd><nowiki>{{BSto|Station|for Nearby Town|Railway station|it=off}}</nowiki></kbd>! !HST~~{{BSto|Station|for Nearby Town|Railway station|it=off}} |
! !STR | ! !STR | ||
'''Input:'''! !STR~~'''Result:''' | '''Input:'''! !STR~~'''Result:''' | ||
| − | < | + | <kbd><nowiki>{{BSto|Blue Line|to Terminus|it=all|bg1=#90C0FF}}</nowiki></kbd>! !CONTf~~{{BSto/sandbox|Blue Line|to Terminus|it=all|bg1=#90C0FF}} |
}} | }} | ||
}} | }} | ||
Revision as of 05:30, 5 August 2018
| 40px | This is a documentation subpage for Template:BSto. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
This is a variant of {{BSsplit}} that has the text in two different sizes.
See project:ROUTE#Fractional text display template for usage instruction.
Contents
Usage
This template displays two lines of text in a text field of route diagram created with {{BS-map}}. It is intended for labeling connecting routes or adding other secondary information, as the second line is smaller and italicized.
- The optional third parameter will provide a wikilink for the text.
- The optional
alignparameter will left- or right-justify text; if omitted it will default to “inherit”. - The optional
itparameter controls italicization:it=alldisplays both lines in italics;it=offdisplays the second line in normal text.
- A 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.
HotPink) or RGB hex triplet (e.g.#12A3BC) for the parameters "bg1=" (top line) and "bg2=" (bottom line).
Example
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Incorrect uses
If either line of text is empty, the page that the template is used on will be a member of Category:Pages using BSto or BSsrws with missing text values.
See also
- {{BSsplit}} for two lines of equal-height text
- {{BSsrws}} for a railway station name on two lines
- {{BScvt}} for two distances
- Wikipedia:Route diagram template