Differenze tra le versioni di "Modulo:Stats"

Fixed stats bars overflowing for large values
(Added footer line for changed stats)
(Fixed stats bars overflowing for large values)
|}]=],
 
catSpecToBoth = '[[Categoria:Pokémon la cui statistica SpecialeSpeciali è diventata sia Attacco Speciale che Difesa Speciale|${display}]]',
 
catSpecToSpatk = '[[Categoria:Pokémon la cui statistica Speciali è diventata Attacco Speciale|${display}]]',
* Le statistiche di questo Pokémon sono cambiate nel corso delle generazioni. Tutti i valori sono disponibili [[Elenco Pokémon per statistiche base|qui]]. ]=],
 
statBar = [=[<div class="roundyright text-left" style="margin-left: 1ex; width: calc(1em + ${width}%); color: #${bgdark}; color: #${darkbg};">'''${val}'''</div>]=],
 
statBounds = [=[
statRow = [=[|-
| ${rleft}style="width: 5.5em; padding: 0.3ex 0.8ex; background: #${light};" | [[Statistiche#${link}|<span style="color: #${normale};">${stat}</span>]]
| ${rright}style="padding: 0.3ex 0.8ex 0.3ex 1.8ex; background: #${light};" | ${statBar}${bounds}]=],
 
totalLink = [=[<div class="flex flex-nowrap flex-row flex-main-start flex-items-center">${tot}<span class="text-small text-center" style="margin-left: 2ex;">[[:Categoria:Pokémon con statistiche base totali di ${tot}|<span style="color: initial;">Altri Pokémon con questo totale</span>]]</span></div>]=]
return string.interp(strings.statBar,
{
width = value / 255270 * 100,
bg = css.horizGradLua{type = stat},
dark = c[stat].dark,