Module:Sharpness documentation: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 90: | Line 90: | ||
end | end | ||
-- display the "see also" section for sharpness- | -- display the "see also" section for sharpness-2 and above | ||
if | if s >= 2 then | ||
local basic = "Template:Sharpness-" .. typ .. value | local basic = "Template:Sharpness-" .. typ .. value | ||
local basic_suf = basic .. "-" .. suffix | local basic_suf = basic .. "-" .. suffix | ||
out_str = out_str .. "\n\n<h3>See also</h3>\n" | |||
if (extension == "a" or extension == "A") then | |||
.. "* [[Alternative symbols for ups and downs notation]]" | out_str = out_str | ||
.. "* [[Alternative symbols for ups and downs notation]]" | |||
.. "\n* [[{{#ifexist: " .. basic_suf .. "|" .. basic_suf .. "|" .. basic .. "}}]] – " | |||
.. (s == 2 | |||
and "uses Stein–Zimmerman quarter tone accidentals." | |||
or "the classic version of this template that shows arrows attached to standard accidentals.") | |||
else | |||
out_str = out_str | |||
.. "\n{{#ifexist: " .. basic .. "a|* [[" .. basic .. "a]] – " | |||
.. "an alternate version of this template that shows separate arrows.|}}" | |||
.. "\n{{#ifexist: " .. basic .. "-extended|* [[" .. basic .. "-extended]] – " | |||
.. "an alternate version of this template that includes " | |||
if s == 3 then | |||
out_str = out_str .. "double" | |||
elseif s == 5 then | |||
out_str = out_str .. "triple" | |||
end | |||
out_str = out_str .. " arrows.|}}" | |||
end | |||
end | end | ||
end | end | ||