Modulo:Controllo di autorità/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
aggiunte categorie per voci biografiche
scommentata getCatForId e aggiunto utilizzo in sbnLink
Riga 2:
 
local function getCatForId( id )
--local title = mw.title.getCurrentTitle()
-- it.wiki non aggiunge categorie per ogni identificativo
--local namespace = title.namespace
-- ma una unica "Categoria:Voci con codici di controllo di autorità"
--elseifif namespace == 2 and not title.isSubpage0 then
return ''
-- return '[[CategoryCategoria:WikipediaVoci articlescon withcodice ' .. id .. ' identifiers]]'
--local title = mw.title.getCurrentTitle()
end
--local namespace = title.namespace
--if elseif namespace == 02 and not title.isSubpage then
-- return '[[Category:Wikipedia articles with ' .. id .. ' identifiers]]'
--elseif namespace == 2 and not title.isSubpage then
-- return '[[Category:User pages with ' .. id .. ' identifiers]]'
--else
Riga 89 ⟶ 87:
return false
end
return '[http://opac.sbn.it/opacsbn/opac/iccu/scheda_authority.jsp?bid=' .. id .. ' ' .. id .. ']' .. getCatForId( 'SBN' )
end