模組:沙盒/TimWu007/CNBUStest/GZ

文档图示 模块文档[创建]
-- index: {code, endpoint1, direction, endpoint2, fare, company, note,}
-- optional: {endpoint3, direction1,}

local fsbusline = {
-- 已停办线路请不要直接删除,以免早期页面出错。请参照本代码最下方。

['100'] = {code = "100", endpoint1 = "[[佛山西站]]", direction = "⇆", endpoint2 = "惠云园公交首末站", time1 = "6:15-22:00", time2 = "6:15-22:30", fare = "2元", company = "粤运公交", note = "",},
['101'] = {code = "101", endpoint1 = "中山路临时总站", direction = "⇆", endpoint2 = "石头村", time1 = "6:00-22:30", time2 = "6:00-22:30", fare = "2元", company = "粤运公交", note = "",},
['102'] = {code = "102", endpoint1 = "千灯湖公交总站", direction = "⇆", endpoint2 = "[[佛山市第四中学|佛山新四中]]", time1 = "6:20-22:45", time2 = "6:30-22:30", fare = "2元", company = "粤运公交", note = "",},
['103'] = {code = "103", endpoint1 = "岭南大道公交枢纽站", direction = "⇆", endpoint2 = "乐从莘村", time1 = "6:30-22:30", time2 = "6:20-22:30", fare = "2元", company = "粤运公交", note = "",},
['105'] = {code = "105", endpoint1 = "[[佛山站|佛山火车站]]", direction = "⇆", endpoint2 = "石𬒔", time1 = "6:15-22:30", time2 = "6:10-22:30", fare = "2元", company = "粤运公交", note = "",},
['106'] = {code = "106", endpoint1 = "新三中公交枢纽站", direction = "⇆", endpoint2 = "[[佛山站|佛山火车站]]", time1 = "6:00-22:30", time2 = "6:00-22:30", fare = "2元", company = "粤运公交", note = "",},
['108'] = {code = "108", endpoint1 = "星晖园", direction = "⇆", endpoint2 = "绿地未来城公交首末站", time1 = "6:30-22:00", time2 = "6:30-22:00", fare = "2元", company = "粤运公交", note = "",},
['109'] = {code = "109", endpoint1 = "[[南风古灶]]", direction = "⇆", endpoint2 = "[[佛山站|佛山火车站]]", time1 = "6:15-22:30", time2 = "6:15-22:30", fare = "2元", company = "粤运公交", note = "",},

}
local lineAliases = {
	-- 线路重定向
}

for k, v in pairs(lineAliases) do
	fsbusline[k] = fsbusline[v]
end

local zsbusline = mw.loadData('Module:CNBUS/ZS/data')
zs508 = zsbusline['508']
fsbusline['390'] = {code = "390<br />(中508)", endpoint1 = zs508.endpoint1, direction = zs508.direction, endpoint2 = zs508.endpoint2, time1 = zs390.time1, time2 = zs390.time2, fare = zs508.fare, company = zs508.company, note = zs508.note,}
zs399 = zsbusline['399']
fsbusline['399'] = {code = "399", endpoint1 = zs399.endpoint1, direction = zs399.direction, endpoint2 = zs399.endpoint2, time1 = zs399.time1, time2 = zs399.time2, fare = zs399.fare, company = zs399.company, note = zs399.note,}

return fsbusline