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-3 and above
-- display the "see also" section for sharpness-2 and above
if (extension == "a" or extension == "A") and s >= 2 then
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"
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
.. "\n* [[{{#ifexist: " .. basic_suf .. "|" .. basic_suf .. "|" .. basic .. "}}]] "
.. "* [[Alternative symbols for ups and downs notation]]"
.. "&ndash; the classic version of this template that shows arrows attached to standard accidentals."
.. "\n* [[{{#ifexist: " .. basic_suf .. "|" .. basic_suf .. "|" .. basic .. "}}]] &ndash; "
.. (s == 2
and "uses Stein&ndash;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]] &ndash; "
.. "an alternate version of this template that shows separate arrows.|}}"
.. "\n{{#ifexist: " .. basic .. "-extended|* [[" .. basic .. "-extended]] &ndash; "
.. "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