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()
end
▲ --local namespace = title.namespace
--
▲ -- 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
|