Module:Sharpness documentation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 8: Line 8:
local note = frame.args["note"] or ""
local note = frame.args["note"] or ""
local notation = frame.args["notation"]
local notation = frame.args["notation"]
local out_str = "This template is \"" .. c .. "\"used "
if c == nil then
if c == nil then
c = ""
c = ""
end
end
local out_str = "This template is used "
if (d == "flat" or d == "flat") then
if (d == "flat" or d == "flat") then
Line 34: Line 35:
out_str = out_str .. "."
out_str = out_str .. "."
if notation == "" and c == "" then
if notation == "" then
if s >= 3 then
if s >= 3 then
out_str = out_str .. " The symbol set is based on [[ups and downs notation]] and comprises "
if c == "" then
.. (s % 2 == 0
out_str = out_str .. " The symbol set is based on [[ups and downs notation]] and comprises "
and "sharps, flats, naturals, and Stein–Zimmerman [[24edo#Notation|quarter tone]] accidentals "
.. (s % 2 == 0
or "sharps, flats, and naturals ")
and "sharps, flats, naturals, and Stein–Zimmerman [[24edo#Notation|quarter tone]] accidentals "
or "sharps, flats, and naturals ")
out_str = out_str .. "with arrows from [[Helmholtz–Ellis notation]]."
out_str = out_str .. "with arrows from [[Helmholtz–Ellis notation]]."
elseif c == "a" or c == "A" then
out_str = out_str .. " The symbol set is based on [[ups and downs notation]] using separate arrows."
end
end
end
else
else