Module:Sharpness szg documentation: Difference between revisions
Dave Keenan (talk | contribs) mNo edit summary |
Dave Keenan (talk | contribs) mNo edit summary |
||
| Line 59: | Line 59: | ||
-- If a sharp raises by two steps | -- If a sharp raises by two steps | ||
result = result | result = result | ||
.. "comprises sharps, flats, and Stein– | .. "comprises sharps, flats, and Stein–Zimmermann [[24edo #Notation|quartertone]] accidentals." | ||
else | else | ||
-- Otherwise (if a sharp raises by three or more steps) | -- Otherwise (if a sharp raises by three or more steps) | ||
result = result | result = result | ||
.. "is based on [[ups and downs notation]] and comprises sharps, flats, " | .. "is based on [[ups and downs notation]] and comprises sharps, flats, " | ||
.. (s % 2 == 0 and "naturals, and Stein– | .. (s % 2 == 0 and "naturals, and Stein–Zimmermann [[24edo #Notation|quartertone]] accidentals " or "and naturals ") | ||
.. "with arrows from [https://w3c-cg.github.io/smufl/latest/tables/gould-arrow-quartertone-accidentals-24-edo.html Gould notation]." | .. "with arrows from [https://w3c-cg.github.io/smufl/latest/tables/gould-arrow-quartertone-accidentals-24-edo.html Gould notation]." | ||
end | end | ||
| Line 103: | Line 103: | ||
if (extension == "a" or extension == "A") then | if (extension == "a" or extension == "A") then | ||
-- If the template shows separate | -- If the template shows separate up and down chevrons | ||
result = result | result = result | ||
.. string.format("* [[{{#ifexist: %s|%s|%s}}]] – ", basic_suf, basic_suf, basic) | .. string.format("* [[{{#ifexist: %s|%s|%s}}]] – ", basic_suf, basic_suf.."-szg", basic.."-szg") | ||
.. (s == 2 | .. (s == 2 | ||
and "uses Stein– | and "uses Stein–Zimmermann quarter tone accidentals." | ||
or "the classic version of this template that shows arrows attached to standard accidentals.") | or "the classic version of this template that shows arrows attached to standard accidentals.") | ||
else | else | ||
-- If the template shows integrated (Gould-like) arrows | -- If the template shows integrated (Gould-like) arrows | ||
result = result .. string.format("{{#ifexist: %sa|* [[%sa]] – ", basic, basic) | result = result .. string.format("{{#ifexist: %sa|* [[%sa]] – ", basic, basic.."-szg") | ||
.. "an alternate version of this template that shows separate arrows.\n|}}" | .. "an alternate version of this template that shows separate arrows.\n|}}" | ||
if string.lower(suffix) ~= "" then | if string.lower(suffix) ~= "" then | ||
-- If we are on a different version of a template (e.g. "extended" ones that show more arrows than the minimum) | -- If we are on a different version of a template (e.g. "extended" ones that show more arrows than the minimum) | ||
result = result .. string.format("{{#ifexist: %s|* [[%s]] – ", basic, basic) | result = result .. string.format("{{#ifexist: %s|* [[%s]] – ", basic, basic.."-szg") | ||
.. "the basic version of this template.|}}" | .. "the basic version of this template.|}}" | ||
else | else | ||
-- Otherwise, add an additional note for possible extended versions, if they exist | -- Otherwise, add an additional note for possible extended versions, if they exist | ||
if s % 2 == 1 and s >= 3 then | if s % 2 == 1 and s >= 3 then | ||
result = result .. string.format("{{#ifexist: %s-extended|* [[%s-extended]] – ", basic, basic) | result = result .. string.format("{{#ifexist: %s-extended|* [[%s-extended]] – ", basic, basic.."-szg") | ||
.. "an alternate version of this template that includes " | .. "an alternate version of this template that includes " | ||