Module:Infobox chord: Difference between revisions

Bcmills (talk | contribs)
Created page with "local p = {} local rat = require("Module:Rational") local utils = require("Module:Utils") local infobox = require("Module:Infobox") function p.infobox_chord(frame) local de..."
 
Bcmills (talk | contribs)
No edit summary
Line 17: Line 17:
local harmonics = {}
local harmonics = {}
local i = 0
local i = 0
for hs in string.gmatch(s, "[^:]+") do
for hs in string.gmatch(frame.args["Harmonics"], "[^:]+") do
h = tonumber(hs)  -- TODO: support rational entries?
h = tonumber(hs)  -- TODO: support rational entries?
if h == nil or h < 1 then
if h == nil or h < 1 then