Module:MOS: Difference between revisions
add step_count since ive been turning to "step count" rather than "equave step count" (not deprecated yet) |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 88: | Line 88: | ||
suffix = "⟨" .. rat.as_ratio(mos.equave):lower() .. "⟩" | suffix = "⟨" .. rat.as_ratio(mos.equave):lower() .. "⟩" | ||
end | end | ||
return | return mos.nL .. "L" .. (use_nbsp and " " or " ") .. mos.ns .. "s" .. suffix | ||
else | else | ||
return | return math.max(mos.nL, mos.ns) .. p.et_suffix(mos) | ||
end | end | ||
end | end | ||
| Line 106: | Line 106: | ||
suffix = (use_nbsp and " " or " ") .. string.format("(%s-equivalent)", rat.as_ratio(mos.equave):lower()) | suffix = (use_nbsp and " " or " ") .. string.format("(%s-equivalent)", rat.as_ratio(mos.equave):lower()) | ||
end | end | ||
return | return mos.nL .. "L" .. (use_nbsp and " " or " ") .. mos.ns .. "s" .. suffix | ||
else | else | ||
return | return math.max(mos.nL, mos.ns) .. p.et_suffix(mos) | ||
end | end | ||
end | end | ||
| Line 121: | Line 121: | ||
return string.format("[[%s]]", link) | return string.format("[[%s]]", link) | ||
else | else | ||
return string.format("[[%s | %s]]", link, text) | return string.format("[[%s|%s]]", link, text) | ||
end | end | ||
end | end | ||