Module:JI ratios: Difference between revisions

Ganaram inukshuk (talk | contribs)
Add subgroup and prime limit options to search-by-params
Ganaram inukshuk (talk | contribs)
Change footnotes wording
Line 260: Line 260:


function p.search_param_footnotes(search_params)
function p.search_param_footnotes(search_params)
local result = "Not all notable ratios may be shown, and other interpretations are possible."
local result = "Other interpretations are possible."
local search_text = ""
local search_text = ""
if search_params["Prime Limit"] ~= nil then
if search_params["Prime Limit"] ~= nil then
search_text = string.format("Ratios shown are within the %s-prime limit.", search_params["Prime Limit"])
search_text = string.format("Ratios shown are within the %s-prime limit. Automatic search may not include all notable ratios, and may include irrelevant ratios. ", search_params["Prime Limit"])
elseif search_params["Subgroup"] ~= nil then
elseif search_params["Subgroup"] ~= nil then
search_text = string.format("Ratios shown are within the %s subgroup.", table.concat(search_params["Subgroup"], "."))
search_text = string.format("Ratios shown are within the %s subgroup. Automatic search may not include all notable ratios, and may include irrelevant ratios. ", table.concat(search_params["Subgroup"], "."))
elseif search_params["Int Limit"] ~= nil then
elseif search_params["Int Limit"] ~= nil then
search_text = string.format("Ratios shown are within the %s-integer limit.", search_params["Int Limit"])
search_text = string.format("Ratios shown are within the %s-integer limit. Automatic search may not include all notable ratios, and may include irrelevant ratios. ", search_params["Int Limit"])
end
end