Module:Infobox interval: Difference between revisions
Move the "p-limit" category to "p-limit intervals" |
Fix categorizing irregular intervals as rational |
||
| Line 90: | Line 90: | ||
end | end | ||
-- categorize by rationality and prime limit | |||
if rational then | if regular then | ||
if rational then | |||
local prime_limit = 2 | |||
if not rat.eq(ratio, 1) then | |||
prime_limit = rat.max_prime(ratio) | |||
end | |||
cats = cats .. '[[Category:Rational intervals]]' .. '[[Category:' .. prime_limit .. '-limit intervals]]' | |||
else | |||
cats = cats .. '[[Category:Irrational intervals]]' | |||
end | end | ||
end | end | ||
local special_properties = {} | local special_properties = {} | ||
if rational and small then | if rational and small then | ||