Module:Utilities

local export = {}

-- Converts a list to a true value table for each item function export.list (list) local set = {} for _, l in ipairs(list) do set[l] = true end return set end

-- Add a crawl subfolder function export.crawl (key) if type(key) == "table" then key = key.args[1] end -- from templates via invoke or from modules via requires local frame = mw.getCurrentFrame pcall(frame.expandTemplate, frame, { title = 'crawl/' .. key }) end

return export