Module:pollasena-roots: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 27: Line 27:
if frame.args["older"] then
if frame.args["older"] then
params[1] = {}; params["wascotl"] = {list = true}
params[1] = {}; params[2] = {list = true}; local a = 2
else
else
params["wascotl"] = {list = true}
params[1] = {list = true}; local a = 1
end
end
Line 39: Line 39:
local links = {}; local categories = {}; local alts = {};
local links = {}; local categories = {}; local alts = {};
-- WIP
-- WIP
for i, item in ipairs(args["wascotl"]) do
for i, item in ipairs(args[a]) do
if item == "+" then
if item == "+" then
table.insert(links," ")
table.insert(links," ")
Line 75: Line 75:
end
end
else
else
table.insert(links, link(args["wascotl"][i]))
table.insert(links, link(args[a][i]))
table.insert(categories, lang:getCanonicalName() .. " terms from Wascotl *" .. args["wascotl"][i])
table.insert(categories, lang:getCanonicalName() .. " terms from Wascotl *" .. args[a][i])
table.insert(alts, args["wascotl"][i])
table.insert(alts, args[a][i])
end
end

Navigation menu