Module:LuaLink

local utils = {} local users = mw.loadData("Module:Test/list")

function utils.user(frame) local name = frame.args[1] or frame:getParent.args[1] if users[name] ~= nil then local nick local color local pfp if users[name]["nick"] ~= nil then nick = users[name]["nick"] else nick = name end if users[name]["color"] ~= nil then color = users[name]["color"] else color = "#000000" end if users[name]["pfp"] ~= nil then pfp = users[name]["pfp"] else pfp = "Centrist-yellow.png" end return " ".. color .."'> <span style='color:".. nick .." " else return "Invalid user" end end

return utils