模板:Jctbtm/doc
此页面是Template:Jctbtm的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
此模板使用Lua语言: |
使用方法
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 columns | 1 | Use exit if there is a column for exit numbers, and old if there is a separate column for old exit numbers. | 字符串 | 可选 |
Columns to span | col | An explicit number of columns for the template to span. | 数字 | 可选 |
Display distance conversion key | conv | Use "yes" to activate the distance conversion key. (Currently unused until default behavior changed in the future, set to "no" to opt out.)
| 字符串 | 可选 |
Colors to display | keys | A comma-separated list of colors to display in the key. Allowed values are closed, concur, etc, hov, incomplete, toll, trans, and unbuilt. | 字符串 | 可选 |
Additional notes | notes key | The text to add to the bottom of the legend, if additional notes are needed. | 字符串 | 可选 |