Module:WeightToPercent: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 April 2026

  • curprev 04:2504:25, 24 April 2026 Apollo105 talk contribs 400 bytes +400 Created page with "local p = {} function p.convert(frame) local weight = frame.args['weight'] local totalweight = frame.args['total'] if weight == nil then return "ERROR: weight input (1rst arg) is nil" elseif totalweight == nil then return "ERROR: totalweight (2nd arg) input is nil" elseif weight == 0 then return 0 end return tonumber(string.format("%.1f", weight * 100 / totalweight)) end return p"