Module:Navbar: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 57: | Line 57: | ||
function p.frac_octave(frame) | function p.frac_octave(frame) | ||
local root_page_name = frame:preprocess("{{FULLROOTPAGENAME}}") | |||
local a = root_page_name:match("(%d+)%a+[%s%-]*[Oo]ctave%s*[Tt]emperament[s]?") | local a = root_page_name:match("(%d+)%a+[%s%-]*[Oo]ctave%s*[Tt]emperament[s]?") | ||
local x = tonumber(frame.args["f"]) or tonumber(a) | local x = tonumber(frame.args["f"]) or tonumber(a) |