Modulo:StagioniTV/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
m pTitle
Riga 135:
elseif tipo == 'programma' then sfondo = 'background:#2e2eff;'
end
local titolotemplate, charval
local len = mw.ustring.len(etichetta)
local pos = 1
while ( pos <= len ) do
charval = mw.ustring.codepoint(mw.ustring.sub(etichetta, pos))
if charval>=370 and charval<2000 then
title titolotemplate = string.format("[[%s|<span style=\"color:white;\">''%s''</span>]]", sitelink, etichetta),
elseif charval>=2100 and charval~=8364 then
titolotemplate = string.format("[[%s|<span style=\"color:white;\">%s</span>]]", sitelink, etichetta) else
titolotemplate = string.format("[[%s|<span style=\"color:white;\">''%s''</span>]]", sitelink, etichetta)
end
pos = pos + 1;
end
if not id or not etichetta or not stagioni then
Riga 142 ⟶ 156:
else template = navbox._navbox({
name = 'Stagioni televisive',
title = titolotemplate,
title = string.format("[[%s|<span style=\"color:white;\">''%s''</span>]]", sitelink, etichetta),
titlestyle = sfondo,
image = string.format("[[File:Blue pencil.svg |frameless |12px |alt=Modifica su Wikidata|link=https://www.wikidata.org/wiki/%s#P2437|Modifica su Wikidata]]", id),