Template:Jctbtm/doc
跳转到导航
跳转到搜索
| File:Edit-copy green.svg | 此頁面是Template:Jctbtm的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| File:Lua-Logo.svg | 此模板使用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=yesto 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英里
|
<templatedata> {
"description": "A template to close a junction table, optionally including a key of colors used in the table.",
"params": {
"1": {
"label": "Additional columns",
"description": "Use exit if there is a column for exit numbers, and old if there is a separate column for old exit numbers.",
"type": "string",
"required": false
},
"col": {
"label": "Columns to span",
"description": "An explicit number of columns for the template to span.",
"type": "number",
"required": false
},
"conv": {
"label": "Display distance conversion key",
"description": "Use \"yes\" to activate the distance conversion key. (Currently unused until default behavior changed in the future, set to \"no\" to opt out.)",
"type": "string",
"default": "yes",
"required": false
},
"keys": {
"label": "Colors to display",
"description": "A comma-separated list of colors to display in the key. Allowed values are closed, concur, etc, hov, incomplete, toll, trans, and unbuilt.",
"type": "string",
"required": false
},
"notes": {
"label": "Additional notes",
"description": "The text to add to the bottom of the legend, if additional notes are needed.",
"type": "string",
"required": false,
"aliases": [
"key"
]
}
}
} </templatedata>