Module:MOS intervals: Difference between revisions

Ganaram inukshuk (talk | contribs)
Allow for using mosprefix/mosabbrev that's entered through the tempalte
Ganaram inukshuk (talk | contribs)
Removed footnotes (as they were getting in the way at this point); fixed up period intervals missing custom prefix/abbrev
Line 62: Line 62:
.. "!! rowspan=\"2\" | Min of [[HE]]\n"
.. "!! rowspan=\"2\" | Min of [[HE]]\n"
.. "|-\n" -- Start of second row of header cells
.. "|-\n" -- Start of second row of header cells
.. "! Generic<sup>[[#mosstep-1|[1]]]</sup>"
.. "! Generic"
.. "!! Specific<sup>[[#mosstep-2|[2]]]</sup>"
.. "!! Specific"
.. "!! Abbrev.<sup>[[#mosstep-3|[3]]]</sup>\n"
.. "!! Abbrev.\n"
-- Write each row
-- Write each row
Line 81: Line 81:
result = result .. "|-\n"
result = result .. "|-\n"
.. string.format("| '''%s-%sstep''' ", i - 1, mos_prefix)
.. string.format("| '''%s-%sstep''' ", i - 1, mos_prefix)
.. string.format("|| %s " , tamnams.interval_quality(current_bright_interval, input_mos, "sentence-case"))
.. string.format("|| %s " , tamnams.interval_quality(current_bright_interval, input_mos, "sentence-case", mos_prefix))
.. string.format("|| %s " , tamnams.interval_quality(current_bright_interval, input_mos, "abbrev", "m"))
.. string.format("|| %s " , tamnams.interval_quality(current_bright_interval, input_mos, "abbrev", mos_abbrev))
.. string.format("|| %s " , mos.interval_as_string(current_bright_interval))
.. string.format("|| %s " , mos.interval_as_string(current_bright_interval))
.. string.format("|| %.1f¢ ", cents)
.. string.format("|| %.1f¢ ", cents)
Line 136: Line 136:
result = result .. "\n"
result = result .. "\n"
end
end
 
result = result .. "|}\n"
.. "<span style=\"font-size: 0.75em;\">\n"
.. "# <span id=\"mosstep-1\">Generic intervals are denoted solely by the number of steps they subtend.</span>\n"
.. "# <span id=\"mosstep-2\">Specific intervals denote whether an interval is major, minor, augmented, perfect, or diminished.</span>\n"
.. "# <span id=\"mosstep-3\">Abbreviations can be further shortened to &#39;ms&#39; if context allows.</span>\n"
.. "</span>"
return result
return result
end
end