Modulo:StagioniTV/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 22:
function p._prova(args)
local template, sfondo, categoria, target, stagioneoedizione, title, preposizione, links, errore
local id, localID, localID2, tipo, titolo, etichetta, nome, sitelink, stagioni
local pageTitle = args[1] or args.titolo
Riga 30:
if string.find(mw.title.getCurrentTitle().text, '^Episodi d[ei]') then
localID = wikidata._getProperty({ 'P361', n = 1, from = mw.wikibase.getEntityIdForCurrentPage(), formatting = 'raw' })
localID2 = wikidata._getProperty({ 'P179', n = 1, from = mw.wikibase.getEntityIdForCurrentPage(), formatting = 'raw' })
end
if localID ~= nil then
id = localID
elseif localID2 ~= nil then
id = localID2
end
else id = mw.wikibase.getEntityIdForTitle( pageTitle )
Riga 60 ⟶ 63:
local lang = mw.language.getContentLanguage()
local sep = ' <b>·</b> '
if tipo == 'programma' then
if string.find(mw.title.getCurrentTitle().text, '%(programma.+edizione%)$') then nome = sitelink
Riga 72 ⟶ 75:
end
end
if tipo == 'programma' then
title = mw.title.new(string.format('Categoria:Edizioni de %s', nome))
Riga 83 ⟶ 86:
end
end
for i = 1, stagioni do
local ordinaleF = ordinalefemminile(i)
|