Module:JI ratios in ED: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Corrected "Primes" to "Prime Limit" param
Ganaram inukshuk (talk | contribs)
m prime_limit_to_subgroup -> primes_within_prime_limit
Line 150: Line 150:
local primes = { 2, 3, 5, 7 }
local primes = { 2, 3, 5, 7 }
if string.len(frame.args["Prime Limit"]) > 0 then
if string.len(frame.args["Prime Limit"]) > 0 then
primes = p.prime_limit_to_subgroup(tonumber(frame.args["Prime Limit"]))
primes = p.primes_within_prime_limit(tonumber(frame.args["Prime Limit"]))
elseif string.len(frame.args["Subgroup"]) > 0 then
elseif string.len(frame.args["Subgroup"]) > 0 then
local primes_unparsed = tip.parse_numeric_entries(primes_unparsed, '.') or tip.parse_numeric_entries(primes_unparsed, ',')
local primes_unparsed = tip.parse_numeric_entries(primes_unparsed, '.') or tip.parse_numeric_entries(primes_unparsed, ',')