45,647
edits
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
local links = {}; local categories = {} | local links = {}; local categories = {} | ||
-- WIP | -- WIP | ||
for i, item in ipairs(args[a]) do | for i, item in ipairs(args[a]) do | ||
if | if item == "-" then | ||
table.insert(links, item) | table.insert(links, item) | ||
elseif item == nil then | |||
table.insert(links, " ") | |||
elseif item:find("<") and not item:find("^[^<]*<[a-z]*[^a-z:]") then | elseif item:find("<") and not item:find("^[^<]*<[a-z]*[^a-z:]") then | ||
local run = m_put.parse_balanced_segment_run(item, "<", ">") | local run = m_put.parse_balanced_segment_run(item, "<", ">") | ||
Line 45: | Line 46: | ||
error(msg .. ": " .. orig_param .. "= " .. table.concat(run)) | error(msg .. ": " .. orig_param .. "= " .. table.concat(run)) | ||
end | end | ||
term = run[1] | local term = run[1] | ||
for j = 2, #run - 1, 2 do | for j = 2, #run - 1, 2 do |