Module:User List
Jump to navigation
Jump to search
Documentation for this module may be created at Module:User List/doc
local p = {}
local lib = require('Module:Feature')
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {
parentFirst = true,
wrapper = { 'Template:User List' }
})
assert(args[1],'Users must be given')
local Users = lib.split(args[1],';;')
local sep = args.sep or false
local out = mw.html.create()
if not sep then out = mw.html.create('ul') end
for i,U in ipairs(Users) do
if sep then
if i ~= 1 then out:wikitext(sep) end
out:wikitext('[[User:',U,'|',U,']] ([https://honkai-nexus-anima.fandom.com/wiki/Message_Wall:',mw.uri.encode(U, 'WIKI'),' wall])')
else
out:tag('li'):wikitext('[[User:',U,'|',U,']] ([https://honkai-nexus-anima.fandom.com/wiki/Message_Wall:',mw.uri.encode(U, 'WIKI'),' wall])')
end
end
return out
end
return p