Module:Adjacent stations/Dubai Metro: Difference between revisions
Appearance
Content deleted Content added
create based on Template:Dubai Metro stations and Template:Dubai Metro color and Template:Dubai Metro lines and related templates as well as Dubai Metro. I'm not sure I have the types set up right. |
No edit summary |
||
(18 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
local proposed_station = "%1#Dubai_Metro" |
|||
local QQQQ = "<span class=error>????</span>" |
|||
local blue = "Blue Line (Dubai Metro)" |
|||
local p = { |
local p = { |
||
["system title"] = "[[Dubai Metro]]", |
["system title"] = "[[Dubai Metro]]", |
||
["system icon"] = "", |
["system icon"] = "", |
||
⚫ | |||
["name format"] = "font-size: 140%; padding:5px; background-color:#006; color:#FFF; font-family: Helvetica, Arial, sans-serif; font-weight: normal;", |
["name format"] = "font-size: 140%; padding:5px; background-color:#006; color:#FFF; font-family: Helvetica, Arial, sans-serif; font-weight: normal;", |
||
["header background color"] = "EEEEEE", |
["header background color"] = "EEEEEE", |
||
["line icon format"] = "route", |
|||
["station format"] = { |
["station format"] = { |
||
"%1 (Dubai Metro)", |
"%1 (Dubai Metro)", |
||
["Academic City"] = "Dubai International Academic City#Dubai Metro", |
|||
["City Centre Mirdif"] = blue, |
|||
["DHC"] = "[[Dubai Healthcare City (Dubai Metro)|Dubai Healthcare City]]", |
["DHC"] = "[[Dubai Healthcare City (Dubai Metro)|Dubai Healthcare City]]", |
||
["Dubai Festival City"] = proposed_station, |
|||
["Dubai Silicon Oasis"] = proposed_station, |
|||
["Expo City Dubai"] = "[[Expo 2020 (Dubai Metro)|Expo 2020]]", |
|||
["International City 1"] = "Dubai International City#Dubai Metro", |
|||
["International City 2 & 3"] = "Dubai International City#Dubai Metro", |
|||
}, |
}, |
||
["lines"] = { |
["lines"] = { |
||
["_default"] = { |
["_default"] = { |
||
["title"] = "[[%1 Line (Dubai Metro)|%1 Line]]", |
["title"] = "[[%1 Line (Dubai Metro)|%1 Line]]", |
||
[" |
["text color"] = "FFF" |
||
⚫ | |||
}, |
}, |
||
[" |
["Red"] = { |
||
["color"] = " |
["color"] = "DC241F", |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
["UAE Exchange branch"] = { |
|||
⚫ | |||
⚫ | |||
["Expo 2020 branch"] = { |
|||
⚫ | |||
⚫ | |||
} |
|||
}, |
}, |
||
["Green"] = { |
["Green"] = { |
||
["color"] = " |
["color"] = "009530", |
||
["short name"] = "M2", |
|||
["left terminus"] = "Creek", |
|||
⚫ | |||
}, |
|||
["Purple"] = { |
|||
⚫ | |||
⚫ | |||
}, |
|||
["Blue"] = { |
|||
["color"] = "0354A6", |
|||
["note-mid"] = "Opening 2029", |
|||
["short name"] = "M4", |
|||
⚫ | |||
⚫ | |||
["types"] = { |
["types"] = { |
||
["Creek branch"] = { |
|||
["left terminus"] = "Creek", |
["left terminus"] = "Creek", |
||
⚫ | |||
}, |
}, |
||
["Centrepoint branch"] = { |
|||
["left terminus"] = " |
["left terminus"] = "Centrepoint", |
||
⚫ | |||
⚫ | |||
["Etisalat"] = { |
|||
⚫ | |||
⚫ | |||
}, |
}, |
||
}, |
}, |
||
}, |
}, |
||
[" |
["Tram"] = { |
||
["title"] = "[[Dubai Tram]]", |
["title"] = "[[Dubai Tram]]", |
||
["color"] = " |
["color"] = "01A0B1", |
||
["short name"] = "T1", |
|||
}, |
}, |
||
[" |
["Trolley"] = { |
||
[" |
["title"] = "[[Dubai Trolley]]", |
||
["color"] = "800000", |
|||
["short name"] = "T2", |
|||
}, |
}, |
||
[" |
["Monorail"] = { |
||
[" |
["title"] = "[[Palm Jumeirah Monorail]]", |
||
[" |
["color"] = "748477", |
||
[" |
["short name"] = "L1", |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}, |
}, |
||
}, |
}, |
||
["aliases"] = { |
["aliases"] = { |
||
[" |
["red"] = "Red", |
||
["green"] = "Green", |
["green"] = "Green", |
||
⚫ | |||
["purple"] = "Purple", |
["purple"] = "Purple", |
||
[" |
["blue"] = "Blue", |
||
["tram"] = " |
["tram"] = "Tram", |
||
["trolley"] = "Trolley", |
|||
["monorail"] = "Monorail", |
|||
["m1"] = "Red", |
|||
["m2"] = "Green", |
|||
["m3"] = "Purple", |
|||
["m4"] = "Blue", |
|||
["t1"] = "Tram", |
|||
["t2"] = "Trolley", |
|||
["l1"] = "Monorail", |
|||
} |
} |
||
} |
} |
Latest revision as of 15:42, 28 June 2024
This is a data module for Module:Adjacent stations. It supports services operated by Dubai Metro.
Line | Keys | Color | Hex color | Icon |
---|---|---|---|---|
Red Line | Red or M1 |
DC241F |
M1 | |
Green Line | Green or M2 |
009530 |
M2 | |
Purple Line | Purple or M3 |
9016B2 |
M3 | |
Blue Line | Blue or M4 |
0354A6 |
M4 | |
Dubai Tram | Tram or T1 |
01A0B1 |
T1 | |
Dubai Trolley | Trolley or T2 |
800000 |
T2 | |
Palm Jumeirah Monorail | Monorail or L1 |
748477 |
L1 |
local proposed_station = "%1#Dubai_Metro"
local blue = "Blue Line (Dubai Metro)"
local p = {
["system title"] = "[[Dubai Metro]]",
["system icon"] = "",
["name format"] = "font-size: 140%; padding:5px; background-color:#006; color:#FFF; font-family: Helvetica, Arial, sans-serif; font-weight: normal;",
["header background color"] = "EEEEEE",
["line icon format"] = "route",
["station format"] = {
"%1 (Dubai Metro)",
["Academic City"] = "Dubai International Academic City#Dubai Metro",
["City Centre Mirdif"] = blue,
["DHC"] = "[[Dubai Healthcare City (Dubai Metro)|Dubai Healthcare City]]",
["Dubai Festival City"] = proposed_station,
["Dubai Silicon Oasis"] = proposed_station,
["Expo City Dubai"] = "[[Expo 2020 (Dubai Metro)|Expo 2020]]",
["International City 1"] = "Dubai International City#Dubai Metro",
["International City 2 & 3"] = "Dubai International City#Dubai Metro",
},
["lines"] = {
["_default"] = {
["title"] = "[[%1 Line (Dubai Metro)|%1 Line]]",
["text color"] = "FFF"
},
["Red"] = {
["color"] = "DC241F",
["short name"] = "M1",
["left terminus"] = {"Expo 2020", "UAE Exchange"},
["right terminus"] = "Centrepoint",
["types"] = {
["UAE Exchange branch"] = {
["left terminus"] = "UAE Exchange",
},
["Expo 2020 branch"] = {
["left terminus"] = "Expo 2020",
},
}
},
["Green"] = {
["color"] = "009530",
["short name"] = "M2",
["left terminus"] = "Creek",
["right terminus"] = "Etisalat",
},
["Purple"] = {
["color"] = "9016B2",
["short name"] = "M3",
},
["Blue"] = {
["color"] = "0354A6",
["note-mid"] = "Opening 2029",
["short name"] = "M4",
["left terminus"] = {"Creek", "Centrepoint"},
["right terminus"] = "Academic City",
["types"] = {
["Creek branch"] = {
["left terminus"] = "Creek",
},
["Centrepoint branch"] = {
["left terminus"] = "Centrepoint",
},
},
},
["Tram"] = {
["title"] = "[[Dubai Tram]]",
["color"] = "01A0B1",
["short name"] = "T1",
},
["Trolley"] = {
["title"] = "[[Dubai Trolley]]",
["color"] = "800000",
["short name"] = "T2",
},
["Monorail"] = {
["title"] = "[[Palm Jumeirah Monorail]]",
["color"] = "748477",
["short name"] = "L1",
},
},
["aliases"] = {
["red"] = "Red",
["green"] = "Green",
["purple"] = "Purple",
["blue"] = "Blue",
["tram"] = "Tram",
["trolley"] = "Trolley",
["monorail"] = "Monorail",
["m1"] = "Red",
["m2"] = "Green",
["m3"] = "Purple",
["m4"] = "Blue",
["t1"] = "Tram",
["t2"] = "Trolley",
["l1"] = "Monorail",
}
}
return p