Module:Qualifier

local export = {}

function export.format_qualifier(list, open, close) -- keep in sync with Template:qualifier if type(list) ~= "table" then list = { list } end if #list == 0 then return '' end

return ' ' .. (open or "(") .. ' ' ..	      ' ' ..	       table.concat(list, ', ') ..		   ' ' .. (close or ")") .. ' ' end

function export.sense(list) -- keep in sync with Template:sense return export.format_qualifier(list) .. ' : ' end

return export