Modulo:Sandbox/Titore: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m Bot: rimuovo no globals obsoleto |
|||
(7 versioni intermedie di un altro utente non mostrate) | |||
Riga 1:
require('
local wikidata = require('Modulo:Wikidata')
Riga 85:
end
else
-- segue la destinazione di eventuali redirect
local redirectTarget = mw.title.new(pageTitle).redirectTarget
pageTitle = redirectTarget and redirectTarget.text or pageTitle
id = mw.wikibase.getEntityIdForTitle( pageTitle )
end
Riga 139 ⟶ 142:
preposizione = string.match(mw.title.getCurrentTitle().text, '^Episodi (d[ei])')
end
elseif mw.title.new(string.format('Episodi di %s (prima stagione)', args[1])).exists then
nome = args[1]
preposizione = 'di'
elseif mw.title.new(string.format('Episodi di %s (prima stagione)', etichetta)).exists then
nome = etichetta
Riga 176 ⟶ 182:
end
local label = args.formato == 'numeri romani' and mNumeroRomano.main({ i }) or (args.formato == 'forma breve' and string.format('%dª', i) or string.format('%
table.insert(tbl, string.format('[[%s|%s]]', target, label))
|