Module:RestrictedUserPage

return { main = function(frame) local editors = frame.args[1] local src = mw.html.create("span") :css("display", "none") if string.gsub(editors, "%s", "") == "" then return end src:wikitext("[//USERPAGE:WHITELIST]") editors = mw.text.split(editors, ",") for _, editor in ipairs(editors) do           src:wikitext("[//USERPAGE:USERALLOWED:"                .. string.gsub(mw.text.trim(editor), " ", "_")                .. "]") end return tostring(src) end }