Module:Navbar: Difference between revisions

ArrowHead294 (talk | contribs)
m Make code easier to read
ArrowHead294 (talk | contribs)
mNo edit summary
Line 29: Line 29:


function p.lumatone_map(frame)
function p.lumatone_map(frame)
local arpn = frame:preprocess("{{ARTICLEROOTPAGENAME}}")
local debugg = yesno(frame.args["debug"])
local debugg = yesno(frame.args["debug"])
local a = arpn:match("(%d+)%s*[Ee][Dd][2Oo]")
local x = tonumber(frame.args["edo"]) or 12
local x = tonumber(frame.args["edo"]) or tonumber(a)
local thresh = 5
local thresh = 5