Difference between revisions of "Template:BSsplit/doc"
Jump to navigation
Jump to search
imported>JJMC89 bot m (Replace BSicon: eGRENZE → STR+GRZq) |
imported>Useddenim (→Usage: {{para}}; {{code}}) |
||
| Line 7: | Line 7: | ||
This template displays two lines of text in a text field of a [[Wikipedia:Route diagram template|route diagram]] created with {{tl|BS-map}}. | This template displays 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 | + | * The text will inherit the alignment of the parent cell, but can be overridden by applying the parameter {{para|align|left}} or {{para|align|right}}. |
| − | * The third parameter (alternatively | + | * The third parameter (alternatively {{para|L}}) defines a shared wikilink for both lines of text (no {{code|<nowiki>[[</nowiki>}} or {{code|]]}} are needed). |
| − | * The fourth parameter (alternatively | + | * The fourth parameter (alternatively {{para|4}}) will change both lines to ''italic'' text. Any character or text can be used. |
| − | * The fifth parameter (alternatively | + | * The fifth parameter (alternatively {{para|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 | + | * The separating line can be forced to appear by providing an argument for the parameter {{para|line|''anything''}}. |
| − | * Background colors can be specified by providing a valid [[Web colors#X11 color names|X11 color name]] (e.g. | + | * Background colors can be specified by providing a valid [[Web colors#X11 color names|X11 color name]] (e.g. {{color|HotPink|{{tt|HotPink}}}}) or [[Web colors#Hex triplet|RGB hex triplet]] (e.g. {{color|#12A3BC|{{tt|#12A3BC}}}}) for the parameters {{para|bg1}} (top line) and {{para|bg2}} (bottom line). |
| − | |||
| − | |||
=== Examples === | === Examples === | ||
Revision as of 16:04, 5 November 2017
| 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=leftor|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.