Module:MOS intervals: Difference between revisions
Allow for using mosprefix/mosabbrev that's entered through the tempalte |
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 | .. "! Generic" | ||
.. "!! Specific | .. "!! Specific" | ||
.. "!! Abbrev. | .. "!! 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", | .. 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 | ||
return result | return result | ||
end | end | ||