Modulo:Tassobox/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
Nessun oggetto della modifica
Moroboshi (discussione | contributi)
Nessun oggetto della modifica
Riga 71:
local statocons = args.statocons
if statocons == nil then return end
statocons = mw.ustring.lower(statocons)
statocons = cfg.stato_alias[statocons] or statocons
local row_stato = cfg.stato[statocons]
Line 76 ⟶ 77:
return '<span class="errore">parametro statocons non valido</span>[[Categoria:Errori di compilazione del template Tassobox]]'
end
local base_image = row_stato.base_image
local immagine
if row_stato.versione then
local versione = args.statocons_versione or ''
immagine = mw.message.newRawMessage(row_stato.base_image, (row_stato[versione] and versione) or row_stato.default)
else
end
local base_image immagine = row_stato.base_image
end
local ref = args.statocons_ref
ref = ref and ('<span style=font-size:80%>' .. ref .. '</span>')
local dataestinzione = args.dataestinzione''
if row_stato.data_colore then
dataestinzione = (dataestinzione and mw.ustring.format('<br><span style="color:%s;">%s</span>', dataestinzione)) or ''
dataestinzione = args.dataestinzione
dataestinzione = (dataestinzione and mw.ustring.format('<br>(<span style="color:%s;">%s</span>)', dataestinzione)) or ''
end
 
local base_msg = [[
<div style="margin:0 auto; text-align:center; background:white;">