Modhul:Utilitats
Praèn
Dhokumèntasi modhul iki bisa digawé ing Modhul:Utilitats/doc
local export = {}
-- Converts a list to a table with a value of true for each item
function export.llista (list)
local set = {}
for _, l in ipairs(list) do set[l] = true end
return set
end
-- Add a crawl subfolder
function export.rastreig(key)
if type(key) == "table" then key = key.args[1] end -- from templates via invoke or from modules via "require"
local frame = mw.getCurrentFrame()
pcall(frame.expandTemplate, frame, { title = 'rastreig/' .. key })
end
return export