<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.emushpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AWeightToPercent</id>
	<title>Module:WeightToPercent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.emushpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AWeightToPercent"/>
	<link rel="alternate" type="text/html" href="https://en.emushpedia.com/index.php?title=Module:WeightToPercent&amp;action=history"/>
	<updated>2026-06-09T19:26:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://en.emushpedia.com/index.php?title=Module:WeightToPercent&amp;diff=1142&amp;oldid=prev</id>
		<title>Apollo105: Created page with &quot;local p = {}  function p.convert(frame) 	local weight = frame.args[&#039;weight&#039;] 	local totalweight = frame.args[&#039;total&#039;] 	 	if weight == nil then return &quot;ERROR: weight input (1rst arg) is nil&quot; 	elseif totalweight == nil then return &quot;ERROR: totalweight (2nd arg) input is nil&quot; 	elseif weight == 0 then return 0     end     return tonumber(string.format(&quot;%.1f&quot;, weight * 100 / totalweight)) end   return p&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.emushpedia.com/index.php?title=Module:WeightToPercent&amp;diff=1142&amp;oldid=prev"/>
		<updated>2026-04-24T04:25:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.convert(frame) 	local weight = frame.args[&amp;#039;weight&amp;#039;] 	local totalweight = frame.args[&amp;#039;total&amp;#039;] 	 	if weight == nil then return &amp;quot;ERROR: weight input (1rst arg) is nil&amp;quot; 	elseif totalweight == nil then return &amp;quot;ERROR: totalweight (2nd arg) input is nil&amp;quot; 	elseif weight == 0 then return 0     end     return tonumber(string.format(&amp;quot;%.1f&amp;quot;, weight * 100 / totalweight)) end   return p&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.convert(frame)&lt;br /&gt;
	local weight = frame.args[&amp;#039;weight&amp;#039;]&lt;br /&gt;
	local totalweight = frame.args[&amp;#039;total&amp;#039;]&lt;br /&gt;
	&lt;br /&gt;
	if weight == nil then return &amp;quot;ERROR: weight input (1rst arg) is nil&amp;quot;&lt;br /&gt;
	elseif totalweight == nil then return &amp;quot;ERROR: totalweight (2nd arg) input is nil&amp;quot;&lt;br /&gt;
	elseif weight == 0 then return 0&lt;br /&gt;
    end&lt;br /&gt;
    return tonumber(string.format(&amp;quot;%.1f&amp;quot;, weight * 100 / totalweight))&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Apollo105</name></author>
	</entry>
</feed>