Module:WeightToPercent: Difference between revisions
Jump to navigation
Jump to search
imported>Septembre Création du script pour convertir les poids en pourcentages facilement |
imported>Septembre m debug 1: ajout de frame? |
||
| Line 1: | Line 1: | ||
local p = {} --p stands for package | local p = {} --p stands for package | ||
function convert(weight, totalweight) | function p.convert(frame, weight, totalweight) | ||
if weight == 0 then return 0 | if weight == 0 then return 0 | ||
else return 100 * totalweight / weight end | else return 100 * totalweight / weight end | ||
Revision as of 14:08, 19 November 2025
Documentation for this module may be created at Module:WeightToPercent/doc