Module:Infobox ET: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
m Stabilising the new appearance of special properties
Line 76: Line 76:
u._prime_factorization(et.size) .. prime
u._prime_factorization(et.size) .. prime
})
})
if debug_mode then
if ET.is_highly_composite(et) or (is_zeta ~= false and ET.is_zeta(et)) then
if ET.is_highly_composite(et) or (is_zeta ~= false and ET.is_zeta(et)) then
local text = ''
local text = ''
if ET.is_highly_composite(et) then
if ET.is_highly_composite(et) then
text = text .. '[[Highly composite equal division|highly composite]]'
text = text .. '[[Highly composite equal division|highly composite]]'
end
if is_zeta ~= false and ET.is_zeta(et) then
if #text > 0 then text = text .. ', ' end
if type(zeta) ~= 'string' or #zeta == 0 then
text = text .. ET.why_zeta(et, 1)
else
text = text .. zeta
end
end
table.insert(infobox_data, {
'Special properties',
'<div style="max-width: 270px;">' .. text .. '</div>'
})
end
else
if ET.is_highly_melodic(et) then
table.insert(infobox_data, {
'[[Highly melodic equal division|Highly melodic]]',
ET.why_highly_melodic(et)
})
end
end
if is_zeta ~= false and ET.is_zeta(et) then
if is_zeta ~= false and ET.is_zeta(et) then
local why = zeta
if #text > 0 then text = text .. ', ' end
if type(zeta) ~= 'string' or #zeta == 0 then
if type(zeta) ~= 'string' or #zeta == 0 then
why = ET.why_zeta(et)
text = text .. ET.why_zeta(et, 1)
else
text = text .. zeta
end
end
table.insert(infobox_data, {
'[[The Riemann zeta function and tuning|Zeta]]',
why
})
end
end
table.insert(infobox_data, {
'Special properties',
'<div style="max-width: 270px;">' .. text .. '</div>'
})
end
end
table.insert(infobox_data, {
table.insert(infobox_data, {