• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:BSto

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 6,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Routemap

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

  • 1 Usage
    • 1.1 Example
  • 2 Incorrect uses
  • 3 See also

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 align parameter will left- or right-justify text; if omitted it will default to “inherit”.
  • The optional it parameter controls italicization:
    • it=all displays both lines in italics;
    • it=off displays 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).

Note: This template will disrupt row spacing when used in the first (main) text area.

Example

Input:
Result:
{{BSto|Line Name|to Destination}}
Line Name
to Destination
 
Input:
Result:
{{BSto|Other Route|to Somewhere Else|align=right}}
Other Route
to Somewhere Else
 
 
Input:
Result:
{{BSto|Station|for Nearby Town|Railway station|it=off}}
Station
for Nearby Town
 
Input:
Result:
{{BSto|Blue Line|to Terminus|it=all|bg1=#90C0FF}}
Blue Line
to Terminus

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
The above documentation is transcluded from Template:BSto/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:BSto&oldid=5875"
Categories:
  • Lua-based templates
  • Template documentation pages
  • Rail routemap templates
Last edited on 7 November 2016, at 10:34

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 7 November 2016, at 10:34.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop