Module:Infobox album: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 73: Line 73:
category = 'Bootleg albums'
category = 'Bootleg albums'
}
}
}
local artist = {
'The Smashing Pumpkins',
'Billy Corgan',
'Zwan',
'James Iha',
'Jimmy Chamberlin Complex',
'Various artists'
}
}


Line 88: Line 97:
local given = mw.text.split(frame.args[1], "%s*,%s*")
local given = mw.text.split(frame.args[1], "%s*,%s*")
local artist = frame.args[2]
local artist = frame.args[2]
if artists[artist] == nil then
return
end


local cats = '[[Category:Albums]][[Category:' .. artist .. ' albums]]'
local cats = '[[Category:Albums]][[Category:' .. artist .. ' albums]]'