Module:Adjacent stations/sandbox: Difference between revisions

Content deleted Content added
Undid revision 838603703 by Szqecs (talk)
No edit summary
Line 209:
-- to do: add rest of S-line parameters
local _index = {}
local parameters = {
['strings'] = {
['system'] = 'system',
['line'] = 'line',
['left'] = 'left',
['right'] = 'right',
['type-left'] = 'typeL'
},
['optional strings'] = {
['note'] = 'note'
},
['boolean'] = {
}
}
for k, v in pairs(_args) do
local a = string.match(k, '(%a+)%d+')
Line 219 ⟶ 234:
end
local parameters = {
['strings'] = {
['system'] = 'system',
['line'] = 'line',
['left'] = 'left',
['right'] = 'right',
['type-left'] = 'typeL'
},
['optional strings'] = {
['note'] = 'note'
},
['boolean'] = {
}
}
if parameters['strings'][a] then
args[parameters['strings'][a]][b] = v