• Trang chính
  • Ngẫu nhiên
  • Đăng nhập
  • Tùy chọn
  • Giới thiệu Wikipedia
  • Lời phủ nhận
Wikibeta, Bách khoa tri thức mở

Bản mẫu:BSsplit

  • Ngôn ngữ
  • Theo dõi
  • Xem mã nguồn
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]
Bản mẫu này sử dụng Lua:
  • Mô đun:Routemap

Cách sử dụng

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=left" 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).

If a use of this template can be replaced with {{BSsrws}} (a station link on two lines) then pages containing it will be in Thể loại:Trang sử dụng BSsplit thay vì BSsrws.

Các ví dụ

Cho vào:
{{BSsplit|opened 1900|closed 1969}}
Kết quả:
Tập tin:BSicon eBHF.svg
opened 1900
closed 1969
Station
 
Cho vào:
{{BSsplit|open|9 am–3 pm|align=left}}
Kết quả:
open
9 am–3 pm
Station
 
Cho vào:
{{BSsplit|Llanfairpwllgwyngyllgogerychwyrn-|drobwllllantysiliogogogoch|Llanfairpwllgwyngyll}}
Kết quả:
Llanfairpwllgwyngyllgogerychwyrn-
drobwllllantysiliogogogoch
 
Cho vào:
{{BSsplit|DC|AC|line=yes}}
Kết quả:
DC
AC
 
Cho vào:
{{BSsplit|Zone A|free-fare|4=it|line=yes|5=b}}
Kết quả:
Zone A
free-fare
 
Cho vào:
{{BSsplit|Canada|USA|bg1=#f00|bg2=lightblue|align=center}}
Kết quả:
Tập tin:BSicon eBHF.svg
Canada
USA

Note: Text in the  Time/Dist. column is normally right-aligned.

Xem thêm

  • {{BSsrws}} for a railway station name on two lines
  • {{BSto}} for two lines of unequal-height text
  • {{BScvt}} for two distances

See dự án:ROUTE#Fractional text display template for usage instruction.

Tài liệu bên trên được truyền tải từ Bản mẫu:BSsplit/doc. (sửa | lịch sử)
Biên tập viên sửa đổi có thể thử nghiệm trong các trang chỗ thử (tạo | sao) và trường hợp kiểm thử (tạo) của bản mẫu này.
Xin hãy bổ sung các thể loại vào trang con /doc. Các trang con của bản mẫu này.
Lấy từ “https://wikibeta.org/index.php?title=Bản_mẫu:BSsplit&oldid=6371844”
Sửa đổi lần cuối lúc 11:26 vào ngày 11 tháng 2 năm 2017

Ngôn ngữ

    Trang này không có sẵn trong ngôn ngữ khác.

    Wikibeta, Bách khoa tri thức mở
    • Creative Commons Ghi công–Chia sẻ tương tự
    • Powered by MediaWiki
    • Trang này được sửa đổi lần cuối vào ngày 11 tháng 2 năm 2017, 11:26.
    • Nếu không có ghi chú khác, nội dung này được cấp phép Creative Commons Ghi công–Chia sẻ tương tự.
    • Chính sách quyền riêng tư
    • Giới thiệu Wikipedia
    • Lời phủ nhận
    • Phiên bản máy tính