local x = "Halte %1"
local y = "'''[[Stasiun %1|%1]]'''"
local z = "'''''[[Stasiun %1|%1]]'''''"

local p = {
	["system title"] = "[[Jalur kereta api di Indonesia|Lintas Kereta Api Indonesia]]",
	["system icon"] = "[[File:Logo of the Ministry of Transportation of the Republic of Indonesia.svg|18px|link=Direktorat Jenderal Perkeretaapian|alt=DJKA Kemenhub]]",
	["system color"] =  "0058a5",
	["station format"] = {
		"Stasiun %1",
		
		-- Nama Sama
		["Gebang (Blitar)"] = "[[Halte %1|Gebang]]",
		["Gedangan (Sidoarjo)"] = "'''[[Stasiun %1|Gedangan]]'''",
		["Gedangan (Grobogan)"] = "[[Stasiun %1|Gedangan]]",
		["Ketapang (Banyuwangi)"] = "'''[[Stasiun %1|Ketapang]]'''",
		["Ketapang (Lampung Utara)"] = "[[Stasiun %1|Ketapang]]",
		["Larangan (Brebes)"] = "[[Stasiun %1|Larangan]]",
		["Larangan (Tegal)"] = "[[Stasiun %1|Larangan]]",
		["Tebing Tinggi (Tebing Tinggi)"] = "'''[[Stasiun %1|Tebing Tinggi]]'''",
		["Tebing Tinggi (Empat Lawang)"] = "[[Stasiun %1|Tebing Tinggi]]",
		
		-- Halte
		["Air Tawar"] = x,
		["Alai"] = x,
		["Banjarkemantren"] = x,
		["Buduran"] = x,
		["Celangap"] = x,
		["Cibangkong"] = x,
		["Cikawung"] = x,
		["Cilongkrang"] = x,
		["Cisomang"] = x,
		["Cisondari"] = x,
		["Damarsi"] = x,
		["Gayam"] = x,
		["Guntur"] = x,
		["Jambean"] = x,
		["Kalikatir"] = x,
		["Kalisamin"] = x,
		["Karangbendo"] = x,
		["Kepet"] = x,
		["Kepuh"] = x,
		["Keromenanggal"] = x,
		["Klotok"] = x,
		["Krebet"] = x,
		["Krikilan"] = x,
		["Kronelan"] = x,
		["Kumendung"] = x,
		["Kutu"] = x,
		["Labruk"] = x,
		["Lubuk Buaya"] = x,
		["Maleber"] = x,
		["Mlati"] = x,
		["Ngagel"] = x,
		["Padanan"] = x,
		["Padangan"] = x,
		["Panyuran"] = x,
		["Pasarkliwon"] = x,
		["Pasirhayam"] = x,
		["Pauh Kambar"] = x,
		["Rancakole"] = x,
		["Ranji"] = x,
		["Sawotratap"] = x,
		["Silebu"] = x,
		["Sitinggil"] = x,
		["Songgorunggi"] = x,
		["Sroyo"] = x,
		["Sumbersalak"] = x,
		["Tanjakan Empang"] = x,
		["Tarandam"] = x,
		["Tekaran"] = x,
		["Tutul"] = x,
		
		-- Stasiun Kelas Besar dan Kelas I
		--- AKTIF
		["Ambarawa"] = y,
		["Babat"] = y,
		["Bandara Adisumarmo"] = y,
		["Bandara Internasional Minangkabau"] = y,
		["Bandara Kualanamu"] = y,
		["Bandung"] = y,
		["Bangil"] = y,
		["Banjar"] = y,
		["Banyuwangi Kota"] = y,
		["Batuceper"] = y,
		["Baturaja"] = y,
		["Benteng"] = y,
		["Bekasi"] = y,
		["Belawan"] = y,
		["Blambangan Pagar"] = y,
		["Blitar"] = y,
		["Bojonegoro"] = y,
		["Bojonggede"] = y,
		["Brebes"] = y,
		["Bukit Putus"] = y,
		["Cepu"] = y,
		["Cicalengka"] = y,
		["Cikampek"] = y,
		["Cilacap"] = y,
		["Cimahi"] = y,
		["Cirebon"] = y,
		["Cirebon Prujakan"] = y,
		["Depok"] = y,
		["Depok Baru"] = y,
		["Duri"] = y,
		["Gambir"] = y,
		["Gedebage"] = y,
		["Gombong"] = y,
		["Gundih"] = y,
		["Haurgeulis"] = y,
		["Indarung"] = y,
		["Jakarta Kota"] = y,
		["Jatibarang"] = y,
		["Jatinegara"] = y,
		["Jember"] = y,
		["Jombang"] = y,
		["Kalibaru"] = y,
		["Kalisat"] = y,
		["Kalisetail"] = y,
		["Karanganyar"] = y,
		["Karangtalun"] = y,
		["Karawang"] = y,
		["Kebumen"] = y,
		["Kediri"] = y,
		["Kepanjen"] = y,
		["Kertapati"] = y,
		["Kertosono"] = y,
		["Kiaracondong"] = y,
		["Kisaran"] = y,
		["Kisaran"] = y,
		["Klaten"] = y,
		["Kotabumi"] = y,
		["Kroya"] = y,
		["Kutoarjo"] = y,
		["Lahat"] = y,
		["Lamongan"] = y,
		["Lawang"] = y,
		["Lempuyangan"] = y,
		["Lubuklinggau"] = y,
		["Madiun"] = y,
		["Malang"] = y,
		["Malang Kotalama"] = y,
		["Manggarai"] = y,
		["Maos"] = y,
		["Martapura"] = y,
		["Medan"] = y,
		["Mojokerto"] = y,
		["Muara Enim"] = y,
		["Nganjuk"] = y,
		["Ngawi"] = y,
		["Padalarang"] = y,
		["Padang"] = y,
		["Panarukan"] = y,
		["Pangkalan Brandan"] = y,
		["Pasar Minggu"] = y,
		["Pasar Senen"] = y,
		["Pegaden Baru"] = y,
		["Pekalongan"] = y,
		["Pemalang"] = y,
		["Prabumulih"] = y,
		["Probolinggo"] = y,
		["Purwokerto"] = y,
		["Purwosari"] = y,
		["Rangkasbitung"] = y,
		["Rancaekek"] = y,
		["Rantau Prapat"] = y,
		["Rewulu"] = y,
		["Rogojampi"] = y,
		["Sawahlunto"] = y,
		["Semarang Poncol"] = y,
		["Semarang Tawang"] = y,
		["Serpong"] = y,
		["Sidoarjo"] = y,
		["Solo Balapan"] = y,
		["Solo Jebres"] = y,
		["Sudirman"] = y,
		["Sungai Lagoa"] = y,
		["Surabaya Pasarturi"] = y,
		["Surabaya Gubeng"] = y,
		["Tanahabang"] = y,
		["Tangerang"] = y,
		["Tanjung Enim Baru"] = y,
		["Tanjungkarang"] = y,
		["Tegal"] = y,
		["Tasikmalaya"] = y,
		["Tigagajah"] = y,
		["Tigaraksa"] = y,
		["Tulungagung"] = y,
		["Universitas Indonesia"] = y,
		["Wates"] = y,
		["Weleri"] = y,
		["Wlingi"] = y,
		["Wonokromo"] = y,
		["Yogyakarta"] = y,
		--- NONAKTIF
		["Banda Aceh"] = z,
		["Bondowoso"] = z,
		["Banyuwangi"] = z,
		["Blora"] = z,
		["Cepu Kota"] = z,
		["Demak"] = z,
		["Jurnatan"] = z,
		["Juwana"] = z,
		["Kamal"] = z,
		["Kudus"] = z,
		["Lasem"] = z,
		["Lumajang"] = z,
		["Magelang Kota"] = z,
		["Magelang Pasar"] = z,
		["Malang Jagalan"] = z,
		["Mojokerto Kota"] = z,
		["Parakan"] = z,
		["Pati"] = z,
		["Pulau Aie"] = z,
		["Purwodadi"] = z,
		["Purwokerto Timur"] = z,
		["Rembang"] = z,
		["Semarang Gudang"] = z,
		["Situbondo"] = z,
		["Stabat"] = z,
		["Temanggung"] = z,
		["Tuban"] = z,
		["Wonokromo Kota"] = z,
		["Yosowilangun"] = z,
	},
	
	["lines"] = {
		["_default"] = {
			["title"] = "'''''[[Jalur kereta api %1|<font color=#ef7d00>%1</font>]]'''''",
			["color"] = "ef7d00",
		},
	
		-- DAOP 1 JAKARTA
		--- AKTIF
		["Merak–Tanahabang"] = {
			["title"] = "'''[[Jalur kereta api Merak–Tanahabang|<font color=#0058a5>Merak–Tanahabang</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Merak",
            ["right terminus"] = "Tanahabang"
		},
		["Cigading–Krenceng"] = {
			["title"] = "'''[[Jalur kereta api Merak–Tanahabang#Percabangan menuju Anyer Kidul|<font color=#0058a5>Anyer Kidul–Krenceng</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Anyer Kidul",
            ["right terminus"] = "Krenceng"
		},
		["Tangerang–Duri"] = {
			["title"] = "'''[[Jalur kereta api Tangerang–Duri|<font color=#0058a5>Tangerang–Duri</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Tangerang",
            ["right terminus"] = "Duri"
		},
		["SHIA–Batuceper"] = {
			["title"] = "'''[[Jalur kereta api Batuceper–Bandara Soekarno-Hatta|<font color=#0058a5>SHIA–Batuceper</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Bandara Soekarno-Hatta",
            ["right terminus"] = "Batuceper"
		},
		["Tanahabang–Manggarai"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Tanahabang",
            ["right terminus"] = "Manggarai"
		},
		["Kampung Bandan–Tanahabang"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Kampung Bandan",
            ["right terminus"] = "Tanahabang"
		},
	    ["Jakarta Kota–Tanjung Priuk"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Jakarta Kota",
            ["right terminus"] = "Tanjung Priuk"
		},
		["Jakarta Kota–Rajawali"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Jakarta Kota",
            ["right terminus"] = "Rajawali"
		},
	    ["Jakarta Kota–Manggarai"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Jakarta Kota",
            ["right terminus"] = "Manggarai"
		},
		["Jakarta Gudang–Kampung Bandan"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Jakarta Gudang",
            ["right terminus"] = "Kampung Bandan"
		},
		["Ancol–Rajawali"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Ancol",
            ["right terminus"] = "Rajawali"
		},
	    ["Tanjung Priuk–JICT"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Tanjung Priuk",
            ["right terminus"] = "JICT"
		},
		["Sungai Lagoa–JICT"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Sungai Lagoa",
            ["right terminus"] = "JICT"
		},
		["Manggarai–Jatinegara"] = {
			["title"] = "'''[[Jalur kereta api lintas Jakarta|<font color=#0058a5>Lintas Jakarta</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Manggarai",
            ["right terminus"] = "Jatinegara"
		},
		["Rajawali–Cikampek"] = {
			["title"] = "'''[[Jalur kereta api Rajawali–Cikampek|<font color=#0058a5>Rajawali–Cikampek</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Rajawali",
            ["right terminus"] = "Cikampek"
		},
		["Citayam–Nambo"] = {
			["title"] = "'''[[Jalur kereta api Manggarai–Padalarang|<font color=#0058a5>Percabangan menuju Nambo</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Citayam",
            ["right terminus"] = "Nambo"
		},
	
		--- NONAKTIF
		["Anyer Kidul–Cigading"] = {
		    ["title"] = "'''[[Jalur kereta api Merak–Tanahabang#Percabangan menuju Anyer Kidul|<font color=#ef7d00>Anyer Kidul–Krenceng</font>]]'''",
            ["left terminus"] = "Anyer Kidul",
            ["right terminus"] = "Krenceng"
		},
		["Labuan–Rangkasbitung"] = {
            ["left terminus"] = "Labuan (Pandeglang)",
            ["right terminus"] = "Rangkasbitung"
		},
		["Karawang–Cikampek"] = {
            ["left terminus"] = "Karawang",
            ["right terminus"] = "Cikampek"
		},
		["Karawang–Rengasdengklok"] = {
            ["left terminus"] = "Karawang",
            ["right terminus"] = "Rengasdengklok"
		},
		["Cikampek–Cilamaya"] = {
            ["left terminus"] = "Cikampek",
            ["right terminus"] = "Cilamaya"
		},
		
		-- DAOP 2 BANDUNG
		["Cikampek–Padalarang"] = {
			["title"] = "'''[[Jalur kereta api Cikampek–Padalarang|<font color=#0058a5>Cikampek–Padalarang</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Cikampek",
            ["right terminus"] = "Padalarang"
		},
		
		-- DAOP 3 CIREBON
		["Cikampek–Cirebon"] = {
			["title"] = "'''[[Jalur kereta api Cikampek–Cirebon|<font color=#0058a5>Cikampek–Cirebon</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Cikampek",
            ["right terminus"] = "Cirebon"
		},
		
		-- DAOP 4 SEMARANG
		--- AKTIF
		["Tegal–Brumbung"] = {
			["title"] = "'''[[Jalur kereta api Tegal–Brumbung|<font color=0058a5>Tegal–Brumbung</font>]]'''",
			["color"] = "0058a5",
			["left terminus"] = "Tegal",
			["right terminus"] = "Brumbung"
		},
		--- NONAKTIF
		["Jurnatan–Demak"] = {
			["left terminus"] = "Jurnatan",
			["right terminus"] = "Demak"
		},
		["Kalibodri–Kendal–Kaliwungu"] = {
			["left terminus"] = "Kalibodri",
			["right terminus"] = "Kaliwungu"
		},
		["Pekalongan–Wonopringgo"] = {
			["left terminus"] = "Pekalongan",
			["right terminus"] = "Wonopringgo"
		},
		["Samarang–Semarang Tawang"] = {
			["left terminus"] = "Samarang",
			["right terminus"] = "Semarang Tawang",
			["note-mid"] = "Penghubung antara Samarang dengan Semarang Tawang"
		},
		["Weleri–Besokor"] = {
			["left terminus"] = "Weleri",
			["right terminus"] = "Besokor",
			["note-mid"] = "nonaktif sejak zaman [[Hindia-Belanda]]"
		},
		["Penghubung Jerakah–Jurnatan"] = {
			["left terminus"] = "Jurnatan",
			["right terminus"] = "Jerakah",
			["note-mid"] = "Gabungan eks [[Semarang–Cheribon Stoomtram Maatschappij|SCS]] dan [[Samarang–Joana Stoomtram Maatschappij|SJS]]"
		},
		["Percabangan menuju Pekalongan Pelabuhan"] = {
			["left terminus"] = "Pekalongan",
			["right terminus"] = "Pelabuhan Pekalongan"
		},
		["Percabangan menuju Tanjung Emas"] = {
			["title"] = "'''[[Jalur_kereta_api_Tegal–Brumbung#Percabangan_menuju_Pelabuhan_Tanjung_Emas|<font color=ef7d00>%1</font>]]'''",
			["types"] = {
				["NIS"] = {
					["title"] = "Trase [[Nederlandsch-Indische Spoorweg Maatschappij|NISM]]",
					["left terminus"] = "Semarang Gudang",
					["right terminus"] = "Semarang Pelabuhan"
				},
				["DJKA"] = {
					["title"] = "Trase [[Direktorat Jenderal Perkeretaapian|DJKA]]",
					["left terminus"] = "Semarang Tawang",
					["right terminus"] = "Semarang Pelabuhan"
				}
			},
		},
	
	    -- DAOP 9 JEMBER
	    --- AKTIF
	    ["Kalisat–Banyuwangi"] = {
			["title"] = "'''[[Jalur kereta api Kalisat–Banyuwangi|<font color=#0058a5>Kalisat–Banyuwangi</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Kalisat",
            ["right terminus"] = "Banyuwangi"
		},
	
	    --- NONAKTIF
		["Kalisat–Panarukan"] = {
            ["left terminus"] = "Kalisat",
            ["right terminus"] = "Panarukan"
		},
		["Rogojampi–Benculuk"] = {
            ["left terminus"] = "Rogojampi",
            ["right terminus"] = "Benculuk"
		},
		["Rambipuji–Balung–Puger"] = {
            ["left terminus"] = "Rambipuji",
            ["right terminus"] = "Puger"
		},
		["Balung–Ambulu"] = {
            ["left terminus"] = "Balung",
            ["right terminus"] = "Ambulu"
		},
		["Lumajang–Balung"] = {
            ["left terminus"] = "Lumajang",
            ["right terminus"] = "Balung"
		},
		["Klakah–Lumajang–Pasirian"] = {
            ["left terminus"] = "Klakah",
            ["right terminus"] = "Pasirian"
		},
		["Probolinggo–Paiton"] = {
            ["left terminus"] = "Probolinggo",
            ["right terminus"] = "Paiton"
		},
		["Pasuruan–Warungdowo–Winongan"] = {
            ["left terminus"] = "Pasuruan",
            ["right terminus"] = "Winongan"
		},
		
		-- LINTAS DAOP
		--- DAOP 1 JAKARTA - DAOP 2 BANDUNG
		["Manggarai–Padalarang"] = {
			["title"] = "'''[[Jalur kereta api Manggarai–Padalarang|<font color=#0058a5>Manggarai–Padalarang</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Manggarai",
            ["right terminus"] = "Padalarang"
		},
		
		--- DAOP 2 BANDUNG - DAOP 5 PURWOKERTO
		["Padalarang–Kasugihan"] = {
			["title"] = "'''[[Jalur kereta api Padalarang–Kasugihan|<font color=#0058a5>Padalarang–Kasugihan</font>]]'''",
			["color"] = "0058a5",
            ["left terminus"] = "Padalarang",
            ["right terminus"] = "Kasugihan"
		},
		
		--- DAOP 4 SEMARANG - DAOP 6 YOGYAKARTA
		["Gundih–Solo Balapan"] = {
			["title"] = "'''[[Jalur kereta api Gundih–Solo Balapan|<font color=#0058a5>Gundih–Solo Balapan</font>]]'''",
			["color"] = "0058a5",
			["left terminus"] = "Gundih",
			["right terminus"] = "Solo Balapan"
		},
		
		--- DAOP 8 SURABAYA - DAOP 9 JEMBER
		["Bangil–Kalisat"] = {
			["title"] = "'''[[Jalur kereta api Bangil–Kalisat|<font color=#0058a5>Bangil–Kalisat</font>]]'''",
			["color"] = "0058a5",
			["left terminus"] = "Bangil",
			["right terminus"] = "Kalisat"
		}
	}
}

return p