模組:Adjacent stations/SRT
外观
local format = mw.ustring.format
local frame = mw.getCurrentFrame()
local function linken(a, b, c)
if c == '' or c == nil then
return frame:expandTemplate ({title='Internal link helper/en', args = {a, b}})
else
return frame:expandTemplate ({title='Internal link helper/en', args = {a, b, c}})
end
end
local p = {
["system title"] = "[[泰國國家鐵路局]]",
["system icon"] = "",
["station format"] = {
"%1站",
["阿皮瓦"] = "[[曼谷阿皮瓦中央车站|阿皮瓦]]",
["曼差煉油廠"] = "[[曼差石油股份|曼差煉油廠]]",
["林查班港"] = "[[林查班港]]",
},
["lines"] = {
["Northern"] = {
["title"] = "[[北线 (泰国)|北线]]",
["color"] = "0000ff",
["left terminus"] = {"曼谷", "阿皮瓦"},
["right terminus"] = "清邁",
["types"] = {
["Sawankhalok"] = {
["title"] ="<small>" .. linken("宋加洛线", "Sawankhalok Line") .. "</small>",
["left terminus"] = linken("班达拉站", "Ban Dara Junction railway station", "班达拉"),
["right terminus"] = linken("宋加洛站", "Sawankhalok railway station", "宋加洛"),
},
["Lopburi Bypass"] = {
["title"] ="<small>華富里繞行線</small>",
["left terminus"] = linken("班卡拉站", "Ban Klap Junction railway station", "班卡拉"),
["right terminus"] = linken("郭甲天站", "Khok Kathiam Junction", "郭甲天"),
}
},
},
["Northeastern"] = {
["title"] = "[[东北线 (泰国)|东北线]]",
["color"] = "008000",
["left terminus"] = {"曼谷", "阿皮瓦"},
["right terminus"] = {linken("烏汶站", "Ubon Ratchathani railway station", "烏汶"), "坎萨瓦"},
["types"] = {
["Kaeng Khoi–Bua Yai"] = {
["title"] ="<small>坎桂—波艾支線</small>",
["left terminus"] = linken("坎桂站", "Kaeng Khoi Junction railway station", "坎桂"),
["right terminus"] = linken("波艾站", "Bua Yai Junction railway station", "波艾"),
},
},
},
["Eastern"] = {
["title"] = "[[东线 (泰国)|东线]]",
["color"] = "ffa500",
["left terminus"] = "曼谷",
["right terminus"] = {linken("楚沙美站", "Chuk Samet railway station", "楚沙美"), "波別"},
["types"] = {
["Phra Phutthachai"] = {
["title"] ="<small>佛影货运线</small>",
["left terminus"] = linken("第十九運河站", "Khlong Sip Kao Junction railway station", "第十九運河"),
["right terminus"] = linken("坎桂站", "Kaeng Khoi Junction railway station", "坎桂"),
},
["Mae Nam"] = {
["title"] ="<small>湄南货运线</small>",
["left terminus"] = linken("目甲訕站 (國家鐵路)", "Makkasan railway station", "目甲訕"),
["right terminus"] = "曼差煉油廠",
},
["Laem Chabang"] = {
["title"] ="<small>林查班货运线</small>",
["left terminus"] = linken("是拉差站", "Si Racha Junction railway station", "是拉差"),
["right terminus"] = "林查班港",
},
["Map Ta Phut"] = {
["title"] ="<small>马达普货运线</small>",
["left terminus"] = linken("七珍佛山站", "Khao Chi Chan Junction railway station", "七珍佛山"),
["right terminus"] = linken("马达普工业园", "Map Ta Phut Industrial Estate", "马达普港"),
},
},
},
["Southern"] = {
["title"] = "[[南线 (泰国)|南线]]",
["color"] = "ff0000",
["left terminus"] = {"曼谷", "阿皮瓦"},
["right terminus"] = linken("素艾哥洛站", "Su-ngai Kolok railway station", "素艾哥洛"),
["types"] = {
["Burma Railway"] = {
["title"] ="<small>[[泰緬鐵路]]</small>",
["left terminus"] = linken("农普拉杜克站", "Nong Pladuk Junction railway station", "农普拉杜克"),
["right terminus"] = linken("小赛育瀑布站", "Nam Tok Sai Yok Noi railway halt", "小赛育瀑布"),
},
["Padang Besar"] = {
["title"] ="<small>巴东勿刹支线</small>",
["left terminus"] = "合艾",
["right terminus"] = "巴东勿刹",
},
["Nakhon Si Thammarat"] = {
["title"] ="<small>那空是贪玛叻支线</small>",
["left terminus"] = linken("高春通站", "Khao Chum Thong Junction railway station", "高春通"),
["right terminus"] = linken("那空是贪玛叻站", "Nakhon Si Thammarat railway station", "那空是贪玛叻"),
},
["Suphan Buri"] = {
["title"] ="<small>" .. linken("素攀武里线", "Suphan Buri Line") .. "</small>",
["left terminus"] = linken("农普拉杜克站", "Nong Pladuk Junction railway station", "农普拉杜克"),
["right terminus"] = {linken("素攀武里站", "Suphan Buri railway station", "素攀武里"), "Ma Lai Maen"},
},
["Thon Buri"] = {
["title"] ="<small>吞武里线</small>",
["left terminus"] = linken("吞武里站", "Thon Buri railway station", "吞武里"),
["right terminus"] = "打鄰倉",
},
["Khiri Rat Nikhom"] = {
["title"] ="<small>基里拉塔尼空支线</small>",
["left terminus"] = linken("基里拉塔尼空站", "Khiri Rat Nikhom railway station", "基里拉塔尼空"),
["right terminus"] = linken("班通坡站", "Ban Thung Pho Junction railway station", "班通坡"),
},
["Kantang"] = {
["title"] ="<small>干当支线</small>",
["left terminus"] = linken("童颂站", "Thung Song Junction railway station", "童颂"),
["right terminus"] = linken("干当站", "Kantang railway station", "干当"),
},
},
},
["Maeklong"] = {
["title"] = "[[美功铁路]]",
["color"] = "800080",
["types"] = {
["Mahachai"] = {
["title"] ="<small>大羅斗圈—瑪哈猜</small>",
["left terminus"] = linken("瑪哈猜站", "Mahachai railway station", "瑪哈猜"),
["right terminus"] = "大羅斗圈",
},
["Maeklong"] = {
["title"] ="<small>班兰—夜功</small>",
["left terminus"] = linken("夜功站", "Maeklong railway station", "夜功"),
["right terminus"] = linken("班兰站", "Ban Laem railway station", "班兰"),
},
},
},
["Northeastern HSR"] = {
["title"] = "[[曼谷—廊开高速铁路|東北高鐵線]]",
["color"] = "000000",
["left terminus"] = "阿皮瓦",
["right terminus"] = "那空叻差是瑪",
},
["Suphan Buri"] = {
["title"] = linken("素攀武里线", "Suphan Buri Line", "素攀武里支线"),
["color"] = "000000",
["left terminus"] = linken("农普拉杜克站", "Nong Pladuk Junction railway station", "农普拉杜克"),
["right terminus"] = linken("素攀武里站", "Suphan Buri railway station", "素攀武里"),
},
},
}
return p