Module:Infobox album/link

local p = {}

function p.main( frame ) local types = mw.text.split(frame.args[1], "%s*,%s*") for _, v in ipairs(types) do		if    v == 'ep' or v == 'extended play' then return 'EP' elseif v == 'studio album' or v == 'album' or v == 'studio' then return 'Studio album' elseif v == 'demo' then return 'Demo album' elseif v == 'live album' or v == 'live' then return 'Live album' elseif v == 'box set' or v == 'box' then return 'Box set' elseif v == 'compilation album' or v == 'compilation' then return 'Compilation album' elseif v == 'mixtape' then return 'Mixtape' elseif v == 'soundtrack' then return 'Soundtrack album' elseif v == 'film score' then return 'Film score' elseif v == 'video' or v == 'vhs' or v == 'dvd' then return 'Video' elseif v == 'tribute' or v == 'tribute album' then return 'Tribute album' elseif v == 'bootleg' then return 'Bootleg' else return 'Recording' end end end

return p