打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

RIA Wiki 已更新到 1.41!部分 CSS 在新版本下可能有不同的表现,请编辑者注意检查和修改。 目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

模板:Vertical Rail Route Map Node:修订间差异

来自RIA | Wiki
秋月白留言 | 贡献
无编辑摘要
秋月白留言 | 贡献
无编辑摘要
 
第1行: 第1行:
<includeonly>
<includeonly>
<div style="margin: -5px 10px;">
<div style="margin: -10px 10px;">
     <div style="
     <div style="
         margin: 0 auto;  
         margin: 0 auto;  
         width: 10px; height: {{#expr: {{{length|40}}} + 5 }}px;  
         width: 10px; height: {{#expr: {{{length|40}}} + 10 }}px;  
         {{#ifeq: {{{type|{{{1|pass}}}}}} | start-connect  
         {{#ifeq: {{{type|{{{1|pass}}}}}} | start-connect  
         | background: linear-gradient(to top, {{{color|{{{2|#000000}}}}}}, #00000000);
         | background: linear-gradient(to top, {{{color|{{{2|#000000}}}}}}, #00000000);
第29行: 第29行:
     <div style="
     <div style="
         margin: 0 auto;  
         margin: 0 auto;  
         width: 10px; height: {{#expr: {{{length|40}}} + 5 }}px;  
         width: 10px; height: {{#expr: {{{length|40}}} + 10 }}px;  
         {{#ifeq: {{{type|{{{1|pass}}}}}} | end-connect  
         {{#ifeq: {{{type|{{{1|pass}}}}}} | end-connect  
         | background: linear-gradient(to bottom, {{{color|{{{2|#000000}}}}}}, #00000000);
         | background: linear-gradient(to bottom, {{{color|{{{2|#000000}}}}}}, #00000000);

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}}重定向至此模板。可以使用这个模板来减少文字量。

另参见:
模板:Vertical Rail Route Map
模板:HHR Route Map Symbol