This is an old revision of this page, as edited by Mr rnddude(talk | contribs) at 14:12, 6 March 2018(Modify it to a percentage calculation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 14:12, 6 March 2018 by Mr rnddude(talk | contribs)(Modify it to a percentage calculation)
-- This is my module sandbox.-- Simple pre-module for a-- requested template.localp={}functionp.percent(frame)-- percentage (eventually)-- Percentage = share/total * 100localnum1=tonumber(frame.args[1])localnum2=tonumber(frame.args[2])returnnum1/num2*100endreturnp