« Module:Climat » : différence entre les versions

410 octets enlevés ,  17 novembre 2025
aucun résumé des modifications
m (1 version importée)
Aucun résumé des modifications
 
(2 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 228 : Ligne 228 :
{
{
param='tmin',
param='tmin',
libelle='Température minimale moyenne ([[Degré Celsius|°C]])',  
libelle='Température minimale moyenne (°C)',  
libelle_abrege='<abbr title="Température minimale moyenne (°C)">T. min. moy.</abbr>',
libelle_abrege='<abbr title="Température minimale moyenne (°C)">T. min. moy.</abbr>',
style=background_color_temperature
style=background_color_temperature
Ligne 249 : Ligne 249 :
param='tmoy',
param='tmoy',
libelle='Température moyenne (°C)',
libelle='Température moyenne (°C)',
libelle_abrege='<abbr title="Température moyenne">T. moy.</abbr> <small>([[Degré Celsius|°C]])</small>',
libelle_abrege='<abbr title="Température moyenne">T. moy.</abbr> <small>(°C)</small>',
style=background_color_temperature
style=background_color_temperature
},
},
Ligne 352 : Ligne 352 :
{
{
param='soleil',
param='soleil',
libelle='Ensoleillement ([[Heure|h]])',
libelle='Ensoleillement (h)',
libelle_abrege='<abbr title="Ensoleillement">Ensol.</abbr> <small>([[Heure|h]])</small>',
libelle_abrege='<abbr title="Ensoleillement">Ensol.</abbr> <small>(h)</small>',
background_color_soleil
background_color_soleil
},
},
Ligne 440 : Ligne 440 :
{
{
param='prec',
param='prec',
libelle='Précipitations ([[Millimètre|mm]])',
libelle='Précipitations (mm)',
libelle_abrege='<abbr title="Précipitations">Préc.</abbr> <small>([[Millimètre|mm]])</small>',
libelle_abrege='<abbr title="Précipitations">Préc.</abbr> <small>(mm)</small>',
style=background_color_precipitation
style=background_color_precipitation
},
},
{
{
param='pluie',
param='pluie',
libelle='<small>dont pluie ([[Millimètre|mm]])</small>',
libelle='<small>dont pluie (mm)</small>',
libelle_abrege='<small>dont pluie ([[Millimètre|mm]])</small>',
libelle_abrege='<small>dont pluie (mm)</small>',
padding_left=true
padding_left=true
},
},
{
{
param='neige',
param='neige',
libelle='<small>dont neige ([[Centimètre|cm]])</small>',
libelle='<small>dont neige (cm)</small>',
libelle_abrege='<small>dont neige ([[Centimètre|cm]])</small>',
libelle_abrege='<small>dont neige (cm)</small>',
style=background_color_neige,
style=background_color_neige,
padding_left=true
padding_left=true
Ligne 799 : Ligne 799 :
if source ~= "" then
if source ~= "" then
table.insert(result,'<div style="margin-top: -1em; text-align:center; font-size:85%">Source : '.. source..'</div>\n')
table.insert(result,'<div style="margin-top: -1em; text-align:center; font-size:85%">Source : '.. source..'</div>\n')
else
table.insert(result,'<div style="font-style:italic; margin-top: -1em; color:var(--color-error, #bf3c2c); text-align:center; font-size:85%">Ce tableau est sujet à caution car [[Wikipédia:Citez vos sources|il ne cite pas ses sources]].</div>')
end
end
for i,args in ipairs(periodes) do
for i,args in ipairs(periodes) do
Ligne 807 : Ligne 805 :
if diagramme ~= "" then
if diagramme ~= "" then
table.insert(result,'<table style="text-align:center; margin: 1em auto; border:solid 1px silver; border-collapse: collapse;">\n')
table.insert(result,'<table style="text-align:center; margin: 1em auto; border:solid 1px silver; border-collapse: collapse;">\n')
table.insert(result,'<tr><td colspan="12">[[Diagramme climatique]] '.. libelle_periode ..'</td></tr>\n')
table.insert(result,'<tr><td colspan="12">Diagramme climatique '.. libelle_periode ..'</td></tr>\n')
table.insert(result,'<tr><td><abbr title="janvier">J</abbr></td><td><abbr title="février">F</abbr></td><td><abbr title="mars">M</abbr></td><td><abbr title="avril">A</abbr></td><td><abbr title="mai">M</abbr></td><td><abbr title="juin">J</abbr></td><td><abbr title="juillet">J</abbr></td><td><abbr title="août">A</abbr></td><td><abbr title="septembre">S</abbr></td><td><abbr title="octobre">O</abbr></td><td><abbr title="novembre">N</abbr></td><td><abbr title="décembre">D</abbr></td></tr>')
table.insert(result,'<tr><td><abbr title="janvier">J</abbr></td><td><abbr title="février">F</abbr></td><td><abbr title="mars">M</abbr></td><td><abbr title="avril">A</abbr></td><td><abbr title="mai">M</abbr></td><td><abbr title="juin">J</abbr></td><td><abbr title="juillet">J</abbr></td><td><abbr title="août">A</abbr></td><td><abbr title="septembre">S</abbr></td><td><abbr title="octobre">O</abbr></td><td><abbr title="novembre">N</abbr></td><td><abbr title="décembre">D</abbr></td></tr>')
276

modifications