Module:Member

local utils = require('Module:Utils') local member_tags = require('Module:Member tags')

local p = {}

function p._create(args) -- Add the icon, if one was given, to the output. local output = args.icon and " " or ''

-- Add the prefix (property type, method return values) to the output. if args.prefix then output = output .. args.prefix .. " "	end output = output .. mw.text.tag('b', {       class = "member-name";        id = args.name; -- Add the member's name as an anchor so that it can be linked to conveniently.    }, args.name)

local tags = args.tags or utils.array_to_set(utils.trim_positional_arguments(args))

if args["parameter list"] then output = output .. "(" .. args["parameter list"] .. ")" end

-- Add tags. for tag in next, tags do       output = output .. " " .. member_tags.make_heading_tag{name=tag} end

return output end

p.create = utils.make_wrapper_function(p._create)

return p