模块:ZHBUS/jiangmen

维基百科,自由的百科全书
跳到导航 跳到搜索
文档图示 模块文档[创建]
-- index: {code, endpoint1, direction, endpoint2, fare, company, note,}
-- optional: {endpoint3, direction1, time1, time2}

local zjbusline = {
-- 已停办线路请不要直接删除,以免早期页面出错。
-- 请将停办/暂停运营线路仿照以下格式复制。code为线路编号,note统一为"已停办"。
['8888'] = {code = "8888", note = "已停办",},
}

local jmbusline = mw.loadData('Module:JMBUS/data')
jmW223 = jmbusline['W223']
zjbusline['W223'] = {code = jmW223.code, endpoint1 = jmW223.endpoint1, direction = jmW223.direction, time1 = jmW223.time1, time2 = jmW223.time2, endpoint2 = jmW223.endpoint2, fare = jmW223.fare, company = jmW223.company, note = jmW223.note}
jmW226 = jmbusline['W226']
zjbusline['W226'] = {code = jmW226.code, endpoint1 = jmW226.endpoint1, direction = jmW226.direction, time1 = jmW226.time1, time2 = jmW226.time2, endpoint2 = jmW226.endpoint2, fare = jmW226.fare, company = jmW226.company, note = jmW226.note}

local lineAliases = {
	-- 线路重定向
	['01'] = '1',
	['02'] = '2',
	['03'] = '3',
	['04'] = '4',
	['05'] = '5',
	['06'] = '6',
	['07'] = '7',
	['08'] = '8',
	['09'] = '9',
}
for k, v in pairs(lineAliases) do
	zjbusline[k] = zjbusline[v]
end

return zjbusline