Module:Foss

-- still testing local p = {}

local pre = "[[Category:" local suf = "]]" local fos = "free and open-source"

-- array of categories with “free” in its name to be replaced with “free and open-source” local cat = {} cat["emulation software"] = fos .. "emulation software" cat["game engines"] = fos .. "game engines"

function p.category(frame) kstring = "" vstring = "" for k, v in pairs(frame.args) do		for g, h in pairs(cat) do		   if string.lower(v) == g then vstring = vstring .. pre .. h .. suf end end end return vstring end

return p