Module:User:Wnt/Sandbox

From Meta, a Wikimedia project coordination wiki
Module documentation
local p={}
function p.test(frame)
return mw.site.siteName;
end

function p.anonymize(frame)
    local name=frame.args[1]
    name=mw.ustring.gsub(name,"^"..mw.site.siteName,"Project") or name;
    return name;
end
return p;