• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:BSsplit

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 15,000 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 (sandbox)

Usage

This template displays two lines of text, with formatting options.

  • The text will inherit the alignment of the parent cell, but can be overridden by applying the parameter |align=left, |align=center, or |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. HotPink) or RGB hex triplet (e.g. #12A3BC) for the parameters |bg1= (top line) and |bg2= (bottom line).

Examples

Input:
{{BSsplit|opened 1900|closed 1969}}
Result:
opened 1900
closed 1969
Station
 
Input:
{{BSsplit|open|9 am–3 pm|align=left}}
Result:
open
9 am–3 pm
Station
 
Input:
{{BSsplit|Llanfairpwllgwyngyllgogerychwyrn-|drobwllllantysiliogogogoch|Llanfairpwllgwyngyll}}
Result:
Llanfairpwllgwyngyllgogerychwyrn-
drobwllllantysiliogogogoch
 
Input:
{{BSsplit|DC|AC|line=yes}}
Result:
DC
AC
 
Input:
{{BSsplit|Zone A|free-fare|4=it|line=yes|5=b}}
Result:
Zone A
free-fare
 
Input:
{{BSsplit|Canada|USA|bg1=#f00|bg2=lightblue|align=center}}
Result:
Canada
USA

Note: Default text in this example is right-aligned.

See also

  • {{BSsrws}} for a railway station name on two lines
  • {{BSto}} for two lines of unequal-height text
  • {{BScvt}} for two distances
  • {{Sfrac}} for displaying fractions using a vinculum (horizontal line)

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

The above documentation is transcluded from Template:BSsplit/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:BSsplit&oldid=1210469998"
Last edited on 26 February 2024, at 19:46

Languages

    • العربية
    • অসমীয়া
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Беларуская
    • Bosanski
    • Català
    • Čeština
    • Dansk
    • Ελληνικά
    • Español
    • Euskara
    • فارسی
    • Français
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Hrvatski
    • Bahasa Indonesia
    • Italiano
    • עברית
    • Jawa
    • ქართული
    • Kurdî
    • Latviešu
    • Magyar
    • मैथिली
    • Македонски
    • മലയാളം
    • मराठी
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • မြန်မာဘာသာ
    • नेपाली
    • 日本語
    • Нохчийн
    • Norsk bokmål
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Português
    • Română
    • Русский
    • Scots
    • සිංහල
    • Simple English
    • Slovenščina
    • Српски / srpski
    • Tagalog
    • தமிழ்
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Українська
    • Tiếng Việt
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 26 February 2024, at 19:46 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop