แม่แบบ:Rail color box
หน้านี้เป็นส่วนหนึ่งของ |
มอดูล:Adjacent stations |
---|
(คุย | กระบะทราย | หน้าย่อย) |
{{กล่องข้อมูล สถานี}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
{{Station link}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
{{Rail color}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
{{Line link}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
{{Rail icon}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
{{Rail color box}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
{{Adjacent stations}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
{{Line terminus link}} |
(คุย | กระบะทราย | ชุดทดสอบ) |
![]() | แม่แบบนี้ใช้ลูอา |
แม่แบบ:Rail color box สามารถใช้งานได้ในบทความสถานีรถไฟหรือเส้นทางรถไฟต่าง ๆ โดยจะแสดงลิงก์บทความและสีของเส้นทางรถไฟสายนั้น ๆ
การใช้งาน[แก้]
{{Rail color box|system=|line=|inline=|type=|note=}}
พารามิเตอร์ | คำอธิบาย |
---|---|
system or 1
|
An identifier to specify which system's color and line article name convention should be used. Either Module:Adjacent stations/system or Template:system color must exist, e.g. Template:RE-BB color or Module:Adjacent stations/Taipei Metro
|
line or 2
|
The line or service to be linked. |
inline or 3
|
An optional parameter to create a color box and link suitable for use inline with other text. Valid arguments are listed in the table below. |
type
|
This adds " – type" to the end, where type is the parameter value (which may be changed by a module subpage), and also passes the value to the data template or module. Typically a service or branch of the line. |
note
|
An optional note with more information added at the end. |
พารามิเตอร์ | คำอธิบาย | ตัวอย่าง | ตัวอย่าง |
---|---|---|---|
yes | Inline color box with link. | สายสีน้ำเงิน | สายสีม่วง |
small | Line strip with link. | สายสีน้ำเงิน | สายสีม่วง |
dot | Small circle with link. | ● สายสีน้ำเงิน | ● สายสีม่วง |
square | Small square with link. | ■ สายสีน้ำเงิน | ■ สายสีม่วง |
link | Linked box. | ||
ldot | Linked small circle. | ● | ● |
lsquare | Linked small square. | ■ | ■ |
box | Box with link omitted. | ||
route | Box with text. | สายสีน้ำเงิน | สายสีม่วง |
croute | Box with text and border radius. | สายสีน้ำเงิน | สายสีม่วง |
xroute | Transparent box with text and border radius. | สายสีน้ำเงิน | สายสีม่วง |
Variants[แก้]
Template | Description | Example |
---|---|---|
{{Color box}} | Color box size with black borders and text color. Standard size. | or ORANGE |
{{Color box striped}} | Striped color box. Standard size. | |
{{RouteBox}} | Borderless color box with text color and wikilinks. | ORANGE |
{{Colorbull}} | Colored bullet with wikilinks. | ■ |
{{Legend inline}} | Color box size with black borders. Standard size. | |
{{Color sample}} | Color box size with black borders. Smaller size. | |
{{Swatch inline}} | orange | |
{{Background color}} | orange | |
{{Rail color box}} | A version with more display options. Part of Module:Adjacent stations | ●, Orange |
{{Diagonal split color box}} | Color box split diagonally. Standard size. |
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Rail color box/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |