Module:JI ratios: Difference between revisions

Ganaram inukshuk (talk | contribs)
Updated search-by-params to use new function; will momentarily break dependent modules
Ganaram inukshuk (talk | contribs)
No edit summary
Line 299: Line 299:
local result = "Not all notable ratios may be shown, and other interpretations are possible."
local result = "Not all notable ratios may be shown, and other interpretations are possible."
if search_params["Prime Limit"] ~= nil then
if search_params["Int Limit"] ~= nil then
result = string.format("Ratios shown are within the [[%s-limit]]. %s", search_params["Prime Limit"], result)
local tenney_height_text = search_params["Tenney Height"] ~= nil and string.format(", capped at a Tenney height of %.1f.", search_params["Tenney Height"]) or "."
elseif search_params["Int Limit"] ~= nil then
local int_limit_text = string.format("Ratios shown are within the %s-integer limit", search_params["Int Limit"])
result = string.format("Ratios shown are %s-[[integer-limit|integer limit]]. %s", search_params["Int Limit"], result)
result = tenney_height_text .. int_limit_text .. " " .. result
end
end
return result
return result