Difference between revisions of "Template:BSsrws/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
imported>Jc86035
m
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
 +
{{Lua|Module:Routemap}}
  
 
== Usage ==
 
== Usage ==
Line 6: Line 7:
 
This template displays a [[railway station]] name split over two lines of text in a text field of a [[Wikipedia:Route diagram template|route diagram]] created with {{tl|BS-map}}.
 
This template displays a [[railway station]] name split over two lines of text in a text field of a [[Wikipedia:Route diagram template|route diagram]] created with {{tl|BS-map}}.
  
<!--* The text will inherit the alignment of the parent cell, but can be overridden by applying the parameter "<code>align=left</code>" or "<code>align=right</code>".-->
+
* The text will inherit the alignment of the parent cell, but can be overridden by applying the parameter "<code>align=left</code>" or "<code>align=right</code>".
 
* The first and second parameters are the two lines. They are combined to form the station name. The words <code>railway station</code> are not needed.
 
* The first and second parameters are the two lines. They are combined to form the station name. The words <code>railway station</code> are not needed.
 
* The third parameter (alternatively "<code>3=</code>" or "<code>S=</code>") will change the default words "railway station" in the link to its contents.
 
* The third parameter (alternatively "<code>3=</code>" or "<code>S=</code>") will change the default words "railway station" in the link to its contents.

Revision as of 09:11, 26 June 2016

Usage

This template displays a railway station name split over 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" or "align=right".
  • The first and second parameters are the two lines. They are combined to form the station name. The words railway station are not needed.
  • The third parameter (alternatively "3=" or "S=") will change the default words "railway station" in the link to its contents.
  • 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 html color or hex triplet for the parameters "bg1=" (top line) and "bg2=" (bottom line).

Examples

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 text with a wikilink
  • {{BSto}} for two lines of unequal-height text
  • {{BScvt}} for two distances

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