Module:Sharpness documentation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 92: Line 92:
-- display the "see also" section for sharpness-3 and above
-- display the "see also" section for sharpness-3 and above
if (extension == "a" or extension == "A") and s >= 2 then
if (extension == "a" or extension == "A") and s >= 2 then
local basic = "Template:Sharpness-" .. typ .. value
.. (suffix == "" and "" or "-" .. suffix)
out_str = out_str .. "\n\n<h3>See also</h3>\n"
out_str = out_str .. "\n\n<h3>See also</h3>\n"
.. "* [[Alternative symbols for ups and downs notation]]"
.. "* [[Alternative symbols for ups and downs notation]]"
if s >= 3 then
out_str = out_str .. "\n{{#ifexist: " .. basic .. "|* [[" .. basic .. "]] "
local basic = "Template:Sharpness-" .. typ .. value .. "-" .. suffix
.. "&ndash; the classic version of this template that shows arrows attached to standard accidentals.|}}"
out_str = out_str .. "\n{{#ifexist: " .. basic .. "|* [[" .. basic .. "]] "
.. "&ndash; the classic version of this template that shows arrows attached to accidentals.|}}"
end
end
end
end
end