Content deleted Content added
m arbitrary parameter numbering |
m slightly more efficient? |
||
Line 88:
local t = {}
for
if args.system[
'\n!', style['header leftcell'], 'Preceding station',
'\n!', style['header midcell'], data[
'\n!', style['header rightcell'], 'Following station'
}))
end
if args.line[
local _line = data[
lineTitle[
colour[
note[
if type(_line['left terminus']) == 'string' then
_leftTerminus = _line['left terminus']
elseif type(_line['left terminus']) == 'table' then
_leftTerminus = _line['left terminus'][args.TypeL[
end
if type(_line['right terminus']) == 'string' then
_rightTerminus = _line['right terminus']
elseif type(_line['right terminus']) == 'table' then
_rightTerminus = _line['right terminus'][args.TypeR[
end
if not args.left[
left[
leftTerminus[
elseif args.left[
left[
leftTerminus[
else
left[
if args.onewayL[
leftTerminus[
else
leftTerminus[
end
end
if not args.right[
right[
rightTerminus[
elseif args.right[
right[
rightTerminus[
else
right[
if args.onewayR[
rightTerminus[
else
rightTerminus[
end
end
table.insert(t, table.concat({'\n|-',
'\n|', style['body leftcell'], left[
'\n|', style['body banner'], colour[
'\n|', style['body midcell'], lineTitle[
'\n|', style['body banner'], colour[
'\n|', style['body rightcell'], right[
}))
end
Line 177:
}
local _args = frame:getParent().args
local tmp = {}
for k, v in pairs(_args) do
local a = string.match(k, '(%a+)%d+')
Line 189 ⟶ 190:
if a == 'system' then
args.system[b] = v
tmp[b] = true
table.insert(args.nums, b)▼
elseif a == 'line' then
args.line[b] = v
tmp[b] = true
elseif a == 'left' then
args.left[b] = v
-- tmp[b] = true
elseif a == 'right' then
args.right[b] = v
-- tmp[b] = true
elseif a == 'typeL' then
args.TypeL[b] = v
Line 220 ⟶ 223:
end
table.sort(args.nums)
local data = {}
for
if args.system[
data[
else
data[
end
end
|