Module:Sharpness documentation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 5: Line 5:
local in_str = frame.args["input"]
local in_str = frame.args["input"]
local note = frame.args["note"] or ""
local note = frame.args["note"] or ""
local aux_note = frame.args["auxnote"] or ""
local notation = frame.args["notation"] or ""
local notation = frame.args["notation"] or ""


Line 73: Line 74:
end
end


-- display custom note
-- display custom notes
if note then
if note or aux_note then
out_str = out_str .. " " .. note
out_str = out_str .. " " .. note ..(aux_note and "\n\n" .. aux_note or "")
end
end


-- Display the note about supersets of 12edo for sharpness-1 and above and
-- Display the note about supersets of 12edo for sharpness-1 and above and set the edo number for supersets of 12edo
-- set the edo number for supersets of 12edo
if s >= 1 then
if s >= 1 then
local n_edo = s * 12
local n_edo = s * 12
Line 96: Line 96:
end
end


-- Display the "see also" section for sharpness-2 and above
-- Display a "see also" section for sharpness-2 and above
if s >= 2 or s <= -2 then
if s >= 2 or s <= -2 then
local basic = "Template:Sharpness-" .. typ .. value
local basic = "Template:Sharpness-" .. typ .. value