แม่แบบ:กล่องสีรถไฟ

Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

แม่แบบ:Rail color box สามารถใช้งานได้ในบทความสถานีรถไฟหรือเส้นทางรถไฟต่าง ๆ โดยจะแสดงลิงก์บทความและสีของเส้นทางรถไฟสายนั้น ๆ

การใช้งาน แก้

พารามิเตอร์ แก้

พารามิเตอร์ของแม่แบบนี้
พารามิเตอร์ คำอธิบาย
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.
|inline= ค่าที่ยอมรับได้
พารามิเตอร์ คำอธิบาย ตัวอย่าง ตัวอย่าง
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. สายสีน้ำเงิน สายสีชมพู
broute Bordered box with text สายสีน้ำเงิน สายสีชมพู
croute Box with text and border radius. สายสีน้ำเงิน สายสีชมพู
xroute Transparent box with text and border radius. สายสีน้ำเงิน สายสีชมพู
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.

For systems where multiple colors are used to designate different lines, the appropriate color will be selected based on the combination of the system and line parameters. The same is done for systems where types or services have their own colors. Some options, such as setting the text color, border color, and the short name for the latter three, require the use of a module subpage. Each line can have its own values, as can each type. The table keys for line and type tables are the same: ["border color"], ["text color"] and ["short name"]. Note that the ["background color"] key is not used by this template.

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.