Module:Infobox AFDO: Difference between revisions
Jump to navigation
Jump to search
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local u = require('Module:Utils') | |||
local infobox = require('Module:Infobox') | local infobox = require('Module:Infobox') | ||
function p.infobox_AFDO(frame) | function p.infobox_AFDO(frame) | ||
| Line 5: | Line 6: | ||
local infobox_data = {} | local infobox_data = {} | ||
infobox_data | table.insert(infobox_data, { | ||
'Prime factorization', | |||
u._prime_factorization(steps) | |||
}) | |||
local result = infobox.build( | local result = infobox.build( | ||
'<- [[' .. (steps - 1).. 'afdo]] | '<- [[' .. (steps - 1).. 'afdo]] ' .. '[[' .. steps .. 'afdo]]' .. '\t[[' .. (steps + 1).. 'afdo]] ->', | ||
infobox_data | infobox_data | ||
) | ) | ||
Revision as of 23:14, 11 April 2023
- This module should not be invoked directly; use its corresponding template instead: Template:Infobox AFDO.
Generates an infobox providing information about a given arithmetic frequency division of the octave.
| Introspection summary for Module:Infobox AFDO | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||||||
No function descriptions were provided. The Lua code may have further information.
local p = {}
local u = require('Module:Utils')
local infobox = require('Module:Infobox')
function p.infobox_AFDO(frame)
local steps = frame.args['steps']
local infobox_data = {}
table.insert(infobox_data, {
'Prime factorization',
u._prime_factorization(steps)
})
local result = infobox.build(
'<- [[' .. (steps - 1).. 'afdo]] ' .. '[[' .. steps .. 'afdo]]' .. '\t[[' .. (steps + 1).. 'afdo]] ->',
infobox_data
)
return result
end
return p