Module:pollasena-roots: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 51: Line 51:
local prefix, arg = modtext:match("^([a-z]+):(.*)$")
local prefix, arg = modtext:match("^([a-z]+):(.*)$")
alt = prefix == "a" and table.insert(links, link(term, arg)) or nil
if modtext:match("><") then
cat = prefix == "c" and table.insert(categories, "Soc'ul' terms from Wascotl *" .. arg) or nil
if prefix == "a" then
table.insert(links, link(term, arg))
elseif prefix == "c" then
table.insert(categories, "Soc'ul' terms from Wascotl *" .. arg)
end
elseif prefix == "a" then
table.insert(links, link(term, arg))
table.insert(categories, "Soc'ul' terms from Wascotl *" .. term)
elseif prefix == "c" then
table.insert(links, link(term))
table.insert(categories, "Soc'ul' terms from Wascotl *" .. arg)
end
end
end
else
else
Line 58: Line 69:
table.insert(categories, "Soc'ul' terms from Wascotl *" .. args[a][i])
table.insert(categories, "Soc'ul' terms from Wascotl *" .. args[a][i])
end
end
end
for k, linked in ipairs(links) do
if links[k-1] == "-" then linked = linked:gsub("\|\*","|") end
end
end

Navigation menu