Modulo:Controllo di autorità: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
parametri navbox |
fix categorie |
||
Riga 2:
local function getCatForId( id )
-- it.wiki non aggiunge categorie per ogni identificativo
local title = mw.title.getCurrentTitle()▼
-- ma una unica "Categoria:Voci con codici di controllo di autorità"
local namespace = title.namespace▼
return ''
if namespace == 0 then▼
▲ --local title = mw.title.getCurrentTitle()
return '[[Category:Wikipedia articles with ' .. id .. ' identifiers]]'▼
return '[[Category:User pages with ' .. id .. ' identifiers]]'▼
▲ -- return '[[Category:Wikipedia articles with ' .. id .. ' identifiers]]'
else▼
return '[[Category:Miscellaneous pages with ' .. id .. ' identifiers]]'▼
▲ -- return '[[Category:User pages with ' .. id .. ' identifiers]]'
end▼
▲ --else
▲ -- return '[[Category:Miscellaneous pages with ' .. id .. ' identifiers]]'
▲ --end
end
Riga 383 ⟶ 386:
local Navbox = require('Module:Navbox')
local elementscats = ''
--if rct > 13 then
-- elementscats = '[[Category:AC with ' .. rct .. ' elements]]'
if #elements ~= 0 then
Riga 392 ⟶ 395:
group1 = '[[Controllo di autorità]]' .. elementscats,
list1 = table.concat( elements, '<span style="font-weight:bold;"> ·</span> ' )
} ) .. '[[Categoria:Voci con codici di controllo di autorità]]'
else
return ""
|