跳转到内容

模板:Jctbtm/doc

维基百科,自由的百科全书

使用方法

[编辑]

This template is used to close a highway article's junction list table. It appends a table row with conversion information and closes the table syntax.

{{jctbtm
|col=
|key=
}}
  • keys: the color keys to use in an article, provided in a comma-delimited list. Use the codes from the following table.
  • col: for the number of columns in the table. The default value is 6. (If {{jctbtm|exit}} is used in an exit list, the template will default to 7 columns. If {{jctbtm|old}} is used in an exit list, the template will default to 8 columns.)
  • key: use to add an additional set of key information, such as the county superscripts on M-120 (Michigan highway)
  • conv: used to turn the distance conversion key on and off. Currently the default behavior is to include the key, so to omit it, use |conv=no. In the future, the key will be omitted by default once a majority of articles use two distance columns; in that case use |conv=yes to force its display.

色块

[编辑]
色块 使用于 备注 代码
#d3d3d3 封闭中/已废除 曾经开放通车,现为封闭中(或已废除)的交流道或交叉口 closed
#ddffdd 共线 concur
#dcdcfe 电子收费 需使用电子收费系统收费的交流道或桥梁 etc
#ffff99 高乘载 有高乘载管制之交流道或交叉口 hov
#ffdddd 半套匝道 大湾交流道泰山转接道等匝道皆属之 incomplete
#dcdcfe 收费 需要收费的交流道或桥梁 toll
#dff9f9 公路过渡段 trans
#ffdead 未通车 交流道正在兴建中或是未开放通车 unbuilt

范例

[编辑]
  • 范例1,无使用色块:{{jctbtm}}
1.000英里=1.609公里;1.000公里=0.621英里
  • 范例2,使用全部色块:{{jctbtm|keys=concur,closed,hov,incomplete,trans,toll,etc,unbuilt}}
1.000英里=1.609公里;1.000公里=0.621英里
  •       封闭中/已废除
  •       共线
  •       电子收费
  •       高乘载
  •       半套匝道
  •       收费
  •       公路过渡段
  •       未通车或兴建中
  • 范例3,使用部分色块:{{jctbtm|keys=concur,closed,incomplete,toll,unbuilt}}
1.000英里=1.609公里;1.000公里=0.621英里
  •       封闭中/已废除
  •       共线
  •       半套匝道
  •       收费
  •       未通车或兴建中

A template to close a junction table, optionally including a key of colors used in the table.

模板参数

参数描述类型状态
Additional columns1

Use exit if there is a column for exit numbers, and old if there is a separate column for old exit numbers.

字符串可选
Columns to spancol

An explicit number of columns for the template to span.

数字可选
Display distance conversion keyconv

Use "yes" to activate the distance conversion key. (Currently unused until default behavior changed in the future, set to "no" to opt out.)

默认值
yes
字符串可选
Colors to displaykeys

A comma-separated list of colors to display in the key. Allowed values are closed, concur, etc, hov, incomplete, toll, trans, and unbuilt.

字符串可选
Additional notesnotes key

The text to add to the bottom of the legend, if additional notes are needed.

字符串可选