Content deleted Content added
m groundwork for table cell merging |
Made nums independent (out of args) and renamed. Renamed tmp. |
||
Line 77:
end
function p.line(
local lineTitle = {}
local colour = {}
Line 88:
local t = {}
for
if args.system[v] then
table.insert(t, table.concat({'\n|-',
Line 98:
if args.line[v] or args.left[v] or args.right[v] then
if not args.line[v] then args.line[v] = args.line[
local _line = data[v][args.line[v]]
lineTitle[v] = _line['line title']
Line 161:
function p.main(frame)
local _args = frame:getParent().args▼
local args = {
system = {},
line = {},
Line 176:
circularR = {}
}
▲ local _args = frame:getParent().args
local
for k, v in pairs(_args) do
local a = string.match(k, '(%a+)%d+')
Line 190:
if a == 'system' then
args.system[b] = v
elseif a == 'line' then
args.line[b] = v
elseif a == 'left' then
args.left[b] = v
elseif a == 'right' then
args.right[b] = v
elseif a == 'typeL' then
args.TypeL[b] = v
Line 223:
end
local index = {}
for k, v in pairs(
table.sort(
local data = {}
for
if args.system[v] then
data[v] = require('Module:L-rail/' .. args.system[v])
else
data[v] = data[
end
end
local rows = { -- To be removed. Included for backwards compatibility.
['all'] = table.concat({p.top(), p.line(
['top'] = table.concat({p.top(), p.line(
['mid'] = table.concat({p.line(
['bottom'] = table.concat({p.line(
}
|