Module:Infobox AFDO: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 5: | Line 5: | ||
local steps = frame.args['steps'] | local steps = frame.args['steps'] | ||
local stepnum = tonumber(steps) | local stepnum = tonumber(steps) | ||
local dualfifth = stepnum % 2 == 1 | |||
local fifth = math.ceil(steps/2) | |||
local infobox_data = {} | local infobox_data = {} | ||
table.insert(infobox_data, { | |||
'Prime factorization', | |||
u._prime_factorization(stepnum) | |||
}) | |||
local result = infobox.build( | local result = infobox.build( | ||
'<- [[' .. (steps - 1).. 'afdo]] ' .. '[[' .. steps .. 'afdo]]' .. ' [[' .. (steps + 1).. 'afdo]] ->', | '<-<small> [[' .. (steps - 1).. 'afdo]] </small>' .. '[[' .. steps .. 'afdo]]' .. '<small> [[' .. (steps + 1).. 'afdo]] -></small>', | ||
infobox_data | infobox_data | ||
) | ) | ||