模板:Vertical Rail Route Map Node:修订间差异
来自RIA | Wiki
更多操作
创建页面,内容为“<includeonly> <div style="margin: -5px 11px;"> <div style=" margin: 0 auto; width: 10px; height: {{#expr: {{{length|40}}} + 5 }}px; background-color: {{#switch:{{{type|{{{1|pass}}}}}} | start | s = #00000000; | pass-upoff | pass-off | end-off = #999999; | #default = {{{color|{{{2|#000000}}}}}}; }} position: relative; z-index: 0; "></div> <div style=" background-col…” |
无编辑摘要 |
||
| (未显示同一用户的9个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly> | ||
<div style="margin: - | <div style="margin: -10px 10px;"> | ||
<div style=" | <div style=" | ||
margin: 0 auto; | margin: 0 auto; | ||
width: 10px; height: {{#expr: {{{length|40}}} + | width: 10px; height: {{#expr: {{{length|40}}} + 10 }}px; | ||
background-color: {{#switch:{{{type|{{{1|pass}}}}}} | {{#ifeq: {{{type|{{{1|pass}}}}}} | start-connect | ||
| start | s = #00000000; | | background: linear-gradient(to top, {{{color|{{{2|#000000}}}}}}, #00000000); | ||
| background-color: {{#switch:{{{type|{{{1|pass}}}}}} | |||
| start | s | start-off = #00000000; | |||
| pass-upoff | pass-off | end-off = #999999; | | pass-upoff | pass-off | end-off = #999999; | ||
| #default = {{{color|{{{2|#000000}}}}}}; | | #default = {{{color|{{{2|#000000}}}}}}; | ||
}} | }}}} | ||
position: relative; z-index: 0; | position: relative; z-index: 0; | ||
"></div> | "></div> | ||
| 第14行: | 第16行: | ||
background-color: #ffffff; | background-color: #ffffff; | ||
position: relative; z-index: 1; | position: relative; z-index: 1; | ||
{{#if:{{{transfer|{{{3|}}}}}} | {{#if: {{{transfer|{{{3|}}}}}} | ||
|<!--transfer--> | |<!--transfer--> | ||
margin: - | margin: -11.5px 0px; | ||
width: 15px; height: 15px; | width: 15px; height: 15px; | ||
border-radius: 50%; border: 4px solid #2b2b2b; | border-radius: 50%; border: 4px solid #2b2b2b; | ||
|<!--not transfer--> | |<!--not transfer--> | ||
margin: - | margin: -9px 2.5px; | ||
width: 12px; height: 12px; | width: 12px; height: 12px; | ||
border-radius: 50%; border: 3px solid {{{color|{{{2|#000000}}}}}}; | border-radius: 50%; border: 3px solid {{{color|{{{2|#000000}}}}}}; | ||
| 第27行: | 第29行: | ||
<div style=" | <div style=" | ||
margin: 0 auto; | margin: 0 auto; | ||
width: 10px; height: {{#expr: {{{length|40}}} + | width: 10px; height: {{#expr: {{{length|40}}} + 10 }}px; | ||
background-color: {{#switch:{{{type|{{{1|pass}}}}}} | {{#ifeq: {{{type|{{{1|pass}}}}}} | end-connect | ||
| end | e = #00000000; | | background: linear-gradient(to bottom, {{{color|{{{2|#000000}}}}}}, #00000000); | ||
| pass-downoff | pass-off | | | background-color: {{#switch:{{{type|{{{1|pass}}}}}} | ||
| end | e | end-off = #00000000; | |||
| pass-downoff | pass-off | start-off = #999999; | |||
| #default = {{{color|{{{2|#000000}}}}}}; | | #default = {{{color|{{{2|#000000}}}}}}; | ||
}} | }}}} | ||
position: relative; z-index: 0; | position: relative; z-index: 0; | ||
"></div> | "></div> | ||
2026年2月26日 (四) 08:45的最新版本
本模板用于使用CSS生成竖版线路图中的车站。
参数
- color,2
- 线路颜色值,支持CSS颜色。
- type,1
- 由两部分组成:车站位置、特殊情况。
- 参数由这三部分拼合而成,即
车站位置[-特殊情况]。后者如果不存在(即上下行均开通或无图外连接),可省略。
对于没有特殊情况的车站,这个参数可以简写,简写方式、解释、显示样例与对应的模板调用代码如下表所示。
| 取值,简写 | 解释 | 样例 | 源代码 |
|---|---|---|---|
| start,s | 起点站 |
|
{{Vertical Rail Route Map Node|type=start|color=#BB3E3D}}
|
| pass,p | 换乘途径站 |
|
{{Vertical Rail Route Map Node|pass|#BB3E3D|1}}
|
| end,e | 终点站 |
|
{{Vertical Rail Route Map Node|e|#BB3E3D}}
|
对于有特殊情况的车站,特殊情况的取值、解释如下表所示。
| 车站位置 | 解释 | 可用的特殊情况 | 解释 | 样例 |
|---|---|---|---|---|
| start | 起点站 | -connect | 线路往上行方向延伸 |
|
| -off | 线路未开通 |
| ||
| pass | 途径站 | -upoff | 线路上行方向未开通 |
|
| -off | 线路上下行均未开通 |
| ||
| -downoff | 线路下行方向未开通 |
| ||
| end | 终点站 | -off | 线路未开通 |
|
| -connect | 线路往下行方向延伸 |
|
例如,start-connect表示这是已开通、上行方向有连接的起点站,pass-upoff表示这是上行方向未开通的途径站。
- transfer,3
- 该车站是否是换乘站,可选,是则填入任意内容,否则留空。样例见上表。
- length
- 两个车站中心点间距的一半,仅支持数值,默认为40。(单位为px,不用输入)
其他信息
模板{{VRMN}}重定向至此模板。可以使用这个模板来减少文字量。