Module:Adjacent stations/KLRT
Appearance
This is a data module for Module:Adjacent stations. It supports services operated by KLRT.
This template can be used to call the color of Klang Valley Rail Transit lines in and around Kuala Lumpur. The following are included in this template.
In order to call a line's color, the code {{rcr|KLRT|line}}
is used (where line is replaced by the actual line number or color). Note that this template is not case sensitive: i.e. {{rcr|KLRT|Red}}
produces the same result as {{rcr|KLRT|red}}
.
Line | Keys | Color | Hex color | Icon |
---|---|---|---|---|
Lua error at line 36: invalid option '%;' to 'format'. | 1 or blue or Seremban or KB or KC or Batu Caves-Pulau Sebang |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 2 or red or Port Klang or KA or KD or Tanjung Malim-Port Klang |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 3 or orange or LRT1 or Ampang or AG |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 4 or maroon or Sri Petaling or SP |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 5 or ruby or LRT2 or Kelana Jaya or KJ |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 6 or purple or KLIA Ekspres or KE |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 7 or teal or KLIA Transit or KT |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 8 or lightgreen or Monorail or MR |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 9 or green or MRT1 or Kajang or KG |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 10 or brown or Skypark or KS |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 11 or skyblue or LRT3 or Shah Alam or SA |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 12 or yellow or MRT2 or Putrajaya or PY |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 13 or MRT3 or Circle or CC |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 14 or PM |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 21 or darkgreen or B1 or Sunway or SB |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. | |
Lua error at line 36: invalid option '%;' to 'format'. | 22 or violet or B2 or Federal or FB |
Lua error at line 36: invalid option '%;' to 'format'. |
Lua error at line 36: invalid option '%;' to 'format'. |
Source
Colors were obtained from the MRT3 Circle Line map at www.mymrt.com.my: MRT Corp or KTMB's GTFS static data
local QQQQ = "<span class=\"error\">???</span>[[Category:Pages using KLRT with unknown termini]]"
local colors = {
["1"] = "1964b7",
["2"] = "dc241f",
["3"] = "fe8e10",
["4"] = "721422",
["5"] = "e0115f",
["6"] = "8c238f",
["7"] = "33a8b5",
["8"] = "7dba00",
["9"] = "11753a",
["10"] = "8b4513",
["11"] = "59b8e6",
["12"] = "faca05",
["13"] = "808080",
["14"] = "808080",
["21"] = "1e4d2b",
["22"] = "4b0082"
}
local icon = "[[%s|<span style=\"display:inline-block; vertical-align:middle; "
.. "position:relative; border-radius:3.3px; height:20px; width:20px; "
.. "line-height:100%; background:#%s; text-align:center; font-weight:bold; "
.. "font-size:5px;\"><span style=\"position:absolute; top:6.67px; left:2px; "
.. "border:1.67px solid white; border-radius:10%; height:8.33px; width:13.33px; "
.. "color:black; background:white; text-align:center; line-height:8.89px; "
.. "font-weight:bold; font-size:11.11px;%s\";>%s</span></span>]]"
local p = {
["lines"] = {
["_default"] = {
["title"] = "[[%1 Line]]",
["color"] = "000000"
},
["Seremban"] = {
["color"] = colors["1"],
["icon"] = string.format(icon, "Seremban Line", colors["1"], "", "1"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Port Klang"] = {
["color"] = colors["2"],
["icon"] = string.format(icon, "Port Klang Line", colors["2"], "", "2"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Ampang"] = {
["title"] = "[[Ampang and Sri Petaling lines|Ampang Line]]",
["color"] = colors["3"],
["icon"] = string.format(icon, "Ampang and Sri Petaling lines", colors["3"], "", "3"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Sri Petaling"] = {
["title"] = "[[Ampang and Sri Petaling lines|Sri Petaling Line]]",
["color"] = colors["4"],
["icon"] = string.format(icon, "Ampang and Sri Petaling lines", colors["4"], "", "4"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Kelana Jaya"] = {
["title"] = "[[Kelana Jaya line|Kelana Jaya Line]]",
["color"] = colors["5"],
["icon"] = string.format(icon, "Kelana Jaya line", colors["5"], "", "5"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["KLIA Ekspres"] = {
["title"] = "[[KLIA Ekspres]]",
["color"] = colors["6"],
["icon"] = string.format(icon, "KLIA Ekspres", colors["6"], "", "6"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["KLIA Transit"] = {
["title"] = "[[KLIA Transit]]",
["color"] = colors["7"],
["icon"] = string.format(icon, "KLIA Transit", colors["7"], "", "7"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["KL Monorail"] = {
["title"] = "[[KL Monorail]]",
["color"] = colors["8"],
["icon"] = string.format(icon, "KL Monorail", colors["8"], "", "8"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Kajang"] = {
["title"] = "[[Kajang line|Kajang Line]]",
["color"] = colors["9"],
["icon"] = string.format(icon, "Kajang line", colors["9"], "", "9"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Skypark"] = {
["title"] = "[[Skypark Link]]",
["color"] = colors["10"],
["icon"] = string.format(icon, "Skypark Link", colors["10"], "", "10"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Shah Alam"] = {
["title"] = "''[[Shah Alam Line|Shah Alam]]''",
["color"] = colors["11"],
["icon"] = string.format(icon, "Shah Alam Line", colors["11"], "font-style:italic;", "11"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Putrajaya"] = {
["title"] = "''[[Putrajaya line|Putrajaya Line]]''",
["color"] = colors["12"],
["icon"] = string.format(icon, "Putrajaya line", colors["12"], "font-style:italic;", "12"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Circle MRT"] = {
["title"] = "''[[MRT Circle Line|Circle Line]]''",
["color"] = colors["13"],
["icon"] = string.format(icon, "MRT Circle Line", colors["13"], "font-style:italic;", "13"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["Putrajaya Monorail"] = {
["title"] = "''[[Putrajaya Monorail]]''",
["color"] = colors["14"],
["icon"] = string.format(icon, "Putrajaya Monorail", colors["14"], "font-style:italic;", "14"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["BRT Sunway"] = {
["color"] = colors["21"],
["icon"] = string.format(icon, "BRT Sunway Line", colors["21"], "", "B1"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
},
["BRT Federal"] = {
["title"] = "''[[BRT Federal Line]]''",
["color"] = colors["22"],
["icon"] = string.format(icon, "BRT Federal Line", colors["22"], "font-style:italic;", "B2"),
["left terminus"] = QQQQ,
["right terminus"] = QQQQ
}
},
["aliases"] = {
["1"] = "Seremban",
["blue"] = "Seremban",
["kb"] = "Seremban",
["kc"] = "Seremban",
["seremban"] = "Seremban",
["seremban line"] = "Seremban",
["2"] = "Port Klang",
["red"] = "Port Klang",
["ka"] = "Port Klang",
["kd"] = "Port Klang",
["port klang"] = "Port Klang",
["port klang line"] = "Port Klang",
["3"] = "Ampang",
["orange"] = "Ampang",
["lrt1"] = "Ampang",
["ag"] = "Ampang",
["ampang"] = "Ampang",
["ampang line"] = "Ampang",
["4"] = "Sri Petaling",
["maroon"] = "Sri Petaling",
["sp"] = "Sri Petaling",
["ph"] = "Sri Petaling",
["sri petaling"] = "Sri Petaling",
["putra heights"] = "Sri Petaling",
["sri petaling line"] = "Sri Petaling",
["5"] = "Kelana Jaya",
["ruby"] = "Kelana Jaya",
["lrt2"] = "Kelana Jaya",
["kj"] = "Kelana Jaya",
["kelana jaya"] = "Kelana Jaya",
["kelana jaya line"] = "Kelana Jaya",
["6"] = "KLIA Ekspres",
["purple"] = "KLIA Ekspres",
["ke"] = "KLIA Ekspres",
["klia express"] = "KLIA Ekspres",
["express"] = "KLIA Ekspres",
["klia ekspres"] = "KLIA Ekspres",
["7"] = "KLIA Transit",
["teal"] = "KLIA Transit",
["kt"] = "KLIA Transit",
["klia transit"] = "KLIA Transit",
["transit"] = "KLIA Transit",
["klia transit"] = "KLIA Transit",
["8"] = "KL Monorail",
["lightgreen"] = "KL Monorail",
["mr"] = "KL Monorail",
["monorail"] = "KL Monorail",
["kl monorail"] = "KL Monorail",
["9"] = "Kajang",
["green"] = "Kajang",
["mrt1"] = "Kajang",
["kg"] = "Kajang",
["sbk"] = "Kajang",
["sungai buloh kajang"] = "Kajang",
["sungai buloh kajang line"] = "Kajang",
["sungai buloh-kajang line"] = "Kajang",
["mrt kajang line"] = "Kajang",
["kajang"] = "Kajang",
["10"] = "Skypark",
["brown"] = "Skypark",
["ks"] = "Skypark",
["skypark"] = "Skypark",
["11"] = "Shah Alam",
["skyblue"] = "Shah Alam",
["lrt3"] = "Shah Alam",
["bk"] = "Shah Alam",
["buk"] = "Shah Alam",
["js"] = "Shah Alam",
["johan setia line"] = "Shah Alam",
["bandar utama-klang line"] = "Shah Alam",
["s"] = "Shah Alam",
["12"] = "Putrajaya",
["yellow"] = "Putrajaya",
["mrt2"] = "Putrajaya",
["ssp"] = "Putrajaya",
["py"] = "Putrajaya",
["mrt putrajaya line"] = "Putrajaya",
["putrajaya"] = "Putrajaya",
["13"] = "Circle MRT",
["grey"] = "Circle MRT",
["mrt3"] = "Circle MRT",
["cc"] = "Circle MRT",
["14"] = "Putrajaya Monorail",
["olive"] = "Putrajaya Monorail",
["pm"] = "Putrajaya Monorail",
["21"] = "BRT Sunway",
["darkgreen"] = "BRT Sunway",
["b1"] = "BRT Sunway",
["sb"] = "BRT Sunway",
["brt sunway"] = "BRT Sunway",
["brt sunway line"] = "BRT Sunway",
["sunway"] = "BRT Sunway",
["sunway line"] = "BRT Sunway",
["22"] = "BRT Federal",
["violet"] = "BRT Federal",
["b2"] = "BRT Federal",
["fb"] = "BRT Federal",
["federal"] = "BRT Federal",
["federal line"] = "BRT Federal",
["brt federal"] = "BRT Federal",
["brt federal line"] = "BRT Federal"
}
}
return p