13,398
edits
m (→top: Fixing name) |
No edit summary |
||
Line 753: | Line 753: | ||
'! colspan=4 | Tracking categories and page counts\n'.. | '! colspan=4 | Tracking categories and page counts\n'.. | ||
'|-\n'.. | '|-\n'.. | ||
'! [[:Category: | '! [[:Category:Bharatpedia articles with authority control information|'.. 'Articles]]\n'.. | ||
'! [[:Category:User pages with authority control information|'.. 'User pages]]\n'.. | '! [[:Category:User pages with authority control information|'.. 'User pages]]\n'.. | ||
'! [[:Category:Miscellaneous pages with authority control information|'.. 'Misc. pages]]\n'.. | '! [[:Category:Miscellaneous pages with authority control information|'.. 'Misc. pages]]\n'.. | ||
'! [[:Category: | '! [[:Category:Bharatpedia articles with faulty authority control information|'..'Faulty IDs]]\n'.. | ||
'|-\n' | '|-\n' | ||
Line 885: | Line 885: | ||
} | } | ||
-- Deprecated aliases to p.conf; tracked in [[Category: | -- Deprecated aliases to p.conf; tracked in [[Category:Bharatpedia articles with deprecated authority control identifiers]] | ||
-- Format: { 'deprecated parameter name', 'replacement parameter name in p.conf' } | -- Format: { 'deprecated parameter name', 'replacement parameter name in p.conf' } | ||
p.deprecated = { | p.deprecated = { | ||
Line 921: | Line 921: | ||
parentArgs[param] = parentArgs[dep] | parentArgs[param] = parentArgs[dep] | ||
if namespace == 0 then | if namespace == 0 then | ||
deprecatedIdCat = '[[Category: | deprecatedIdCat = '[[Category:Bharatpedia articles with deprecated authority control identifiers|'..dep..']]' | ||
end | end | ||
end | end | ||
Line 954: | Line 954: | ||
if wikidataIds[1] then | if wikidataIds[1] then | ||
if val == '' and (namespace == 0 or testcases) then | if val == '' and (namespace == 0 or testcases) then | ||
suppressedIdCat = '[[Category: | suppressedIdCat = '[[Category:Bharatpedia articles with suppressed authority control identifiers|'..params[1]..']]' | ||
else | else | ||
parentArgs[params[1]] = wikidataIds[1] | parentArgs[params[1]] = wikidataIds[1] | ||
Line 973: | Line 973: | ||
if worldcatId and worldcatId ~= '' then --if present & unsuppressed | if worldcatId and worldcatId ~= '' then --if present & unsuppressed | ||
table.insert( elements, p.createRow( 'WORLDCATID', '', worldcatId, '[[WorldCat Identities]]: [https://www.worldcat.org/identities/'..worldcatId..' '..worldcatId..']', false ) ) --Validation? | table.insert( elements, p.createRow( 'WORLDCATID', '', worldcatId, '[[WorldCat Identities]]: [https://www.worldcat.org/identities/'..worldcatId..' '..worldcatId..']', false ) ) --Validation? | ||
worldcatCat = '[[Category: | worldcatCat = '[[Category:Bharatpedia articles with WorldCat identifiers]]' | ||
elseif worldcatId == nil then --if absent & unsuppressed | elseif worldcatId == nil then --if absent & unsuppressed | ||
local viafId = parentArgs['VIAF'] | local viafId = parentArgs['VIAF'] | ||
Line 980: | Line 980: | ||
table.insert( elements, p.createRow( 'VIAF', '', viafId, '[[WorldCat Identities]] (via VIAF): [https://www.worldcat.org/identities/containsVIAFID/'..viafId..' '..viafId..']', false ) ) | table.insert( elements, p.createRow( 'VIAF', '', viafId, '[[WorldCat Identities]] (via VIAF): [https://www.worldcat.org/identities/containsVIAFID/'..viafId..' '..viafId..']', false ) ) | ||
if namespace == 0 then | if namespace == 0 then | ||
worldcatCat = '[[Category: | worldcatCat = '[[Category:Bharatpedia articles with WorldCat-VIAF identifiers]]' | ||
end | end | ||
elseif lccnId and lccnId ~= '' and p.lccnLink( lccnId ) then --LCCN must be present, unsuppressed, & validated | elseif lccnId and lccnId ~= '' and p.lccnLink( lccnId ) then --LCCN must be present, unsuppressed, & validated | ||
Line 988: | Line 988: | ||
table.insert( elements, p.createRow( 'LCCN', '', lccnId, '[[WorldCat Identities]] (via LCCN): [https://www.worldcat.org/identities/lccn-'..lccnIdFmtd..' '..lccnIdFmtd..']', false ) ) | table.insert( elements, p.createRow( 'LCCN', '', lccnId, '[[WorldCat Identities]] (via LCCN): [https://www.worldcat.org/identities/lccn-'..lccnIdFmtd..' '..lccnIdFmtd..']', false ) ) | ||
if namespace == 0 then | if namespace == 0 then | ||
worldcatCat = '[[Category: | worldcatCat = '[[Category:Bharatpedia articles with WorldCat-LCCN identifiers]]' | ||
end | end | ||
end | end | ||
end | end | ||
elseif worldcatId == '' then --if suppressed | elseif worldcatId == '' then --if suppressed | ||
suppressedIdCat = '[[Category: | suppressedIdCat = '[[Category:Bharatpedia articles with suppressed authority control identifiers|WORLDCATID]]' | ||
end | end | ||
edits