Module:PublicUserPage

function flag_format(...) local flag = table.concat({...}) return "[" .. tostring( mw.uri.fullUrl("w:#F-" .. flag) ) .. "]" end

return { main = function(frame) local editors = frame.args[1] local src = mw.html.create("span") :css("display", "none") if editors:gsub('%s',) ~=  then src:wikitext( flag_format("AUTHORIZEDONLY_USER_PAGE") ) editors = mw.text.split(editors, ',') for _,e in ipairs(editors) do               src:wikitext(                    flag_format("AUTHORIZEDUSER_", mw.text.trim(e):gsub(' ','_'))                ) end else src:wikitext( flag_format("PUBLIC_USER_PAGE") ) end return tostring(src) end }