Module:Infobox ET: Difference between revisions

Make zeta properties display opt-in, but always include zeta categories nonetheless
Move highly composite edos notice to the prime factorization line. Suppress it for 1ed's since it can be confusing otherwise.
Line 80: Line 80:
prime_factorization = prime_factorization .. " (prime)"
prime_factorization = prime_factorization .. " (prime)"
if rat.eq(et.equave, 2) then
if rat.eq(et.equave, 2) then
categories = categories .. "[[Category:Prime EDOs|" .. string.rep("#", string.len(et.size)) .. "]]"
categories = categories  
.. "[[Category:Prime EDOs|" .. string.rep("#", string.len(et.size)) .. "]]"
end
end
if ET.is_highly_composite(et) and et.size > 1 then
prime_factorization = prime_factorization .. " (highly composite)"
if rat.eq(et.equave, 2) then
categories = categories
.. "[[Category:Highly composite EDOs|" .. string.rep("#", string.len(et.size)) .. "]]"
end
end
end
end
Line 216: Line 224:


-- special properties
-- special properties
if ET.is_highly_composite(et) or ET.is_zeta(et) then
if ET.is_zeta(et) then
local text = ""
local text = ""
if ET.is_highly_composite(et) then
if rat.eq(et.equave, 2) then
text = text .. "[[Highly composite equal division|Highly composite]]"
if rat.eq(et.equave, 2) then
categories = categories
.. "[[Category:Highly composite EDOs|"
.. string.rep("#", string.len(et.size))
.. "]]"
end
end
if ET.is_zeta(et) and rat.eq(et.equave, 2) then
categories = categories
categories = categories
.. "[[Category:Zeta record EDOs|"  
.. "[[Category:Zeta record EDOs|"  
Line 233: Line 232:
.. "]]"
.. "]]"
if zeta_switch then
if zeta_switch then
if #text > 0 then
text = text .. "<br>"
end
text = text .. ET.why_zeta(et)
text = text .. ET.why_zeta(et)
end
end
end
end
if #text >0 then
if #text > 0 then
table.insert(infobox_data, {
table.insert(infobox_data, {
"Special properties",
"Special properties",