Module:MOS tuning spectrum: Difference between revisions

Ganaram inukshuk (talk | contribs)
refactor code
Ganaram inukshuk (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
local yesno    = require("Module:yesno")
local yesno    = require("Module:yesno")
local getArgs  = require("Module:Arguments").getArgs
local getArgs  = require("Module:Arguments").getArgs
local p = {}
local p = {}


-- TODO:
-- TODO:
-- - Add back old option from previous scale tree: toggle staggering of ratios.
-- - (Low priority): Force-add comments that lie outside searched depth. If such
-- - (Low priority): Force-add comments that lie outside searched depth. If such
--  ratios are added, they're added in either the last column or their own
--  ratios are added, they're added in either the last column or their own
Line 104: Line 106:
table.insert(result, string.format('! rowspan="2" | %s', comments_header_text))
table.insert(result, string.format('! rowspan="2" | %s', comments_header_text))
table.insert(result, '|-')
table.insert(result, '|-')
table.insert(result, '! Bright')
table.insert(result, '! <abbr title="Chroma-positive generator">Bright</abbr>')
table.insert(result, '! Dark')
table.insert(result, '! <abbr title="Chroma-negative generator">Dark</abbr>')
table.insert(result, '! L:s')
table.insert(result, '! L:s')
table.insert(result, '! Hardness')
table.insert(result, '! Hardness')