Module:Adjacent stations/Beijing Subway

local bjs = "%1" local brws = "Beijing railway station" local bsrws = "Beijing South railway station" local bwrws = "Beijing West railway station" local berws = "Beijing East railway station" local frws = "Fengtai railway station" local hrws = "Huangcun railway station" local qrws = "Qinghe railway station" local scrws = "Beijing Sub-Center railway station" local bcrws = "Beijing Chaoyang railway station" local yrws = "Yizhuang railway station"

local p = { ["system title"] = "Beijing Subway", ["system icon"] = "", ["system color"] = "bbbbbb", ["station format"] = { "%1 station", --Railway stations ["Beijing"] = brws, ["Beijing railway"] = brws, ["Beijing railway station"] = brws, ["Beijing Railway Station"] = brws, ["Beijing South"] = bsrws, ["Beijing South railway"] = bsrws, ["Beijingnan"] = bsrws, ["Beijing South railway station"] = bsrws, ["Beijing South Railway Station"] = bsrws, ["Beijing West"] = bwrws, ["Beijing West railway"] = bwrws, ["Beijing West Railway"] = bwrws, ["Beijingxi"] = bwrws, ["Beijing West railway station"] = bwrws, ["Beijing West Railway Station"] = bwrws, ["Beijing East"] = berws, ["Beijing East railway"] = berws, ["Beijing East Railway"] = berws, ["Beijingdong"] = berws, ["Beijing East railway station"] = berws, ["Beijing East Railway Station"] = berws, ["Fengtai"] = frws, ["Fengtai railway"] = frws, ["Fengtai railway station"] = frws, ["Fengtai Railway Station"] = frws, ["Huangcun"] = hrws, ["Huangcun railway"] = hrws, ["Huangcun railway station"] = hrws, ["Huangcun Railway Station"] = hrws, ["Qing He"] = qrws, ["Qinghe"] = qrws, ["Qinghe railway"] = qrws, ["Qinghe railway station"] = qrws, ["Qinghe Railway Station"] = qrws, ["sub-center"] = scrws, ["Sub-center"] = scrws, ["Beijing Sub-center"] = scrws, ["Beijing Sub-center railway"] = scrws, ["Beijing Sub-center railway station"] = scrws, ["Beijing Sub-center Railway Station"] = scrws, ["Xinghuo"] = bcrws, ["Xinghuo railway"] = bcrws, ["Xinghuo railway station"] = bcrws, ["Beijing Chaoyang"] = bcrws, ["Beijing Chaoyang railway"] = bcrws, ["Beijing Chaoyang railway station"] = bcrws, ["Beijing Chaoyang Railway Station"] = bcrws, ["Yizhuang"] = yrws, ["Yizhuang railway"] = yrws, ["Yizhuang railway station"] = yrws, ["Yizhuang Railway Station"] = yrws, --Disambiguation ["Heishitou"] = "Heishitou", ["Gaojing"] = "Gaojing", ["Beiyuan"] = bjs, ["Botanical Garden"] = bjs, ["Changping"] = bjs, ["Chaoyangmen"] = bjs, ["Ciqikou"] = bjs, ["Dongfeng"] = bjs, ["Dongwuyuan"] = bjs, ["Fragrant Hills"] = bjs, ["Fuxingmen"] = bjs, ["Government Center"] = bjs, ["Guomao"] = bjs, ["Happy Valley"] = bjs, ["Linhe"] = bjs, ["Liyuan"] = bjs, ["Olympic Park"] = bjs, ["Olympic Sports Center"] = bjs, ["Shahe"] = bjs, ["Shilipu"] = bjs, ["Shuangqiao"] = bjs, ["Sports Center"] = bjs, ["Taipingqiao"] = bjs, ["Terminal 2"] = bjs, ["Terminal 3"] = bjs, ["Tuqiao"] = bjs, ["Universal Resort"] = bjs, ["Wan'an"] = bjs, ["Xingcheng"] = bjs, ["Xingong"] = bjs, ["Xinjiekou"] = bjs, ["Xiyuan"] = bjs, ["Yanshan"] = bjs, ["Yongfeng"] = bjs, ["Zaoyuan"] = bjs, --Line 1 ["Gaojing"] = "Gaojing", ["Fu Shou Ling"] = "Fushouling", ["Pingguo Yuan"] = "Pingguoyuan", ["Yuquanlu"] = "Yuquan Lu", ["Wanshoulu"] = "Wanshou Lu", ["Nanlishilu"] = "Nanlishi Lu", ["Tian'anmen West"] = "Tian'anmenxi", ["Tian'anmen East"] = "Tian'anmendong", ["Yong'an Li"] = "Yong'anli", ["Yonganli"] = "Yong'anli", ["Dawanglu"] = "Dawang Lu", ["Si Hui"] = "Sihui", ["Sihui East"] = "Sihuidong", ["Si Hui Dong(E)"] = "Sihuidong", ["Sihui Dong"] = "Sihuidong", --Line 2 ["Guloudajie"] = "Gulou Dajie", ["Changchunjie"] = "Changchun Jie", ["Dongsishitiao"] = "Dongsi Shitiao", --Line 3 ["Gongrentiyuchang"] = "Workers' Stadium", ["Gongren Tiyuchang"] = "Workers' Stadium", ["Gongrentiyuchang (Workers' Stadium)"] = "Workers' Stadium", ["Workers' Stadium"] = "Workers' Stadium", ["Workers Stadium"] = "Workers' Stadium", ["Worker's Stadium"] = "Workers' Stadium", ["Sports Center"] = "Yaojiayuan", ["Chaoyang Sports Center"] = "Yaojiayuan", ["Pingfangcun"] = "Dongbanan", ["Dongbazhongjie"] = "Dongba", ["Dongba Zhongjie"] = "Dongba", ["Dongfeng"] = "Dongbabei", --Line 4 ["Anheqiao North"] = "Anheqiaobei", ["Xi Yuan"] = "Xiyuan", ["East Gate of Peking University"] = "Peking Univ. East Gate", ["Haidianhuangzhuang"] = "Haidian Huangzhuang", ["Renmin University"] = "Renmin Daxue (Renmin Univ.)", ["Ping'an Li"] = "Ping'anli", ["Pinganli"] = "Ping'anli", ["Jiaomen West"] = "Jiaomenxi", ["Gongyixiqiao"] = "Gongyi Xiqiao", --Line 5 ["Tiantongyuan North"] = "Tiantongyuanbei", ["Tiantongyuan South"] = "Tiantongyuannan", ["Lishuiqiao South"] = "Lishuiqiaonan", ["Beiyuanlu North"] = "Beiyuanlubei", ["Datunlu East"] = "Datunludong", ["Huixinxijie Beikou"] = "Huixin Xijie Beikou", ["Huixinxijie Nankou"] = "Huixin Xijie Nankou", ["Hepingxiqiao"] = "Heping Xiqiao", ["Zhangzizhonglu"] = "Zhangzizhong Lu", ["Tiantandongmen"] = "Temple of Heaven East Gate", --Line 6 ["Jin'an Qiao"] = "Jin'anqiao", ["Jinanqiao"] = "Jin'anqiao", ["Yang Zhuang"] = "Yangzhuang", ["Xihuang Cun"] = "Xihuangcun", ["Liaogong Zhuang"] = "Liaogongzhuang", ["Tian Cun"] = "Tiancun", ["Baishiqiao South"] = "Baishiqiaonan", ["Chegongzhuang West"] = "Chegongzhuangxi", ["Beihai North"] = "Beihaibei", ["Nanluoguxiang"] = "Nanluogu Xiang", ["Jintailu"] = "Jintai Lu", ["Qingnianlu"] = "Qingnian Lu", ["Wuzixueyuanlu"] = "Wuzi Xueyuan Lu", ["Beiyunhe West"] = "Beiyunhexi", ["Beiyunhe East"] = "Beiyunhedong", --Line 7 ["Happy Valley Scenic Area"] = "Happy Valley", ["Beijing Happy Valley"] = "Happy Valley", ["Huang Chang"] = "Huangchang", ["Lang Xin Zhuang"] = "Langxinzhuang", ["Hei Zhuang Hu"] = "Heizhuanghu", ["Wansheng West"] = "Wanshengxi", ["Wansheng Xi (West)"] = "Wanshengxi", ["Wansheng East"] = "Wanshengdong", ["Wansheng Dong (East)"] = "Wanshengdong", ["Qun Fang"] = "Qunfang", ["Gao Lou Jin"] = "Gaoloujin", ["Hua Zhuang"] = "Huazhuang", ["Huanqiu Dujiaqu"] = "Universal Resort", --Line 8 ["Yuzhilu"] = "Yuzhi Lu", ["South Gate of Forest Park"] = "Forest Park South Gate", ["Olympic Green"] = "Olympic Park", ["Andelibeijie"] = "Andeli Beijie", ["Tian Qiao"] = "Tianqiao", ["Muxi Yuan"] = "Muxiyuan", ["Haihu Tun"] = "Haihutun", ["Dahongmen South"] = "Dahongmennan", ["Dahongmen Nan (South)"] = "Dahongmennan", ["Donggao Di"] = "Donggaodi", ["Huojianwanyuan"] = "Huojian Wanyuan", ["Wufu Tang"] = "Wufutang", --Line 9 ["Liuliqiao East"] = "Liuliqiaodong", ["Fengtainanlu"] = "Fengtai Nanlu", ["Keyilu"] = "Keyi Lu", --Line 10 ["Suzhoujie"] = "Suzhou Jie", ["Zhichunlu"] = "Zhichun Lu", ["Mudan Yuan"] = "Mudanyuan", ["Sanyuan Qiao"] = "Sanyuanqiao", ["Jintaixizhao"] = "Jintai Xizhao", ["Jiaomen East"] = "Jiaomendong", ["Jinsong"] = "Jingsong", --Line 11 ["Xinshougang"] = "Xinshougang (Shougang Park)", ["Xin Shougang"] = "Xinshougang (Shougang Park)", ["Shougang Park"] = "Xinshougang (Shougang Park)", --Line 12 ["Sijiqing"] = "Sijiqingqiao", ["Yuanda Lu"] = "Landianchang", ["Yuandalu"] = "Landianchang", ["Madian"] = "Madianqiao", ["Fangyuanli"] = "Jiangtaixi", ["Jiuxianqiao"] = "Tuofangying", ["Beigangzi"] = "Dongbaxi", ["Xiyangba"] = "Dongbaxi", --Line 13 ["Bei Yuan"] = "Beiyuan", ["Wangjing West"] = "Wangjingxi", --Line 14 ["Lizeshangwuqu"] = "Lize Shangwuqu", ["Lize Business District"] = "Lize Shangwuqu", ["Beigongda Ximen"] = "Beijing Univ. of Tech. West Gate", ["Dongfengbeiqiao"] = "Dongfeng Beiqiao", ["Gaojiayuan"] = "Gaojiayuan", ["Wangjing South"] = "Wangjingnan", ["Shan'gezhuang"] = "Shangezhuang", --Line 15 ["Qinghuadongluxikou"] = "Qinghua Donglu Xikou", ["Anlilu"] = "Anli Lu", ["Wangjing East"] = "Wangjingdong", ["China International Exhibition Center"] = "China Int'l Exhibition Center", --Line 16 ["Beianhe"] = "Bei'anhe", ["Wenyanglu"] = "Wenyang Lu", ["Daoxianghulu"] = "Daoxianghu Lu", ["Yongfeng South"] = "Yongfengnan", ["Nongdananlu"] = "Nongda Nanlu", ["Wanquanhe Qiao"] = "Wanquanheqiao", ["Suzhou Qiao"] = "Suzhouqiao", ["Wanshou Si"] = "Wanshousi", ["Yuyuantan Park East Gate"] = "Yuyuantan Dongmen (Yuyuantan Park East Gate)", ["Yuyuantan Dongmen"] = "Yuyuantan Dongmen (Yuyuantan Park East Gate)", --Line 17 ["Future Science Park North"] = "Future Science City North", ["Future Science City North"] = "Future Science City North", ["Weilaikexuechengbei"] = "Future Science City North", ["Weilaikexuechengbei (Future Science City North)"] = "Future Science City North", ["Weilai Kexuechengbei"] = "Future Science City North", ["Tiantongyuan East"] = "Tiantongyuandong", ["Ciqu North"] = "Ciqubei", ["Panjiayuan West"] = "Panjiayuanxi", ["Future Science Park South"] = "Future Science City", ["Future Science City"] = "Future Science City", ["Future Science City South"] = "Future Science City", ["Weilaikexuecheng"] = "Future Science City", ["Weilaikexuecheng (Future Science City)"] = "Future Science City", ["Weilai Kexuecheng"] = "Future Science City", ["Weilaikexuechengnan"] = "Future Science City", ["Weilai Kexuechengnan"] = "Future Science City", --Line 19 ["Jinrongjie"] = "Taipingqiao", ["Jinrong Jie"] = "Taipingqiao", ["Xin'gong"] = "Xingong", ["Xin Gong"] = "Xingong", --Line S1		["Sidao Qiao"] = "Sidaoqiao", --Batong line ["Gao Bei Dian"] = "Gaobeidian", ["Ba Li Qiao"] = "Baliqiao", ["Guo Yuan"] = "Guoyuan", ["Jiu Ke Shu"] = "Jiukeshu", ["Li Yuan"] = "Liyuan", ["Lin He Li"] = "Linheli", --Changping line ["Shahe University Park"] = "Shahe Univ. Park", ["Shahe Gaojiaoyuan"] = "Shahe Univ. Park", ["Shengming Kexueyuan"] = "Life Science Park", ["Zhufang North"] = "Zhufangbei", ["Zhufang Bei (N)"] = "Zhufangbei", ["Qinghexiaoyingqiao"] = "Qinghe Xiaoyingqiao", --Daxing line ["Gaomidian North"] = "Gaomidianbei", ["Gaomidian South"] = "Gaomidiannan", ["Qingyuanlu"] = "Qingyuan Lu", ["Tian'gongyuan"] = "Tiangongyuan", ["Tiangong Yuan"] = "Tiangongyuan", --Fangshan line ["Dongguantou South"] = "Dongguantounan", ["Dongguantou Nan (S)"] = "Dongguantounan", ["Liangxiang University Town North"] = "Liangxiang Univ. Town North", ["Liangxiang University Town"] = "Liangxiang Univ. Town", ["Liangxiang University Town West"] = "Liangxiang Univ. Town West", ["Liangxiang Daxuechengbei"] = "Liangxiang Univ. Town North", ["Liangxiang Daxuecheng"] = "Liangxiang Univ. Town", ["Liangxiang Daxuechengxi"] = "Liangxiang Univ. Town West", ["Liangxiangnanguan"] = "Liangxiang Nanguan", ["Yancun East"] = "Yancundong", ["Yancun Dong (E)"] = "Yancundong", --Xijiao line ["Fragrant Hill"] = "Fragrant Hills", ["Xiangshan"] = "Fragrant Hills", ["West Gate of Summer Palace"] = "Summer Palace West Gate", --Yanfang line ["Dashihe East"] = "Dashihedong", --Yizhuang T1 tram ["Beijing Etrong IECC"] = "Beijing Etrong Int'l Exhibition & Convention Center", --Yizhuang line ["Wanyuanjie"] = "Wanyuan Jie", ["Rongjingdongjie"] = "Rongjing Dongjie", ["Rongchangdongjie"] = "Rongchang Dongjie", ["Tongjinanlu"] = "Tongji Nanlu", ["Tongji'nanlu"] = "Tongji Nanlu", ["Jinghailu"] = "Jinghai Lu", ["Ciqu South"] = "Ciqunan", --miscellaneous ["Airport"] = "Beijing Capital International Airport", ["Beijing Capital International Airport"] = "Beijing Capital International Airport", ["Guanzhuang15"] = "Guanzhuang", ["Guānzhuang"] = "Guanzhuang", ["Guanzhuangb"] = "Guaanzhuang", ["Guǎnzhuang"] = "Guaanzhuang", ["Guaan Zhuang"] = "Guaanzhuang", ["Tuqiao (interchange)"] = "Tuqiao", ["Sihui East or Tuqiao"] = "Sihuidong or Tuqiao", ["Shacheng or Yanqing"] = "Shacheng or Yanqing", },	["lines"] = { ["_default"] = { ["color"] = "bbbbbb", ["icon"] = "", ["title"] = "Line %1", },		["Capital Airport Express"] = { ["title"] = "Capital Airport Express", ["color"] = "A192B2", ["left terminus"] = "Beixinqiao", ["right terminus"] = "Beijing Capital International Airport" }, 		["Changping"] = { ["title"] = "Changping line", ["color"] = "D986BA", ["left terminus"] = "Changping Xishankou", ["right terminus"] = "Xitucheng", },		["Daxing Airport Express"] = { ["title"] = "Daxing Airport Express", ["color"] = "0049A5", ["left terminus"] = "Caoqiao", ["right terminus"] = "Daxing Airport", }, 		["Fangshan"] = { ["title"] = "Fangshan line", ["color"] = "D86018", ["left terminus"] = "Dongguantounan", ["right terminus"] = "Yancundong", }, 		["S1"] = { ["color"] = "A45A2A", ["left terminus"] = "Shichang", ["right terminus"] = "Pingguoyuan", }, 		["Pinggu"] = { ["title"] = "Pinggu line", ["color"] = "F4C1CA", ["left terminus"] = "Dongdaqiao", ["right terminus"] = "Pinggu", }, 		["Xijiao"] = { ["title"] = "Xijiao line", ["color"] = "D22630", ["left terminus"] = "Fragrant Hills", ["right terminus"] = "Bagou", }, 		["Yanfang"] = { ["title"] = "Yanfang line", ["color"] = "D86018", ["left terminus"] = "Yancundong", ["right terminus"] = "Yanshan", }, 		["Yuquanlu"] = { ["title"] = "Yuquanlu line", ["color"] = "BBBBBB", ["left terminus"] = " error ", ["right terminus"] = " error ", }, 		["Yizhuang"] = { ["title"] = "Yizhuang line", ["color"] = "D0006F", ["left terminus"] = "Songjiazhuang", ["right terminus"] = "Yizhuang Railway Station", },		["Yizhuang T1"] = { ["title"] = "Yizhuang T1 line", ["color"] = "D22630", ["left terminus"] = "Quzhuang", ["right terminus"] = "Dinghaiyuan", }, 		["1"] = {			["color"] = "A4343A", ["left terminus"] = "Gucheng", ["right terminus"] = "Universal Resort", }, 		["Batong"] = { ["title"] = "Batong line (through operation to Line 1)", ["color"] = "A4343A", ["left terminus"] = "Gucheng", ["right terminus"] = "Universal Resort", }, 		["2"] = {			["color"] = "004B87", ["circular"] = 1, ["left terminus"] = "outer loop / anticlockwise", ["right terminus"] = "inner loop / clockwise", }, 		["3"] = {			["color"] = "D90627", ["left terminus"] = "Dongsi Shitiao", ["right terminus"] = "Dongbabei", }, 		["4"] = {			["color"] = "008C95", ["left terminus"] = "Anheqiaobei", ["right terminus"] = "Tiangongyuan", }, 		["Daxing"] = { ["title"] = "Daxing line (through operation to Line 4)", ["color"] = "008C95", ["left terminus"] = "Anheqiaobei", ["right terminus"] = "Tiangongyuan", }, 		["5"] = {			["color"] = "AA0061", ["left terminus"] = "Tiantongyuanbei", ["right terminus"] = "Songjiazhuang", }, 		["6"] = {			["color"] = "B58500", ["left terminus"] = "Jin'anqiao", ["right terminus"] = "Lucheng", }, 		["7"] = {			["color"] = "FFC56E", ["left terminus"] = "Beijing West Railway Station", ["right terminus"] = "Universal Resort", }, 		["8"] = {			["color"] = "009B77", ["left terminus"] = "Zhuxinzhuang", ["right terminus"] = "Yinghai", }, 		["9"] = {			["color"] = "97D700", ["left terminus"] = "National Library", ["right terminus"] = "Guogongzhuang", }, 		["10"] = {			["color"] = "0092BC", ["circular"] = 1, ["left terminus"] = "outer loop / anticlockwise", ["right terminus"] = "inner loop / clockwise" }, 		["11"] = {			["color"] = "FF8674", ["left terminus"] = "Moshikou", ["right terminus"] = "Xinshougang", }, 		["12"] = {			["color"] = "9C4F01", ["left terminus"] = "Sijiqingqiao", ["right terminus"] = "Dongbabei", }, 		["13"] = {			["color"] = "F4DA40", ["left terminus"] = "Xizhimen", ["right terminus"] = "Dongzhimen", }, 		["14"] = {			["color"] = "CA9A8E", ["left terminus"] = "Zhangguozhuang", ["right terminus"] = "Shangezhuang", }, 		["15"] = {			["color"] = "653279", ["left terminus"] = "Qinghuadongluxikou", ["right terminus"] = "Fengbo", }, 		["16"] = {			["color"] = "6BA539", ["left terminus"] = "Bei'anhe", ["right terminus"] = "Wanpingcheng", },		["17"] = {			["color"] = "00ABAB", ["left terminus"] = "Future Science City North", ["right terminus"] = "Jiahuihu", },	 	["17n"] = { ["title"] = "Line 17 North section", ["color"] = "00ABAB", ["left terminus"] = "Future Science City North", ["right terminus"] = "Workers' Stadium", }, 		["17s"] = { ["title"] = "Line 17 South section", ["color"] = "00ABAB", ["left terminus"] = "Shilihe", ["right terminus"] = "Jiahuihu", },		["19"] = {			["color"] = "D3A3C9", ["left terminus"] = "Mudanyuan", ["right terminus"] = "Xingong" },		["28"] = {			["color"] = "476205", ["left terminus"] = "Dongdaqiao", ["right terminus"] = "Guangqudonglu" }, 		["lb"] = { ["title"] = " error ", ["color"] = " error ", ["left terminus"] = " error ", ["right terminus"] = " error ", },			["8o"] = { ["title"] = " error ", ["color"] = " error ", ["left terminus"] = " error ", ["right terminus"] = " error ", },	},	["aliases"] = { ["l1"]="1", ["l2"]="2", ["2l"]="2", ["l3"]="3", ["l4"]="4", ["l5"]="5", ["l6"]="6", ["l7"]="7", ["l8"]="8", ["l9"]="9", ["l10"]="10", ["l11"]="11", ["l12"]="12", ["l13"]="13", ["l14"]="14", ["l15"]="15", ["l16"]="16", ["l17"]="17", ["l19"]="19", ["b"] = "Batong", ["bt"] = "Batong", ["batong"] = "Batong", ["ca"] = "Capital Airport Express", ["capital airport"] = "Capital Airport Express", ["c"] = "Changping", ["cp"] = "Changping", ["changping"] = "Changping", ["a"] = "Capital Airport Express", ["ap"] = "Capital Airport Express", ["airport"] = "Capital Airport Express", ["la"] = "Capital Airport Express", ["daxingairport"] = "Daxing Airport Express", ["daxing airport"] = "Daxing Airport Express", ["dxa"] = "Daxing Airport Express", ["da"] = "Daxing Airport Express", ["newairport"] = "Daxing Airport Express", ["new airport"] = "Daxing Airport Express", ["na"] = "Daxing Airport Express", ["d"]="Daxing", ["dx"]="Daxing", ["daxing"]="Daxing", ["f"]="Fangshan", ["fs"]="Fangshan", ["fangshan"]="Fangshan", ["m"]="S1", ["maglev"]="S1", ["mentougou"]="S1", ["s1"]="S1", ["22"]="Pinggu", ["p"]="Pinggu", ["pg"]="Pinggu", ["pinggu"]="Pinggu", ["x"]="Xijiao", ["xj"]="Xijiao", ["xijiao"]="Xijiao", ["w"]="Xijiao", ["western"]="Xijiao", ["yf"]="Yanfang", ["yanfang"]="Yanfang", ["yq"]="Yuquanlu", ["yuquanlu"]="Yuquanlu", ["yz"]="Yizhuang", ["yizhuang"]="Yizhuang", ["yizhuangt1"]="Yizhuang T1", ["t1"]="Yizhuang T1", ["cbd"] = "28", ["8n"] = "8", ["8s"] = "8", ["14w"] = "14", ["14e"] = "14" } }

return p