模組:Adjacent stations/西日本旅客鐵道近畿地域路線

local japan = "%1站 (日本)"
local kyoto = "%1站 (京都府)"
local osaka = "%1站 (大阪府)"
local hyogo = "%1站 (兵庫縣)"
local nara = "%1站 (奈良縣)"
local wakayama = "%1站 (和歌山縣)"
local shiga = "%1站 (滋賀縣)"
local mie = "%1站 (三重縣)"
local okayama = "%1站 (岡山縣)"
local fukui = "%1站 (福井縣)"
local jr = "%1站 (JR西日本)"
local p = {
	["system title"] = "[[西日本旅客鐵道|JR西日本]]",
	["station format"] = {
		"%1站",
		-- 消歧義
		["王寺"] = japan,
		["岡山"] = japan,
		-- KA
		["田村"] = japan ,
		["坂田"] = shiga,
		["篠原"] = shiga,
		["守山"] = shiga,
		["草津"] = shiga,
		["瀨田"] = shiga,
		["桂川"] = kyoto,
		["山崎"] = kyoto,
		["吹田"] = jr,
		["尼崎"] = jr,
		["立花"] = hyogo,
		["西宮"] = jr,
		["蘆屋"] = jr,
		["住吉"] = "[[住吉站 (JR西日本·神戶新交通)|住吉]]",
		["元町"] = hyogo,
		["神戶"] = hyogo,
		["鹽屋"] = hyogo,
		["朝霧"] = hyogo,
		["大久保"] = hyogo,
		["曾根"] = hyogo,
		["相生"] = hyogo,
		["三石"] = okayama,
		-- KB
		["牧野"] = shiga,
		["近江中庄"] = "[[近江中庄站|近江中-{庄}-]]",
		["比良"] = shiga,
		["蓬萊"] = japan,
		["小野"] = shiga,
		-- KC
		["寺庄"] = japan,
		-- KD
		["桃山"] = japan,
		["木幡"] = jr,
		["宇治"] = jr,
		["新田"] = kyoto,
		["城陽"] = japan,
		["玉水"] = japan,
		["木津"] = kyoto,
		-- KE
		["花園"] = kyoto,
		["吉富"] = kyoto,
		["船岡"] = kyoto,
		["日吉"] = kyoto,
		["下山"] = kyoto,
		["高津"] = kyoto,
		["石原"] = kyoto,
		["國府"] = hyogo,
		["豐岡"] = hyogo,
		-- KF
		-- KG
		["尼崎"] = jr,
		["塚口"] = jr,
		["伊丹"] = jr,
		["三田"] = hyogo,
		["廣野"] = hyogo,
		["草野"] = hyogo,
		["古市"] = hyogo,
		["柏原兵"] = "[[柏原站 (兵庫縣)|柏原]]",
		["黑井"] = hyogo,
		-- KH
		["木津"] = kyoto,
		["長尾"] = osaka,
		["野崎"] = osaka,
		-- KI
		["市場"] = jr,
		["瀧"] = hyogo,
		["黑田庄"] = "[[黑田庄站|黑田-{庄}-]]",
		-- KJ
		["溝口"] = japan,
		["新野"] = hyogo,
		["長谷"] = hyogo,
		["生野"] = hyogo,
		["新井"] = hyogo,
		["竹田"] = hyogo,
		-- KK
		["古見"] = okayama,
		["岩山"] = japan,
		-- KL
		-- KO
		["福島"] = jr,
		["野田"] = jr,
		["大正"] = osaka,
		["京橋"] = osaka,
		-- KP
		-- KQ
		["加茂"] = kyoto,
		["木津"] = kyoto,
		["郡山"] = nara,
		["三鄉"] = nara,
		["高井田"] = "[[高井田站 (柏原市)|高井田]]",
		["柏原阪"] = "[[柏原站 (大阪府)|柏原]]",
		["平野"] = jr,
		-- KR
		["三國丘"] = osaka,
		["下松"] = osaka,
		-- KS
		-- KT
		["高田"] = nara,
		["五條"] = nara,
		["橋本"] = wakayama,
		["大谷"] = wakayama,
		-- KU
		["櫻井"] = nara,
		["金橋"] = japan,
		-- KV
		["龜山"] = mie,
		["關"] = mie,
		["加太"] = mie,
		["新堂"] = japan,
		["島原"] = mie,
		["大河原"] = kyoto,
		-- KW
		["新宮"] = japan,
		["南部"] = japan,
		["紀伊新庄"] = "[[紀伊新庄站|紀伊新-{庄}-]]",
		-- 小濱線
		["三松"] = fukui,
		-- SB
		["高野"] = okayama,
		-- OS
		["三石"] = okayama,

		["市原"] = hyogo,
	},
	["lines"] = {
		["山陽新幹線"] = {
			["title"] = "[[File:Shinkansen jrw.svg|20px]] [[山陽新幹線]]",
			["color"] = "0000cd",
			["left terminus"] = "新大阪",
			["right terminus"] = "博多"
		},
		["KA北陸本線"] = {
			["title"] = "[[File:JRW kinki-A.svg|20px]] [[北陸本線]]",
			["color"] = "0072bc",
			["left terminus"] = "敦賀",
			["right terminus"] = "長濱"
		},
		["KA琵琶湖線"] = {
			["title"] = "[[File:JRW kinki-A.svg|20px]] [[琵琶湖線]]",
			["color"] = "0072bc",
			["left terminus"] = "長濱",
			["right terminus"] = "京都"
		},
		["KA JR京都線"] = {
			["title"] = "[[File:JRW kinki-A.svg|20px]]  [[JR京都線]]",
			["color"] = "0072bc",
			["left terminus"] = "京都",
			["right terminus"] = "大阪"
		},
		["KA JR神戶線"] = {
			["title"] = "[[File:JRW kinki-A.svg|20px]] [[JR神戶線]]",
			["color"] = "0072bc",
			["left terminus"] = "大阪",
			["right terminus"] = "姬路"
		},
		["KA山陽本線"] = {
			["title"] = "[[File:JRW kinki-A.svg|20px]] [[山陽本線]]",
			["color"] = "0072bc",
			["left terminus"] = "姬路",
			["right terminus"] = "上郡"
		},
		["KA赤穗線"] = {
			["title"] = "[[File:JRW kinki-A.svg|20px]] [[赤穗線]]",
			["color"] = "0072bc",
			["left terminus"] = "相生",
			["right terminus"] = "播州赤穗"
		},
		["KB"] = {
			["title"] = "[[File:JRW kinki-B.svg|20px]] [[湖西線]]",
			["color"] = "00ACD1",
			["left terminus"] = "敦賀",
			["right terminus"] = "京都"
		},
		["KC"] = {
			["title"] = "[[File:JRW kinki-C.svg|20px]] [[草津線]]",
			["color"] = "5a9934",
			["left terminus"] = "柘植",
			["right terminus"] = "草津"
		},
		["KD"] = {
			["title"] = "[[File:JRW kinki-D.svg|20px]] [[奈良線]]",
			["color"] = "aa731c",
			["left terminus"] = "京都",
			["right terminus"] = "奈良"
		},
		["KE嵯峨野線"] = {
			["title"] = "[[File:JRW kinki-E.svg|20px]] [[嵯峨野線]]",
			["color"] = "878ddc",
			["left terminus"] = "京都",
			["right terminus"] = "園部"
		},
		["KE山陰本線"] = {
			["title"] = "[[File:JRW kinki-E.svg|20px]] [[山陰本線]]",
			["color"] = "878ddc",
			["left terminus"] = "園部",
			["right terminus"] = "城崎溫泉"
		},
		["KF"] = {
			["title"] = "[[File:JRW kinki-F.svg|20px]] [[大阪東線]]",
			["color"] = "347293",
			["left terminus"] = "大阪",
			["right terminus"] = "久寶寺"
		},
		["KG JR寶塚線"] = {
			["title"] = "[[File:JRW kinki-G.svg|20px]] [[福知山線|JR寶塚線]]",
			["color"] = "ffba00",
			["left terminus"] = "大阪",
			["right terminus"] = "福知山"
		},
		["KG福知山線"] = {
			["title"] = "[[File:JRW kinki-G.svg|20px]] [[福知山線]]",
			["color"] = "ffba00",
			["left terminus"] = "大阪",
			["right terminus"] = "福知山"
		},
		["KH片町線"] = {
			["title"] = "[[File:JRW kinki-H.svg|20px]] [[片町線|片町線(學研都市線)]]",
			["color"] = "ff1493",
			["left terminus"] = "木津",
			["right terminus"] = "京橋"
		},
		["片町線1997"] = {
			["title"] = "[[片町線|片町線(學研都市線)]]",
			["color"] = "ff1493",
			["left terminus"] = "木津",
			["right terminus"] = "片町"
		},
		["KH JR東西線"] = {
			["title"] = "[[File:JRW kinki-H.svg|20px]] [[JR東西線]]",
			["color"] = "ff1493",
			["left terminus"] = "京橋",
			["right terminus"] = "尼崎"
		},
		["KI"] = {
			["title"] = "[[File:JRW kinki-I.svg|20px]] [[加古川線]]",
			["color"] = "00baa5",
			["left terminus"] = "加古川",
			["right terminus"] = "谷川"
		},
		["KJ"] = {
			["title"] = "[[File:JRW kinki-J.svg|20px]] [[播但線]]",
			["color"] = "a52f5d",
			["left terminus"] = "姬路",
			["right terminus"] = "和田山"
		},
		["KK"] = {
			["title"] = "[[File:JRW kinki-K.svg|20px]] [[姬新線]]",
			["color"] = "ff593e",
			["left terminus"] = "姬路",
			["right terminus"] = "新見"
		},
		["KL"] = {
			["title"] = "[[File:JRW kinki-L.svg|20px]] [[舞鶴線]]",
			["color"] = "ff8e1f",
			["left terminus"] = "綾部",
			["right terminus"] = "東舞鶴"
		},
		["KO"] = {
			["title"] = "[[File:JRW kinki-O.svg|20px]] [[大阪環狀線]]",
			["color"] = "e80000",
			["circular"] = true,
			["left terminus"] = "外環",
			["right terminus"] = "內環"
		},
		["KP"] = {
			["title"] = "[[File:JRW kinki-P.svg|20px]] [[櫻島線|櫻島線(JR夢咲線)]]",
			["color"] = "0a318e",
			["left terminus"] = "西九條",
			["right terminus"] = "櫻島"
		},
		["KQ"] = {
			["title"] = "[[File:JRW kinki-Q.svg|20px]] [[大和路線]]",
			["color"] = "00b17b",
			["left terminus"] = "JR難波",
			["right terminus"] = "加茂"
		},
		["KR"] = {
			["title"] = "[[File:JRW kinki-R.svg|20px]] [[阪和線]]",
			["color"] = "ff6600",
			["left terminus"] = "天王寺",
			["right terminus"] = "和歌山"
		},
		["KS"] = {
			["title"] = "[[File:JRW kinki-S.svg|20px]] [[關西機場線]]",
			["color"] = "0072bc",
			["left terminus"] = "日根野",
			["right terminus"] = "關西機場"
		},
		["KT"] = {
			["title"] = "[[File:JRW kinki-T.svg|20px]] [[和歌山線]]",
			["color"] = "f79fba",
			["left terminus"] = "王寺",
			["right terminus"] = "和歌山"
		},
		["KU"] = {
			["title"] = "[[File:JRW kinki-U.svg|20px]] [[櫻井線|櫻井線(萬葉Mahoroba線)]]",
			["color"] = "b31c31",
			["left terminus"] = "奈良",
			["right terminus"] = "高田"
		},
		["KV"] = {
			["title"] = "[[File:JRW kinki-V.svg|20px]] [[關西本線]]",
			["color"] = "5726b7",
			["left terminus"] = "加茂",
			["right terminus"] = "龜山"
		},
		["KW"] = {
			["title"] = "[[File:JRW kinki-W.svg|20px]] [[紀勢本線|紀國線]]",
			["color"] = "00a6b4",
			["left terminus"] = "新宮",
			["right terminus"] = "和歌山"
		},
		["KW紀勢本線"] = {
			["title"] = "[[紀勢本線]]",
			["color"] = "999999",
			["left terminus"] = "和歌山",
			["right terminus"] = "和歌山市"
		},
		["和田岬線"] = {
			["title"] = "[[和田岬線]]",
			["color"] = "999999",
			["left terminus"] = "兵庫",
			["right terminus"] = "和田岬"
		},
		["羽衣線"] = {
			["title"] = "[[阪和線|羽衣線]]",
			["color"] = "999999",
			["left terminus"] = "鳳",
			["right terminus"] = "東羽衣"
		},
		["小濱線"] = {
			["title"] = "[[小濱線]]",
			["color"] = "999999",
			["left terminus"] = "東舞鶴",
			["right terminus"] = "敦賀"
		},
		["北陸本線"] = {
			["title"] = "[[北陸本線]]",
			["color"] = "0072bc",
			["left terminus"] = "金澤",
			["right terminus"] = "敦賀"
		},
		["ON"] = {
			["title"] = "[[File:JRW oka-N.svg|20px]] [[赤穗線]]",
			["color"] = "f16369",
			["left terminus"] = "播州赤穗",
			["right terminus"] = "岡山"
		},
		["SB"] = {
			["title"] = "[[File:JRW san-B.svg|20px]] [[因美線]]",
			["color"] = "ba7c32",
			["left terminus"] = "鳥取",
			["right terminus"] = "津山"
		},
		["OT"] = {
			["title"] = "[[File:JRW oka-T.svg|20px]] [[津山線 (日本)|津山線]]",
			["color"] = "fdbd18",
			["left terminus"] = "津山",
			["right terminus"] = "岡山"
		},
		["OV"] = {
			["title"] = "[[File:JRW san-V.svg|20px]] [[伯備線]]",
			["color"] = "35934a",
			["left terminus"] = "岡山",
			["right terminus"] = "米子"
		},
		["OS"] = {
			["title"] = "[[File:JRW oka-S.svg|20px]] [[山陽本線]]",
			["color"] = "b0d136",
			["left terminus"] = "上郡",
			["right terminus"] = "岡山"
		},
		["SA"] = {
			["title"] = "[[File:JRW san-A.svg|20px]] [[山陰本線]]",
			["color"] = "b2d33e",
			["left terminus"] = "城崎溫泉",
			["right terminus"] = "米子"
		},
		["HP"] = {
			["title"] = "[[File:JRW hiro-P.svg|20px]] [[藝備線]]",
			["color"] = "8f7db9",
			["left terminus"] = "新見",
			["right terminus"] = "廣島"
		},
		["鍛冶屋線"] = {
			["title"] = "[[鍛冶屋線]]",
			["color"] = "cccccc",
			["left terminus"] = "野村",
			["right terminus"] = "鍛冶屋"
		},
	}
}

return p