跳转到内容

模块: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=忠明國小}}

显示如下:

上一站 台中捷运 下一站
文心樱花 绿线 水安宫
朝马 蓝线 忠明国小

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