local p = {}

function p.main(frame)
	local args = frame:getParent().args
	return p._main(args)
end

function p._main(args)
	local ret = {}
	for i, title in ipairs(args) do
		ret[#ret + 1] = string.format('<span id="%s">[[:%s]]</span>', mw.language.getContentLanguage():ucfirst(title), title)
	end
	ret = mw.text.listToText(ret, '、', '、')
	return ret
end

return p