Content deleted Content added
add |
add ability for gap lines |
||
Line 148:
else
return '' --create no cell
end
end
function gap(args)
local text = args.text or "''Number not designated''"
if notes then
return '|align=center colspan=7' .. text --display notes in cell
else
return '|align=center colspan=6' .. text --display notes in cell
end
end
Line 258 ⟶ 268:
local row = {rowdef, route, length, termini, localname, dates, notes}
return table.concat(row, '\n')
end
function p.gap(frame)
local args = getArgs(frame) -- Gather passed arguments into easy-to-use table
local anchor = args.anchor or sortkey(args)
local rowdef = routeState.row .. string.format(' id="%s"', anchor)
local route = route(args)
local gap = gap(args)
local row = {rowdef, route, gap}
return table.concat(gap, '\n')
end
|