Open main menu

Changes

Module:Authority control

1,050 bytes added, 16:10, 28 November 2018
+ AllMusic × 3
end
return '[https://www.discogs.com/master/'..id..' '..id..']'..p.getCatForId( 'Discogs master' )
end
 
function p.amcLink( id )
--P1994's format regex: mc[0-9]{10} (e.g. mc0123456789)
if not string.match( id, '^mc%d%d%d%d%d%d%d%d%d%d$' ) then
return false
end
return '[https://www.allmusic.com/composition/'..id..' '..id..']'..p.getCatForId( 'AllMusic composition' )
end
 
function p.amnLink( id )
--P1728's format regex: mn[0-9]{10} (e.g. mn0123456789)
if not string.match( id, '^mn%d%d%d%d%d%d%d%d%d%d$' ) then
return false
end
return '[https://www.allmusic.com/artist/'..id..' '..id..']'..p.getCatForId( 'AllMusic artist' )
end
 
function p.amwLink( id )
--P1729's format regex: mw[0-9]{10} (e.g. mw0123456789)
if not string.match( id, '^mw%d%d%d%d%d%d%d%d%d%d$' ) then
return false
end
return '[https://www.allmusic.com/album/'..id..' '..id..']'..p.getCatForId( 'AllMusic album' )
end
p.conf = {
{ 'ACM-DL', '[[ACM Digital Library|ACM DL]]', 864, p.acmLink },
{ 'AMC', '[[AllMusic]] composition', 1994, p.amcLink, category = 'AllMusic composition' },
{ 'AMN', '[[AllMusic]]', 1728, p.amnLink, category = 'AllMusic artist' },
{ 'AMW', '[[AllMusic]] album', 1729, p.amwLink, category = 'AllMusic album' },
{ 'autores.uy', '[[autores.uy]]', 2558, p.autoresuyLink },
{ 'BALaT', '[[:d:Q2876688|BALaT]]', 3293, p.balatLink },
Anonymous user