Modulo:StagioniTV/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 25:
local pageTitle = args[1] or args.titolo
if not args[1] or args.titolo then
id = mw.wikibase.getEntityIdForTitle( pageTitle )▼
if string.find(mw.title.getCurrentTitle().text, '^Episodi d[ei]') then
localID = wikidata._getProperty({ 'P361', n = 1, from = mw.wikibase.getEntityIdForCurrentPage(), formatting = 'raw' })
else localID = nil
end
if localID ~= nil then
id = localID
end
▲ else id = mw.wikibase.getEntityIdForTitle( pageTitle )
end
if wikidata._instanceOf({ 'Q581714', from = id }) then tipo = 'animata'
elseif wikidata._instanceOf({ 'Q5398426', from = id }) then tipo = 'serie TV'
|