Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Adjacent stations/Manila MRT

Permanently protected module
From Wikipedia, the free encyclopedia

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 Triangle Common 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  = 'FFD300', L4 = 'FF5F22', L5 = 'a9a9a9',
			L7  = '800000', L8 = 'a9a9a9', L9 = '0000FF',
			SYS = 'a9a9a9', BL = '000000', WH = 'ffffff'}

-- Shows light/dark version of MRT-7 logo
local mrt7logo = mw.getCurrentFrame():preprocess(
	"{{If dark|[[File:Manila Line 7 logo white.png|20px|link=MRT Line 7 (Metro Manila)]]|[[File:Manila Line 7 logo.png|20px|link=MRT Line 7 (Metro Manila)]]}}"
)

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,
		["Hidalgo"] = x,
		["Lerma"] = 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,
			["9"] = y
		},
		["North EDSA"] = {
			["7"] = n
		},
		["Ortigas"] = {
			["3"] = d,
			["9"] = y
		},
		["Quezon Avenue"] = {
			["3"] = d,
			["9"] = y
		},
		["Shaw Boulevard"] = {
			["3"] = d,
			["9"] = y
		},
		["Tandang Sora"] = {
			["7"] = d,
			["9"] = y
		},
		["Santa Rosa"] = "Santa Rosa station (PNR)",
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[MRT Line %1 (Metro Manila)|MRT Line %1]]",
			["color"] = c.SYS
		},
		["3"] = {
			["color"] = c.L3,
			["icon"] = "[[File:MRT Line 3 icon (Metro Manila).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,
			["icon"] = mrt7logo,
			["left terminus"] = "North EDSA",
			["right terminus"] = "San Jose Del Monte"
		},
		["8"] = {
			["left terminus"] = "University Avenue",
			["right terminus"] = "Lerma"
		},
		["9"] = {
			["title"] = "[[Metro Manila Subway]]",
			["color"] = c.L9,
			["left terminus"] = "East Valenzuela",
			["right terminus"] = "NAIA Terminal 3",
			["types"] = {
				["FTI/NAIA 3"] = {
					["title"] = "",
					["right terminus"] = {"FTI", "NAIA Terminal 3"}
				}
			}
		}
	},
	["aliases"] = {
        ["yl"] = "3",
		["ol"] = "4",
		["makati subway"] = "5",
		["makati intra-city subway"] = "5",
		["ml"] = "7",
        ["s"] = "7",
		["bl"] = "9",
		["bw"] = "9",
		["mms"] = "9",
		["metro manila subway"] = "9"
	}
}

return p