Open main menu

Changes

Module:Authority control

98 bytes added, 14:59, 23 December 2018
More specific WorldCat label, per talk, from sandbox
local lccnId = parentArgs['LCCN']
if viafId and viafId ~= '' and p.viafLink( viafId ) then --VIAF must be unsuppressed & validated
table.insert( elements, p.createRow( 'VIAF', '', viafId, '[[WorldCat Identities]](via VIAF): [https://www.worldcat.org/identities/containsVIAFID/'..viafId..' '..viafId..']', false ) ) if (namespace == 0) then worldcatCat = '[[Category:Wikipedia articles with WorldCat-VIAF identifiers]]' end
elseif lccnId and lccnId ~= '' and p.lccnLink( lccnId ) then --LCCN must be unsuppressed & validated
local lccnParts = p.splitLccn( lccnId )
if lccnParts and lccnParts[1] ~= 'sh' then
local lccnIdFmtd = lccnParts[1] .. lccnParts[2] .. '-' .. lccnParts[3]
table.insert( elements, p.createRow( 'LCCN', '', lccnId, '[[WorldCat Identities]](via LCCN): [https://www.worldcat.org/identities/lccn-'..lccnIdFmtd..' '..lccnIdFmtd..']', false ) ) if (namespace == 0) then worldcatCat = '[[Category:Wikipedia articles with WorldCat-LCCN identifiers]]' end
end
end
Anonymous user