Difference between revisions of "Module:Adjacent stations/Washington Metro"

From blackwiki
Jump to navigation Jump to search
blackwiki>Daybeers
(removed pictograms, those go in the individual route templates)
blackwiki>Jorflores1
(Added additional fonts to render WMATA station names that are substantially similar to 'Helvetica' to accommodate devices that do not have it installed)
Line 5: Line 5:
 
["system title"] = "[[Washington Metro]]",
 
["system title"] = "[[Washington Metro]]",
 
["system icon"] = "[[File:WMATA Metro Logo.svg|18px|link=Washington Metro]]",
 
["system icon"] = "[[File:WMATA Metro Logo.svg|18px|link=Washington Metro]]",
["name format"] = "font-family: Helvetica; background-color: #241f20; font-size: 160%; color: white; padding: 0.4em 4px; margin: 0.25em;",
+
["name format"] = "font-family: Helvetica, Microsoft Sans Serif, Arial; background-color: #241f20; font-size: 160%; color: white; padding: 0.4em 4px; margin: 0.25em;",
 
["header background color"] = "241F20",
 
["header background color"] = "241F20",
 
["system color"] = "241F20",
 
["system color"] = "241F20",

Revision as of 02:41, 18 July 2019

This is a data module for Module:Adjacent stations. It supports services operated by the Washington Metro, of Washington DC and the Maryland and Virginia suburbs. For the Metroway bus rapid transit service, use Module:Adjacent stations/Metroway.

It may be invoked by either "Washington Metro" or "WMATA".

Lines

Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc


local x = "%1 station (Washington Metro)"

local p = {
	["lang"] = "en-US",
	["system title"] = "[[Washington Metro]]",
	["system icon"] = "[[File:WMATA Metro Logo.svg|18px|link=Washington Metro]]",
	["name format"] = "font-family: Helvetica, Microsoft Sans Serif, Arial; background-color: #241f20; font-size: 160%; color: white; padding: 0.4em 4px; margin: 0.25em;",
	["header background color"] = "241F20",
	["system color"] = "241F20",
	["station format"] = {
		"%1 station",
		["Ashburn"] = x,
		["College Park"] = "[[College Park–University of Maryland station|College Park]]",
		["Crystal City"] = x,
		["Greensboro"] = x,
		["Huntington"] = x,
		["Medical Center"] = x,
		["National Airport"] = "[[Ronald Reagan Washington National Airport station|National Airport]]",
		["Ronald Reagan Washington National Airport"] = "[[Ronald Reagan Washington National Airport station|National Airport]]",
		["Vienna"] = x,
		["Waterfront"] = x,
		["Route 772"] = "[[Ashburn station (Washington Metro)|Ashburn]]",
		["Route 606"] = "[[Loudoun Gateway station|Loudoun Gateway]]",
		["Silver Spring"] = "%1 station (Maryland)",
		["Union Station"] = "Union Station (Washington Metro)"
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[%1 Line (Washington Metro)|%1 Line]]"
		},
		["Red"] = {
			["color"] = "E31837",
			["left terminus"] = "Shady Grove",
			["right terminus"] = "Glenmont"
		},
		["Blue"] = {
			["color"] = "0076C0",
			["left terminus"] = "Franconia–Springfield",
			["right terminus"] = "Largo Town Center"
		},
		["Orange"] = {
			["color"] = "F7941D",
			["left terminus"] = "Vienna",
			["right terminus"] = "New Carrollton"
		},
		["Yellow"] = {
			["color"] = "FFD200",
			["left terminus"] = "Huntington",
			["right terminus"] = {"Fort Totten", "Mount Vernon Square"},
		},
		["Green"] = {
			["color"] = "00A94F",
			["left terminus"] = "Branch Avenue",
			["right terminus"] = "Greenbelt"
		},
		["Silver"] = {
			["color"] = "A1A2A1",
			["left terminus"] = {
				"Wiehle–Reston East",
				["Ashburn"] = "Ashburn"
			},
			["right terminus"] = "Largo Town Center"
		}
	}
}

return p