Template:BSto

From blackwiki
Revision as of 10:22, 21 June 2016 by imported>Jc86035 (slightly more readable)
Jump to navigation Jump to search


50px Template documentation[view] [edit] [history] [purge]

This is a variant of {{BSsplit}} that has the text in two different sizes.

See project:ROUTE#Fractional text display template for usage instruction.

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}}
[[File:BSicon_{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:inherit; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;".svg|x20px|link=|alt=|{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:inherit; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;"]]
 
Input: Result:
{{BSto|Other Route|to Somewhere Else|align=right}}
[[File:BSicon_{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:right; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;".svg|x20px|link=|alt=|{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:right; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;"]]
 
Input: Result:
{{BSto|Station|for Nearby Town|Railway station|it=off}}
[[File:BSicon_{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:inherit; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;".svg|x20px|link=|alt=|{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:inherit; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;"]]
 
Input: Result:
{{BSto|Blue Line|to Terminus|it=all|bg1=#90C0FF}}
[[File:BSicon_{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:inherit; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;".svg|x20px|link=|alt=|{| cellspacing="0" cellpadding="0" style="font-size:80%; text-align:inherit; color:inherit; margin-top:-2px; margin-bottom:-2px; display:inline-table;vertical-align:middle;"]]

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