模块:Adjacent stations/台中捷运
说明
编辑本模块应用于{{Adjacent stations}},负责转换路线及对应各站的信息到模板。
使用方法
编辑以市政府站为例
{{Adjacent stations|system=Taichung Mass Rapid Transit|line1=1|left1=文心櫻花|right1=水安宮|line2=2|left2=朝馬|right2=忠明國小}}
或是简称
{{Adjacent stations|system=TMRT|line1=1|left1=文心櫻花|right1=水安宮|line2=2|left2=朝馬|right2=忠明國小}}
显示如下:
上一站 | 台中捷运 | 下一站 | ||
---|---|---|---|---|
文心樱花 往北屯总站
|
绿线 | 水安宫 | ||
朝马 往台中港
|
蓝线 | 忠明国小 |
上述文档嵌入自Module:Adjacent stations/台中捷运/doc。 (编辑 | 历史) 编者可以在本模块的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 本模块的子页面。 |
local x = "%1站 (台中捷運)"
local p = {
["system title"] = "[[臺中捷運]]",
["station format"] = {
"%1站",
["北屯總站"] = "%1",
["高鐵台中站"] = "[[高鐵台中站 (台中捷運)|高鐵台中站]]",
["松竹"] = x,
["大慶"] = x,
["烏日"] = x,
["臺中港"] = x,
["忠明國小"] = x,
["市政府"] = x,
},
["lines"] = {
["1"] = {
["title"] = "[[臺中捷運綠線|綠線]]",
["color"] = "8EC31C",
["left terminus"] = "北屯總站",
["right terminus"] = "高鐵台中站"
},
["2"] = {
["title"] = "[[臺中捷運藍線|藍線]]",
["color"] = "0093D8",
["left terminus"] = "臺中港",
["right terminus"] = "台糖生態公園"
},
},
["aliases"] = {
["G"] = "1",
["B"] = "2",
}
}
return p