Module:Infobox AFDO: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
CompactStar (talk | contribs)
No edit summary
CompactStar (talk | contribs)
No edit summary
Line 4: Line 4:
local steps = frame.args['steps']
local steps = frame.args['steps']
local infobox_data = {}
local result = infobox.build(
local result = infobox.build(
'[[' .. steps .. 'afdo]]',
'[[' .. steps .. 'afdo]]',
infobox_data
infobox_data
)
)
local infobox_data = {}
if not debug_mode then
if not debug_mode then
Line 17: Line 17:
return result
return result
end
end
return p

Revision as of 23:07, 11 April 2023

Module documentation[view] [edit] [history] [purge]
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 
Functions provided (1)
Line Function Params
3 infobox_AFDO (invokable) (frame)
Lua modules required (1)
Variable Module Functions used
infobox Module:Infobox build

No function descriptions were provided. The Lua code may have further information.


local p = {}
local infobox = require('Module:Infobox')
function p.infobox_AFDO(frame)
	local steps = frame.args['steps']
	
	local result = infobox.build(
		'[[' .. steps .. 'afdo]]',
		infobox_data
	)
	
	local infobox_data = {}
	
	if not debug_mode then
		result = result .. categories
	end
	
	return result
end

return p