แม่แบบ:RouteBox/doc

จากวิกิพีเดีย สารานุกรมเสรี

This template is similar to {{Color box}}, but provides for both wikilinks and text color and omits the contrasting border.

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

{{RouteBox|text|link|box color|text color|bold=}}

  • RouteBox
  • text
text (bold) to be displayed in the box
  • link
any valid wikilink; [[ and ]] are not required; can be omitted if no link is wanted
  • box color
background color of the box; default is black; can be omitted if text color is not specified
  • text color 
optional; default is white
  • bold=
optional; default is yes

Examples[แก้]

{{RouteBox|Line|Line}} Line 

{{RouteBox|สายสีน้ำเงิน|รถไฟฟ้ามหานคร สายสีน้ำเงิน|#{{rcr|MRT|Blue}}|#{{rcr|MRT|Yellow}}}} สายสีน้ำเงิน 

{{RouteBox|Text||bold=no}} Text 

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.
   
   

TemplateData[แก้]

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ RouteBox (ยังไม่มีการตรวจสอบ)

Adds a colored box with no border.

พารามิเตอร์แม่แบบ

แม่แบบนี้ต้องการการจัดรูปแบบพารามิเตอร์แบบอินไลน์

พารามิเตอร์คำอธิบายชนิดสถานะ
text1

text (bold by default) to be displayed in the box

ตัวอย่าง
Circle line
สตริงแนะนำ
link2

The name of the page to link towards; can be omitted if no link is wanted

ตัวอย่าง
Circle line (London Underground)
ชื่อหน้าเลือกได้
box color3

background color of the box; can be omitted if text color is not specified

ค่าปริยาย
black
ตัวอย่าง
yellow
สตริงแนะนำ
text color4

color of the text

ค่าปริยาย
white
ตัวอย่าง
blue
สตริงเลือกได้
boldbold

bolds the text; enabled by default

ค่าปริยาย
yes
ตัวอย่าง
no
สตริงเลือกได้