Module:Adjacent stations/Réseau Express Régional/sandbox explained

local s = "%1 station"local u = "%1"

local termini = local multitermini =

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 ') endend

local p =

local function addtermini(stations, termini) for k,v in pairs(termini) do stations[k] = termini[k] stations[k:upper] = termini[k] end return stationsend

p["station format"] = addtermini(p["station format"], termini)

return p