Module:JI ratios in ED: Difference between revisions
m Simplified table title |
m Edited prime-limit vs subgroup logic; check for subgroup, then prime limit; default to 7-limit |
||
| Line 149: | Line 149: | ||
local primes = { 2, 3, 5, 7 } | local primes = { 2, 3, 5, 7 } | ||
if string.len(frame.args[" | if string.len(frame.args["Subgroup"]) > 0 then | ||
primes = p.primes_within_prime_limit(tonumber(frame.args["Prime Limit"])) | primes = p.primes_within_prime_limit(tonumber(frame.args["Prime Limit"])) | ||
elseif string.len(frame.args[" | elseif string.len(frame.args["Prime Limit"]) > 0 then | ||
primes = tip.parse_numeric_entries(frame.args["Subgroup"], '.') or tip.parse_numeric_entries(frame.args["Subgroup"], ',') | primes = tip.parse_numeric_entries(frame.args["Subgroup"], '.') or tip.parse_numeric_entries(frame.args["Subgroup"], ',') | ||
end | end | ||