Changes
Jump to navigation
Jump to search
Make 'MusicBrainz work' the alias to 'MBW', and 'MusicBrainz release group' the alias to 'MBRG', to follow the convention started by 'MBA'; correctly add these as exceptions to the p.docConfTable; this is the first time a parameter or alias has used a space so repercussions unknown - configuring new parameters should be done in the sandbox and transferred to the live module once tested
local wpl = frame:expandTemplate{ title = 'Wikidata property link', args = args }
--cats
if param == 'MBA' then param = 'MusicBrainz' end --it's weird; 'MusicBrainz' for cat name only if param == 'MBRG' then param = 'MusicBrainz release group' end --it's weird; 'MusicBrainz release group' for cat name only if param == 'MBW' then param = 'MusicBrainz work' end --it's weird; 'MusicBrainz work' for cat name only
local articleCat = 'Wikipedia articles with '..param..' identifiers'
local userCat = 'User pages with '..param..' identifiers'
local miscCat = 'Miscellaneous pages with '..param..' identifiers'
local faultyCat = 'Wikipedia articles with faulty '..param..' identifiers'
if param == 'MusicBrainz' then param = 'MBA' end --it's weird; 'MBA' otherwise if param == 'MusicBrainz release group' then param = 'MBRG' end --it's weird; 'MBRG' otherwise if param == 'MusicBrainz work' then param = 'MBW' end --it's weird; 'MBW' otherwise
--counts
local articleCount = lang:formatNum( mw.site.stats.pagesInCategory(articleCat, 'pages') )
{ 'LNB', '[[National Library of Latvia|LNB]]', 1368, p.lnbLink },
{ 'Léonore', '[[Base Léonore|Léonore]]', 640, p.leonoreLink },
{ 'MBA', '[[MusicBrainz|MusicBrainz artist]]', 434, p.mbaLink }, { 'MusicBrainz release groupMBRG', '[[MusicBrainz|MusicBrainz release group]]', 436, p.mbrgLink }, { 'MusicBrainz workMBW', '[[MusicBrainz|MusicBrainz work]]', 435, p.mbwLink },
{ 'MGP', '[[Mathematics Genealogy Project|MGP]]', 549, p.mgpLink },
{ 'NARA', '[[National Archives and Records Administration|NARA]]', 1225, p.naraLink },
{ 'RLS', 'RSL' },
{ 'MusicBrainz', 'MBA' },
{ 'MBRGMusicBrainz artist', 'MBA'}, { 'MusicBrainz release group', 'MBRG' }, { 'MBWMusicBrainz work', 'MusicBrainz workMBW' },
{ 'Leonore', 'Léonore' },
}