local sparis = "%1 station (Paris)"
local rer = "%1 station (Paris RER)"
local u = "%1"
local termini = {
["a1"] = "[[Saint-Germain-en-Laye station|Saint-Germain-en-Laye]]",
["a2"] = "[[Boissy-Saint-Léger station|Boissy-Saint-Léger]]",
["a3"] = "[[Cergy-le-Haut station|Cergy-le-Haut]]",
["a4"] = "[[Marne-la-Vallée–Chessy station|Marne-la-Vallée–Chessy]]",
["a5"] = "[[Poissy station|Poissy]]",
["b2"] = "[[Robinson (Paris RER)|Robinson]]",
["b3"] = "[[Aéroport Charles de Gaulle 2 TGV]]",
["b4"] = "[[Saint-Rémy-lès-Chevreuse station|Saint-Rémy-lès-Chevreuse]]",
["b5"] = "[[Mitry–Claye station|Mitry–Claye]]",
["c1"] = "[[Pontoise station|Pontoise]]",
["c2"] = "[[Massy-Palaiseau station|Massy-Palaiseau]]",
["c3"] = "[[Montigny–Beauchamp station|Montigny–Beauchamp]]",
["c4"] = "[[Dourdan-la-Forêt station|Dourdan-la-Forêt]]",
["c5"] = "[[Versailles-Château-Rive Gauche station|Versailles-Château–Rive Gauche]]",
["c6"] = "[[Saint-Martin-d'Étampes (Paris RER)|Saint-Martin-d'Étampes]]",
["c7"] = "[[Saint-Quentin-en-Yvelines–Montigny-le-Bretonneux station|Saint-Quentin-en-Yvelines]]",
["c8"] = "[[Versailles-Chantiers station|Versailles-Chantiers]]",
["d1"] = "[[Creil station|Creil]]",
["d2"] = "[[Melun station|Melun]]",
["d3"] = "[[Gare de Lyon]]",
["d4"] = "[[Malesherbes (Paris RER)|Malesherbes]]",
["d6"] = "[[Corbeil-Essonnes (Paris RER)|Corbeil-Essonnes]]",
["d7"] = "[[Goussainville (Paris RER)|Goussainville]]",
["e1"] = "[[Haussmann–Saint-Lazare]]",
["e2"] = "[[Chelles–Gournay station|Chelles-Gournay]]",
["e4"] = "[[Tournan station|Tournan]]"
}
local multitermini = {
{"a3", "a5"},
{"b2", "b4"},
{"b3", "b5"},
{"c2", "c4"},
{"c4", "c6", "c8"},
{"c5", "c7"},
{"d2", "d4"},
{"e2", "e4"}
}
for kk, slist in ipairs(multitermini) do
local key = table.concat(slist)
for k, v in ipairs(slist) do
slist[k] = termini[v]
end
if #slist > 2 then
termini[key] = table.concat(slist, ', ', 1, #slist - 1) .. ' or ' .. slist[#slist]
else
termini[key] = table.concat(slist, ' or ')
end
end
local p = {
["system title"] = "[[Réseau Express Régional|RER]]",
["name format"] = "font-family:Arial; background-color:#02207A; text-align:center; vertical-align:middle; font-size:170%; color:white; padding-top:5px; padding-bottom:5px; padding-left:3px;",
["system icon"] = "[[File:Paris transit icons - RER.svg|16px|link=Réseau Express Régional|alt=RER]]",
["station format"] = {
"%1 (Paris RER)station",
-- station suffixParis
["Achères–Grand-CormierLuxembourg"] = sparis,
["Achères-VilleRosa Parks"] = sparis,
-- RER
["Antony"] = s,
["AulnayDenfert-sous-BoisRochereau"] = srer,
["Avenue FochMalesherbes"] = srer,
["Boissy-Saint-LégerOuen"] = srer,
["Bondy"] = s,
["Bourg-la-Reine"] = s,
["Bry-sur-Marne"] = s,
["Bures-sur-Yvette"] = s,
["Bussy-Saint-Georges"] = s,
["Cergy-le-Haut"] = s,
["Cergy-Préfecture"] = s,
["Cergy-Saint-Christophe"] = s,
["Cernay"] = s,
["Chamarande"] = s,
["Champ de Mars–Tour Eiffel"] = s,
["Champigny"] = s,
["Chantilly-Gouvieux"] = s,
["Chatou–Croissy"] = s,
["Chaville–Vélizy"] = s,
["Chelles–Gournay"] = s,
["Conflans–Fin d'Oise"] = s,
["Courcelle-sur-Yvette"] = s,
["Creil"] = s,
["Denfert-Rochereau"] = s,
["Dourdan-la-Forêt"] = s,
["Drancy"] = s,
["Émerainville–Pontault-Combault"] = s,
["Épinay-sur-Seine"] = s,
["Ermont–Eaubonne"] = s,
["Étampes"] = s,
["Étréchy"] = s,
["Fontaine-Michalon"] = s,
["Fontenay-sous-Bois"] = s,
["Franconville – Le Plessis-Bouchard"] = s,
["Gagny"] = s,
["Garges–Sarcelles"] = s,
["Gennevilliers"] = s,
["Gif-sur-Yvette"] = s,
["Gretz-Armainvilliers"] = s,
["Houilles–Carrières-sur-Seine"] = s,
["Issy"] = s,
["Issy–Val de Seine"] = s,
["Javel"] = s,
["Joinville-le-Pont"] = s,
["Juvisy"] = s,
["La Courneuve – Aubervilliers"] = s,
["La Croix de Berny"] = s,
["La Défense"] = s,
["La Hacquinière"] = s,
["La Plaine Stade de France"] = s,
["La Varenne–Chennevières"] = s,
["Le Blanc-Mesnil"] = s,
["Le Bourget"] = s,
["Le Chénay-Gagny"] = s,
["Le Guichet"] = s,
["Le Parc de Saint-Maur"] = s,
["Le Raincy–Villemomble–Montfermeil"] = s,
["Les Baconnets"] = s,
["Les Boullereaux-Champigny"] = s,
["Les Grésillons"] = s,
["Les Saules"] = s,
["Les Yvris–Noisy-le-Grand"] = s,
["Lognes"] = s,
["Lozère"] = s,
["Magenta"] = s,
["Maisons-Laffitte"] = s,
["Marne-la-Vallée–Chessy"] = s,
["Massy-Palaiseau"] = s,
["Massy-Verrières"] = s,
["Melun"] = s,
["Mitry–Claye"] = s,
["Montigny–Beauchamp"] = s,
["Musée d'Orsay"] = s,
["Nanterre-Préfecture"] = s,
["Nanterre-Université"] = s,
["Nanterre-Ville"] = s,
["Neuilly-Plaisance"] = s,
["Neuville-Université"] = s,
["Nogent–Le Perreux"] = s,
["Nogent-sur-Marne"] = s,
["Noisiel"] = s,
["Noisy–Champs"] = s,
["Noisy-le-Grand – Mont d'Est"] = s,
["Noisy-le-Sec"] = s,
["Orry-la-Ville-Coye"] = s,
["Orsay-Ville"] = s,
["Ozoir-la-Ferrière"] = s,
["Palaiseau"] = s,
["Palaiseau-Villebon"] = s,
["Pantin"] = s,
["Parc de Sceaux"] = s,
["Pierrefitte–Stains"] = s,
["Pierrelaye"] = s,
["Poissy"] = s,
["Pont de l'Alma"] = s,
["Pont du Garigliano–Hôpital européen Georges-Pompidou"] = s,
["Pontoise"] = s,
["Port-Royal"] = s,
["Roissy-en-Brie"] = s,
["Rosny–Bois Perrier"] = s,
["Rosny-sous-Bois"] = s,
["Rueil-Malmaison"] = s,
["Saint-Denis"] = s,
["Sainte-Geneviève-des-Bois"] = s,
["Saint-Germain-en-Laye"] = s,
["Saint-Gratien"] = s,
["Saint-Maur–Créteil"] = s,
["Saint-Ouen-l'Aumône-Liesse"] = s,
["Saint-Ouen-l'Aumône"] = s,
["Saint-Quentin-en-Yvelines–Montigny-le-Bretonneux"] = s,
["Saint-Rémy-lès-Chevreuse"] = s,
["Sartrouville"] = s,
["Sevran Beaudottes"] = s,
["Sevran – Livry"] = s,
["Sucy–Bonneuil"] = s,
["Torcy"] = s,
["Tournan"] = s,
["Val de Fontenay"] = s,
["Val d'Europe"] = s,
["Versailles-Chantiers"] = s,
["Versailles-Château-Rive Gauche"] = s,
["Vert-Galant"] = s,
["Vésinet–Centre"] = s,
["Vésinet–Le Pecq"] = s,
["Villeparisis–Mitry-le-Neuf"] = s,
["Villepinte"] = s,
["Villiers-sur-Marne–Le Plessis-Trévise"] = s,
["Vincennes"] = s,
["Yerres"] = s,
-- no station suffix
["Auber"] = "Gare d'%1",
["Aéroport Charles de Gaulle 2 TGV"] = u,
["Châtelet–Les Halles"] = u,
["Charles de Gaulle–Étoile"] = u,
["Gare d'Austerlitz"] = u,
["Gare de Lyon"] = u,
["Gare du Nord"] = u,
["Haussmann–Saint-Lazare"] = u,
["Saint-Michel–Notre-Dame"] = u,
-- others
["Châtelet"] = "Châtelet–Les Halles station",
["Bibliothèque François Mitterrand"] = "Bibliothèque François Mitterrand (Paris Métro and RER)",
["Châtelet"] = "[[Châtelet–Les Halles]]",
["Issy - Val de Seine"] = "[[Issy–Val de Seine station|Issy–Val de Seine]]",
["Le Vésinet–Centre"] = "Vésinet–Centre station",
["Le Vésinet–Le Pecq"] = "Vésinet–Le Pecq station",
["Pont de Rungis"] = "[[Pont de Rungis–Aéroport d'Orly station|Pont de Rungis – Orly]]",
["Luxembourg"] = "[[Luxembourg station (Paris)|Luxembourg]]",
["Pont du Garigliano–Hôpital européen Georges-Pompidou"] = "[[Pont du Garigliano station|Pont du Garigliano]]",
["Nation"] = "[[Nation (Paris Métro and RER)|Nation]]",
["Pont de Rungis"] = "[[Pont de Rungis – Aéroport d'Orly (Paris RER)|Pont de Rungis – Orly]]",
["Pont du Garigliano"] = "[[Pont du Garigliano–Hôpital européen Georges-Pompidou station|Pont du Garigliano–Hôpital européen Georges-Pompidou]]",
["Porte de Clichy"] = "[[Porte de Clichy (Paris Métro and RER)|Porte de Clichy]]",
["Rosa Parks"] = "[[Rosa Parks station (Paris)|Rosa Parks]]",
["Saint-Quentin-en-Yvelines"] = "[[Saint-Quentin-en-Yvelines–Montigny-le-Bretonneux station|Saint-Quentin-en-Yvelines]]",
["Versailles RG"] = "[[Versailles Château Rive Gauche station|Versailles Château Rive Gauche]]",
["St-Michel – Notre-Dame"] = "[[Saint-Michel–Notre-Dame]]",
["Versailles RGVilliers-sur-Marne"] = "[[VersaillesVilliers-Châteausur-RiveMarne–Le GauchePlessis-Trévise station|Versailles RGVilliers-sur-Marne]]",
["Villiers-sur-Marne"] = "[[Villiers-sur-Marne–Le Plessis-Trévise station|Villiers-sur-Marne]]",
},
["lines"] = {
["_default"] = {
["title"] = "[[RER %1]]",
["color"] = "ffffff25303B",
["text color"] = "FFFFFF",
["icon"] = "[[File:Paris transit icons - RER %1.svg|16px|link=RER %1|alt=RER %1]]",
},
["A"] = {
["icon"] = "[[File:Paris transit icons - RER A.svg|16px|link=RER A|alt=RER A]]",
["color"] = "E3051C",
["left terminus"] = {
"Saint-Germain-en-Laye",
"Cergy-le-Haut",
"Poissy"},
},
["right terminus"] = {
"Boissy-Saint-Léger",
"Marne-la-Vallée–Chessy"},
},
["types"] = {
["A1"] = {
},
["B"] = {
["icon"] = "[[File:Paris transit icons - RER B.svg|16px|link=RER B|alt=RER B]]",
["color"] = "5291CE",
["left terminus"] = {
"Aéroport Charles de Gaulle 2 TGV",
"Mitry–Claye"},
},
["right terminus"] = {
"Robinson",
"Saint-Rémy-lès-Chevreuse"},
},
["types"] = {
["B2"] = {
},
["C"] = {
["icon"] = "[[File:Paris transit icons - RER C.svg|16px|link=RER C|alt=RER C]]",
["color"] = "FFCE00",
["text color"] = "25303B",
["left terminus"] = {
"Pontoise",
"Massy-Palaiseau",
"Dourdan-la-Forêt",
"Saint-Martin-d'Étampes",
"Versailles-Chantiers"
},
["types"] = {
["title"] = "",
["left terminus"] = "Montigny–Beauchamp"
},
["C3–Brétigny"] = {
["title"] = "",
["left terminus"] = "Montigny–Beauchamp",
["right terminus"] = "Brétigny"
},
["C4C6-C7"] = {
["title"] = "",
["left terminus"] = "Saint-Quentin-en-Yvelines",
["right terminus"] = {"Dourdan-la-Forêt", "Saint-Martin-d'Étampes"}
},
["C4C6C8"] = {
["title"] = "",
["right terminus"] = {"Dourdan-la-Forêt", "Saint-Martin-d'Étampes", "Versailles- Chantiers"}
},
["C5C7–C4C6C8"] = {
["title"] = "",
["left terminus"] = {"Versailles- Château- Rive Gauche", "Saint-Quentin-en-Yvelines"},
["right terminus"] = {"Dourdan-la-Forêt", "Saint-Martin-d'Étampes", "Versailles- Chantiers"}
},
["C5C7"] = {
["title"] = "",
["left terminus"] = {"Versailles- Château- Rive Gauche", "Saint-Quentin-en-Yvelines"}
},
["C5–C4"] = {
["title"] = "",
["left terminus"] = "Versailles- Château- Rive Gauche",
["right terminus"] = "Dourdan-la-Forêt"
},
["C5–C8"] = {
["title"] = "",
["left terminus"] = "Versailles- Château- Rive Gauche",
["right terminus"] = "Versailles- Chantiers"
},
["C5–C10"] = {
["title"] = "",
["left terminus"] = "Versailles- Château- Rive Gauche",
["right terminus"] = "Juvisy"
},
["left terminus"] = "Saint-Quentin-en-Yvelines",
["right terminus"] = "Saint-Martin-d'Étampes"
},
}
},
["D"] = {
["icon"] = "[[File:Paris transit icons - RER D.svg|16px|link=RER D|alt=RER D]]",
["color"] = "00814F",
["left terminus"] = "Creil",
["left terminus"] = "Orry-la-Ville-Coye",
["right terminus"] = "Corbeil-Essonnes"
},
["D2"] = {
["title"] = "",
["right terminus"] = "Melun"
},
["D3–D6"] = {
["title"] = "",
["left terminus"] = "Creil",
["right terminus"] = "Corbeil-Essonnes"
},
["D5–D6"] = {
["title"] = "",
["left terminus"] = "Villiers-le-Bel – Gonesse – Arnouville",
["right terminus"] = "Corbeil-Essonnes"
},
["title"] = "",
["right terminus"] = "Malesherbes"
},
["D5–D2"] = {
["title"] = "",
["left terminus"] = "Villiers-le-Bel–Gonesse–Arnouville",
["right terminus"] = "Melun"
},
["D5–D6"] = {
["title"] = "",
["left terminus"] = "Villiers-le-Bel–Gonesse–Arnouville",
["right terminus"] = "Corbeil-Essonnes"
},
["D6"] = {
["right terminus"] = "Melun"
},
["Juvisy–D2"] = {
["title"] = "",
["left terminus"] = "Juvisy",
["right terminus"] = "Melun"
},
["Juvisy–D4"] = {
["title"] = "",
["left terminus"] = "Juvisy",
["right terminus"] = "Malesherbes"
}
}
},
["E"] = {
["icon"] = "[[File:Paris transit icons - RER E.svg|16px|link=RER E|alt=RER E]]",
["color"] = "C04191",
["left terminus"] = "Haussmann–Saint-LazareNanterre–La Folie",
["right terminus"] = {
"Chelles–Gournay",
"Tournan"},
},
["types"] = {
["E2"] = {
["title"] = "",
["right terminus"] = "Tournan"
},
}
},
-- Former line
["S"] = {
["title"] = "[[Ligne de Sceaux|Sceaux]]",
["icon"] = "[[File:Paris transit icons - RER S.svg|16px|link=Ligne de Sceaux|Sceaux]]",
["color"] = "25303B",
["left terminus"] = "Luxembourg",
["right terminus"] = {"Robinson", "Saint-Rémy-lès-Chevreuse"},
["types"] = {
["Robinson branch"] = {
["right terminus"] = "Robinson"
},
["Saint-Rémy branch"] = {
["right terminus"] = "Saint-Rémy-lès-Chevreuse"
}
}
}
},
["aliases"] = {
["e"] = "E",
["rer e"] = "E",
["s"] = "S",
["sceaux"] = "S"
}
}
local function addtermini(stations, termini)
for k,v in pairs(termini) do
stations[k] = termini[k] .. '[[Category:Pages using Réseau Express Régional with deprecated syntax|' .. k ..']]'
stations[k:upper()] = termini[k] .. '[[Category:Pages using Réseau Express Régional with deprecated syntax|' .. k:upper() ..']]'
end
return stations
end
p["station format"] = addtermini(p["station format"], termini)
return p
|