มอดูล:Adjacent stations/KLRT
หน้าตา
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}}
.
สาย | Keys | สี | รหัสสี | ตรา |
---|---|---|---|---|
สายบาตูเคฟส์–ปูเลาเซอบัง | 1 or blue or Seremban or KB or KC or Batu Caves-Pulau Sebang |
3C5A9F |
1 | |
สายตันจุงมาลิม–พอร์ตกลัง | 2 or red or Port Klang or KA or KD or Tanjung Malim-Port Klang |
DC2420 |
2 | |
สายอัมปัง | 3 or orange or LRT1 or Ampang or AG |
FE8E10 |
3 | |
สายซรีเปอตาลิง | 4 or maroon or Sri Petaling or SP |
721422 |
4 | |
สายเกอลานาจายา | 5 or ruby or LRT2 or Kelana Jaya or KJ |
E0115F |
5 | |
เคแอลไอเอ เอ็กซ์เพรส | 6 or purple or KLIA Ekspres or KE |
8C238F |
6 | |
เคแอลไอเอ แทรนซิต | 7 or teal or KLIA Transit or KT |
33A8B5 |
7 | |
เคแอลโมโนเรล | 8 or lightgreen or Monorail or MR |
7DBA00 |
8 | |
สายกาจัง | 9 or green or MRT1 or Kajang or KG |
11753A |
9 | |
สายเซ็นทรัลกัวลาลัมเปอร์–เทอมินัล สกายพาร์ก | 10 or brown or Skypark or KS |
8B4513 |
10 | |
สายชาห์อลัม | 11 or skyblue or LRT3 or Shah Alam or SA |
59B8E6 |
11 | |
สายปูตราจายา | 12 or yellow or MRT2 or Putrajaya or PY |
FACA05 |
12 | |
สายเซอร์เคิล | 13 or MRT3 or CC |
808080 |
13 | |
ปูตราจายาโมโนเรล | 14 or PM |
808000 |
14 | |
บีอาร์ที สายซันเวย์ | 21 or darkgreen or B1 or Sunway or SB |
1E4D2B |
B1 | |
บีอาร์ที สายเฟดเดอรัล | 22 or violet or B2 or Federal or FB |
4B0082 |
B2 |
Source
[แก้]Colors were obtained from the Greater KL / Klang Valley Integrated Transit Map at www.spad.gov.my: Suruhanjaya Pengangkutan Awam Darat (Land Public Transport Commission) or KTMB's GTFS static data
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก มอดูล:Adjacent stations/KLRT/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของมอดูลนี้ หน้าย่อยของมอดูลนี้ |
local colors = {
["1"] = "3C5A9F",
["2"] = "DC2420",
["3"] = "FE8E10",
["4"] = "721422",
["5"] = "E0115F",
["6"] = "8C238F",
["7"] = "33A8B5",
["8"] = "7DBA00",
["9"] = "11753A",
["10"] = "8B4513",
["11"] = "59B8E6",
["12"] = "FACA05",
["13"] = "808080",
["14"] = "808000",
["21"] = "1E4D2B",
["22"] = "4B0082"
}
local icon = "[[%s|<span style=\"display: inline-block; vertical-align: middle; "
.. "position: relative; border-radius: 3.3px; height: 20px; width: 22px; "
.. "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: 15px; "
.. "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"
},
["Batu Caves-Pulau Sebang"] = {
["title"] = "[[สายบาตูเคฟส์–ปูเลาเซอบัง]]",
["short name"] = "สายบาตูเคฟส์–ปูเลาเซอบัง",
["color"] = colors["1"],
["icon"] = string.format(icon, "สายบาตูเคฟส์–ปูเลาเซอบัง", colors["1"], "", "1"),
["left terminus"] = "บาตูเคฟส์",
["right terminus"] = "ปูเลาเซอบัง/ตัมปิน"
},
["Tanjung Malim-Port Klang"] = {
["title"] = "[[สายตันจุงมาลิม–พอร์ตกลัง]]",
["short name"] = "สายตันจุงมาลิม–พอร์ตกลัง",
["color"] = colors["2"],
["icon"] = string.format(icon, "สายตันจุงมาลิม–พอร์ตกลัง", colors["2"], "", "2"),
["left terminus"] = "ตันจุงมาลิม",
["right terminus"] = "พอร์ตกลัง"
},
["Ampang"] = {
["title"] = "[[สายอัมปังและซรีเปอตาลิง|สายอัมปัง]]",
["short name"] = "สายอัมปัง",
["color"] = colors["3"],
["icon"] = string.format(icon, "สายอัมปังและศซรีเปอตาลิง", colors["3"], "", "3"),
["left terminus"] = "Sentul Timur",
["right terminus"] = "อัมปัง"
},
["Sri Petaling"] = {
["title"] = "[[สายอัมปังและซรีเปอตาลิง|สายซรีเปอตาลิง]]",
["short name"] = "สายซรีเปอตาลิง",
["color"] = colors["4"],
["icon"] = string.format(icon, "สายอัมปังและซรีเปอตาลิง", colors["4"], "", "4"),
["left terminus"] = "Sentul Timur",
["right terminus"] = "Putra Heights"
},
["Kelana Jaya"] = {
["title"] = "[[สายเกอลานาจายา]]",
["short name"] = "สายเกอลานาจายา",
["color"] = colors["5"],
["icon"] = string.format(icon, "สายเกอลานาจายา", colors["5"], "", "5"),
["left terminus"] = "กมบะก์",
["right terminus"] = "Putra Heights"
},
["KLIA Ekspres"] = {
["title"] = "[[เคแอลไอเอ เอ็กซ์เพรส]]",
["short name"] = "เคแอลไอเอ เอ็กซ์เพรส",
["color"] = colors["6"],
["icon"] = string.format(icon, "เคแอลไอเอ เอ็กซ์เพรส", colors["6"], "", "6"),
["left terminus"] = "เซ็นทรัลกัวลาลัมเปอร์",
["right terminus"] = "เคแอลไอเอ 2"
},
["KLIA Transit"] = {
["title"] = "[[เคแอลไอเอ แทรนซิต]]",
["short name"] = "เคแอลไอเอ แทรนซิต",
["color"] = colors["7"],
["icon"] = string.format(icon, "เคแอลไอเอ แทรนซิต", colors["7"], "", "7"),
["left terminus"] = "เซ็นทรัลกัวลาลัมเปอร์",
["right terminus"] = "เคแอลไอเอ 2"
},
["KL Monorail"] = {
["title"] = "[[เคแอลโมโนเรล]]",
["short name"] = "เคแอลโมโนเรล",
["color"] = colors["8"],
["icon"] = string.format(icon, "เคแอลโมโนเรล", colors["8"], "", "8"),
["left terminus"] = "เซ็นทรัลกัวลาลัมเปอร์",
["right terminus"] = "ตีตีวังซา"
},
["Kajang"] = {
["title"] = "[[สายกาจัง]]",
["short name"] = "สายกาจัง",
["color"] = colors["9"],
["icon"] = string.format(icon, "สายกาจัง", colors["9"], "", "9"),
["left terminus"] = "กวาซาดามันซารา",
["right terminus"] = "กาจัง"
},
["KL Sentral-Terminal Skypark"] = {
["title"] = "[[สายเซ็นทรัลกัวลาลัมเปอร์–เทอมินัล สกายพาร์ก]]",
["short name"] = "สายเซ็นทรัลกัวลาลัมเปอร์–เทอมินัล สกายพาร์ก",
["color"] = colors["10"],
["icon"] = string.format(icon, "KL Sentral–Terminal Skypark Line", colors["10"], "", "10"),
["left terminus"] = "เซ็นทรัลกัวลาลัมเปอร์",
["right terminus"] = "เทอร์มินัลสกายพาร์ก"
},
["Shah Alam"] = {
["title"] = "[[สายชาห์อลัม]]",
["short name"] = "สายชาห์อลัม",
["color"] = colors["11"],
["icon"] = string.format(icon, "สายชาห์อลัม", colors["11"], " font-style: italic;", "11"),
["left terminus"] = "บันดาร์อูตามา",
["right terminus"] = "โจฮันเซอเตีย"
},
["Putrajaya"] = {
["title"] = "[[สายปูตราจายา]]",
["short name"] = "สายปูตราจายา",
["color"] = colors["12"],
["icon"] = string.format(icon, "สายปูตราจายา", colors["12"], "", "12"),
["left terminus"] = "กวาซาดามันซารา",
["right terminus"] = "ปูตราจายาเซ็นทรัล"
},
["Circle MRT"] = {
["title"] = "[[สายเซอร์เคิล (กัวลาลัมเปอร์)|สายเซอร์เคิล]]",
["short name"] = "สายเซอร์เคิล",
["color"] = colors["13"],
["icon"] = string.format(icon, "สายเซอร์เคิล (กัวลาลัมเปอร์)", colors["13"], " font-style: italic;", "13"),
["left terminus"] = "Bukit Kiara South",
["right terminus"] = "UM"
},
["Putrajaya Monorail"] = {
["title"] = "[[Putrajaya Monorail|ปูตราจายาโมโนเรล]]",
["short name"] = "ปูตราจายาโมโนเรล",
["color"] = colors["14"],
["icon"] = string.format(icon, "Putrajaya Monorail", colors["14"], " font-style: italic;", "14"),
["left terminus"] = "?",
["right terminus"] = "?"
},
["BRT Sunway"] = {
["title"] = "[[BRT Sunway Line|บีอาร์ที สายซันเวย์]]",
["short name"] = "บีอาร์ที สายซันเวย์",
["color"] = colors["21"],
["icon"] = string.format(icon, "BRT Sunway Line", colors["21"], "", "B1"),
["left terminus"] = "USJ 7",
["right terminus"] = "Sunway-Setia Jaya"
},
["BRT Federal"] = {
["title"] = "[[BRT Federal Line|บีอาร์ที สายเฟดเดอรัล]]",
["short name"] = "บีอาร์ที สายเฟดเดอรัล",
["color"] = colors["22"],
["icon"] = string.format(icon, "BRT Federal Line", colors["22"], " font-style: italic;", "B2"),
["left terminus"] = "?",
["right terminus"] = "?"
}
},
["aliases"] = {
["1"] = "Batu Caves-Pulau Sebang",
["blue"] = "Batu Caves-Pulau Sebang",
["kb"] = "Batu Caves-Pulau Sebang",
["kc"] = "Batu Caves-Pulau Sebang",
["seremban"] = "Batu Caves-Pulau Sebang",
["seremban line"] = "Batu Caves-Pulau Sebang",
["batu caves-pulau sebang"] = "Batu Caves-Pulau Sebang",
["batu caves-pulau sebang line"] = "Batu Caves-Pulau Sebang",
["2"] = "Tanjung Malim-Port Klang",
["red"] = "Tanjung Malim-Port Klang",
["ka"] = "Tanjung Malim-Port Klang",
["kd"] = "Tanjung Malim-Port Klang",
["port klang"] = "Tanjung Malim-Port Klang",
["port klang line"] = "Tanjung Malim-Port Klang",
["tanjung malim-port klang"] = "Tanjung Malim-Port Klang",
["tanjung malim-port klang line"] = "Tanjung Malim-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"] = "KL Sentral-Terminal Skypark",
["brown"] = "KL Sentral-Terminal Skypark",
["ks"] = "KL Sentral-Terminal Skypark",
["skypark"] = "KL Sentral-Terminal Skypark",
["11"] = "Shah Alam",
["skyblue"] = "Shah Alam",
["lrt3"] = "Shah Alam",
["sa"] = "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