Module:MemberLink

local member_icon = require('Module:MemberIcon')

local p = {}

function p.make_member_link_with_icon(class_name, member) local output = member_icon.make_member_icon(member) .. " "   output = output .. "" .. class_name   if member.MemberType == "Property" then        output = output .. "."    elseif member.MemberType == "Function"        or member.MemberType == "Event"        or member.MemberType == "Callback"    then        output = output .. ":"    else        return error("Unknown member type: " .. member.MemberType)    end    output = output .. member.Name .. "" end

return p