Module:Infobox ET: Difference between revisions
mNo edit summary |
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 ET.is_highly_composite(et) or (is_zeta ~= false and ET.is_zeta(et)) then | |||
local text = '' | |||
if ET.is_highly_composite(et) then | |||
text = text .. '[[Highly composite equal division|highly composite]]' | |||
end | end | ||
if is_zeta ~= false and ET.is_zeta(et) then | 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 | if type(zeta) ~= 'string' or #zeta == 0 then | ||
text = text .. ET.why_zeta(et, 1) | |||
else | |||
text = text .. zeta | |||
end | end | ||
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, { | ||