「モジュール:Authority control」の版間の差分

削除された内容 追加された内容
en:Module:Authority control oldid=1073247698 より更新
修正
40行目:
local faultyCat = '誤った'..(specialCat or id)..'識別子が指定されている記事'
if links then -- all links[] use withUid = false; no check needed
local row = '*<span class="nowrap">'..label
if label then
row = row..'*'..label
end
--if prefix then
-- row = row..'*'..prefix
--end
for i, l in ipairs( links ) do
if i == 1 and not label then row = row..' *' end
else if i ~= 1 then row = row..', ' end
if l then
row = row..'<span class="uid">'..l..'</span>'
50 ⟶ 56行目:
end
end
return row..'</span>\n'
elseif link then -- All IDs that have a prefix support multiple identifiers, so prefix is not needed
elseif link then
if withUid then
return '*<span class="nowrap">'..label..' <span class="uid">'..link..'</span></span>\n'
1,303 ⟶ 1,309行目:
table.insert( tval, v )
table.insert( tlinks, params[3]( v, tostring(nextIdVal) ) )
table.insert( tlinks, params[3]( v ) )
nextIdVal = nextIdVal + 1
end
1,325 ⟶ 1,330行目:
local lccnId = parentArgs['lccn'] or parentArgs['LCCN']
if viafId and viafId ~= '' and p.viafLink( viafId ) then --VIAF must be present, unsuppressed, & validated
table.insert( elements, p.createRow( 'VIAF', '', viafId, '[[WorldCat Identities (識別子)|WorldCat Identities]](VIAF経由):', viafId, '[https://www.worldcat.org/identities/containsVIAFID/'..viafId..' '..viafId..']', nil, false ) )
if namespace == 0 then
worldcatCat = '[[Category:WorldCat-VIAF識別子が指定されている記事]]'
1,333 ⟶ 1,338行目:
if lccnParts and lccnParts[1] ~= 'sh' then
local lccnIdFmtd = lccnParts[1]..lccnParts[2]..'-'..lccnParts[3]
table.insert( elements, p.createRow( 'LCCN', '', lccnId, '[[WorldCat Identities (識別子)|WorldCat Identities]](LCCN経由):', lccnId, '[https://www.worldcat.org/identities/lccn-'..lccnIdFmtd..' '..lccnIdFmtd..']', nil, false ) )
if namespace == 0 then
worldcatCat = '[[Category:WorldCat-LCCN識別子が指定されている記事]]'