Content deleted Content added
Temporary testing. Reverting later. |
|||
Line 88:
local t = {}
for i, v in ipairs(index) do▼
if args.system[v] then
table.insert(t, table.concat({'\n|-',
Line 104:
local _line = data[v][args.line[v]]
lineTitle[v] = _line['line title']
colour[v] = _line.colour or _line.color
note[v] = args.note[v] or ''
Line 170:
table.insert(t, table.concat({'\n|', style['body rightcell'], right[v], rightTerminus[v]}))
end
▲ for i, v in ipairs(index) do
end
Line 219 ⟶ 216:
-- to do: add rest of S-line parameters
local _index = {}
local
['
['optional strings'] = {
▲ },
['
--
▲-- ['through'] = 'through', -- The way this would work is that it would replace either "Terminus" cell, rather than just one of them in particular.
--
--
--
['optional boolean'] = {
▲ },
['
--
▲ ['through-right'] = 'throughR'
}
}▼
local a = string.match(key, '(%a+)%d+') or key▼
for k, v in pairs(_args) do▼
local b = tonumber(string.match(key, '%a+(%d+)')) or 1▼
if parameters['strings'][a] then
args[parameters['strings'][a]][b] =
_index[b] = true
elseif args[parameters['optional strings'][a]] then
args[parameters['optional strings'][a]][b] =
elseif args[parameters['optional boolean'][a]] then
args[parameters['optional boolean'][a]][b] = yesno(
end
▲ for k, v in pairs(_args) do
end
local index = {}
for k, v in pairs(_index) do▼
table.insert(index, k)
▲ for k, v in pairs(_index) do
end
table.sort(index)
local data = {}
for i, v in ipairs(index) do▼
if args.system[v] then
-- data[v] = require('Module:L-rail/' .. args.system[v])
Line 284 ⟶ 275:
end
end
▲ for i, v in ipairs(index) do
local rows = { -- Included for mixed used with S-line.
|