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 68:
--===================================================================
function p.stato_conservazione(frame)
 
local args = getArgs(frame, {wrapper = 'template:Tassobox'})
local statocons = args.statocons
if statocons == nil then return end
local iucn = { ['iucn2.3'] = true, ['iucn3.1'] = true}
statocons = mw.ustring.lower(statocons)
statocons = cfg.stato_alias[statocons] or statocons
Line 80 ⟶ 82:
if row_stato.versione then
local versione = args.statocons_versione or ''
immagineversione = mw.ustring.format(row_stato.image, (row_stato.versioneiucn[versione] and versione) or row_stato.default(statocons == 'ex' and 'none') or 'iucn3.1'
if immagineversione == "Status_none_EX it.svg" 'none' then
immagine = 'Status_none_EX.svg'
else
immagine = mw.ustring.format(row_stato.image, versione)
end
else
Line 90 ⟶ 94:
ref = ref and ('<span style=font-size:80%>' .. ref .. '</span>')
local dataestinzione = ''
if row_stato.data_coloredata then
dataestinzione = argsrow_stato.dataestinzionetext_data or ''
dataestinzioneif dataestizione ~= (dataestinzione'' and mwargs.ustring.format('(<spandata then dataestinzione style="color:%s;">%s</span>)', dataestinzione)) or.. ' ' end
dataestinzione = dataestinzione .. args.data
dataestinzione = mw.ustring.format('(<span style="color:%s;">%s</span>)', row_stato.color_data or row_stato.color, dataestinzione)
end
 
local base_msg =
'<div style="margin:0 auto; text-align:center; background:white;">'..