Module:MOS intervals: Difference between revisions

Ganaram inukshuk (talk | contribs)
Mos abbrev param added
Ganaram inukshuk (talk | contribs)
Converted abbr tooltips to footnotes
Line 8: Line 8:


-- TODO:
-- TODO:
-- - Require both a mos prefix and abbrev
-- - Convert abbr tooltips to footnotes


-- Main function; to be called by wrapper
-- Main function; to be called by wrapper
Line 36: Line 36:
result = result .. '|+ Intervals of ' .. scale_sig .. '\n'
result = result .. '|+ Intervals of ' .. scale_sig .. '\n'
result = result .. '! colspan="3" | Intervals\n'
result = result .. '! colspan="3" | Intervals\n'
result = result .. '! rowspan="2" | <abbr title="The number of large and small steps the interval spans.">Steps subtended</abbr>\n'
result = result .. '! rowspan="2" | Steps subtended<ref name="mos-intervals-subtension">The number of large and small steps spanned by the interval.</ref>\n'
result = result .. '! rowspan="2" | Range in cents\n'
result = result .. '! rowspan="2" | Range in cents\n'
result = result .. '|-\n'
result = result .. '|-\n'
result = result .. '! <abbr title="A mos interval denoted solely by the number of steps it subtends.">Generic</abbr>\n'
result = result .. '! Generic<ref name="mos-intervals-generic">A generic interval denotes how many mossteps an interval spans.</ref>\n'
result = result .. '! <abbr title="A mos interval denoted by the large and small steps it subtends. More large steps makes it major or augmented; more small steps makes it minor or diminished.">Specific</abbr>\n'
result = result .. '! Specific<ref name="mos-intervals-specific">A specific interval denotes the quality of the interval based on how many large and small steps it has.</ref>\n'
result = result .. '! <abbr title="The abbreviated form of the interval. The abbreviation can be further shortened to &#39;ms&#39; if context allows.">Abbrev.</abbr>\n'
result = result .. '! Abbrev.<ref name="mos-intervals-abbr">Abbreviations can be further shortened to &#39;ms&#39; if context allows.</ref>\n'
-- Write each row
-- Write each row
Line 92: Line 92:
result = result .. "|}"
result = result .. "|}"
result = result .. "<references />"
return result
return result