Module:Adjacent stations/Manila MRT

Dokumentasyon sa module [gumawa]
local d = "%1 station"
local x = "%1 station (MRT)"
local y = "%1 station (Metro Manila Subway)"
local z = "%1 station (Makati Intra-city Subway)"
local n = "North Avenue Grand Central station"

local s = "font-family: Arial, sans; background-color: #%s; font-size: 180%%; color: #%s; padding: 0.5em; line-height: 0.5; white-space: nowrap; margin: 0.25em;"
local c = { L3  = 'ffcc00', L4 = 'a52a2a', L5 = 'a9a9a9',
			L7  = 'dc241f', L8 = 'a9a9a9', L9 = 'fc4c02',
			SYS = 'a9a9a9', BL = '000000', WH = 'ffffff'}

local p = {
	["system title"] = "[[Manila Metro Rail Transit System|Manila MRT]]",
	["system color"] = c.SYS,
	["name format"] = {
		["3"] = string.format(s, c.L3, c.BL),
		["4"] = string.format(s, c.L4, c.BL),
		["5"] = string.format(s, c.L5, c.BL),
		["7"] = string.format(s, c.L7, c.WH),
		["8"] = string.format(s, c.L8, c.BL),
		["9"] = string.format(s, c.L9, c.WH)
	},
	["line icon format"] = "link",
	["station format"] = {
		d,
		
		["Araneta Center–Cubao"] = x,
		["Lourdes"] = x,
		["Quirino"] = x,
		["Santolan"] = x,
		
		["Anonas"] = y,
		["East Avenue"] = y,
		["Katipunan"] = y,
		
		["EDSA"] = z,
		["Rockwell"] = z,
		
		["Buendia"] = {
			["3"] = x,
			["5"] = z
		},
		["Guadalupe"] = {
			["3"] = x,
			["5"] = z
		},
		["Kalayaan"] = {
			["5"] = z,
			["9"] = y
		},
		["North Avenue"] = {
			["3"] = x,
			["7"] = n,
			["9"] = n
		},
		["Quezon Avenue"] = {
			["3"] = d,
			["9"] = y
		},
		["Tandang Sora"] = {
			["7"] = d,
			["9"] = y
		}
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[MRT Line %1 (Metro Manila)|Line %1]]",
			["color"] = c.SYS
		},
		["3"] = {
			["color"] = c.L3,
			["icon"] = "[[File:MRT-3 Manila Yellow Logo Line 3.svg|20px|link=MRT Line 3 (Metro Manila)]]",
			["left terminus"] = "North Avenue",
			["right terminus"] = "Taft Avenue"
		},
		["4"] = {
			["color"] = c.L4,
			["left terminus"] = "Magsaysay Boulevard",
			["right terminus"] = "Taytay"
		},
		["5"] = {
			["title"] = "[[Makati Intra-city Subway|Makati Subway]]",
			["left terminus"] = "EDSA",
			["right terminus"] = "Sampaguita"
		},
		["7"] = {
			["color"] = c.L7,
			["left terminus"] = "San Jose del Monte",
			["right terminus"] = "North Avenue"
		},
		["8"] = {
			["left terminus"] = "University Avenue",
			["right terminus"] = "Lerma"
		},
		["9"] = {
			["title"] = "[[Metro Manila Subway]]",
			["color"] = c.L9,
			["left terminus"] = "Quirino Highway",
			["right terminus"] = "NAIA Terminal 3",
			["types"] = {
				["FTI/NAIA 3"] = {
					["title"] = "",
					["right terminus"] = {"FTI", "NAIA Terminal 3"}
				}
			}
		}
	},
	["aliases"] = {
		["makati subway"] = "5",
		["makati intra-city subway"] = "5",
		["mms"] = "9",
		["metro manila subway"] = "9"
	}
}

return p