Module:Sharpness documentation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 10: Line 10:
-- value: absolute value of sharpness (the "n" as in sharp-n and flat-n)
-- value: absolute value of sharpness (the "n" as in sharp-n and flat-n)
-- extension: used for identifying alternative symbol set
-- extension: used for identifying alternative symbol set
local typ, value, extension = in_str:match("%-(%a*)(%d+)(%a*)")
local typ, value, extension, suffix = in_str:match("%-(%a*)(%d+)(%a*)-(%a*)")


-- signed sharpness
-- signed sharpness
Line 97: Line 97:
end
end
if s >= 3 then
if s >= 3 then
out_str = out_str .. "\n* [[Template:Sharpness-" .. typ .. value .. "]] – the classic version of this template that attaches arrows to accidentals."
out_str = out_str .. "\n* [[Template:Sharpness-" .. typ .. value .. suffix .. "]] – the classic version of this template that attaches arrows to accidentals."
end
end
end
end