Module:MOS mode degrees: Difference between revisions
m comments; cleared todo |
m Use title case for the title row. Wrap the title row to save a little horizontal space. |
||
| Line 138: | Line 138: | ||
result = result | result = result | ||
.. "! rowspan=\"2\" | UDP " .. (is_true_mos and "" or " and alterations ") -- If modmos, add "and alterations" string | .. "! rowspan=\"2\" | UDP " .. (is_true_mos and "" or " and alterations ") -- If modmos, add "and alterations" string | ||
.. "!! rowspan=\"2\" | Rotational Order " | .. "!! rowspan=\"2\" | Rotational<br>Order " | ||
.. "!! rowspan=\"2\" | Step | .. "!! rowspan=\"2\" | Step<br>Pattern" | ||
-- Add mode names if present | -- Add mode names if present | ||
local mode_names_given = mode_names ~= nil and #mode_names == #step_patterns | local mode_names_given = mode_names ~= nil and #mode_names == #step_patterns | ||
if mode_names_given then | if mode_names_given then | ||
result = result .. " !! rowspan=\"2\" class=\"unsortable\" | Mode | result = result .. " !! rowspan=\"2\" class=\"unsortable\" | Mode<br>Names" | ||
end | end | ||
-- Add header for scale degrees | -- Add header for scale degrees | ||
result = result .. string.format(" !! colspan=\"%d\" class=\"unsortable\" | Scale | result = result .. string.format(" !! colspan=\"%d\" class=\"unsortable\" | Scale Degree (%sdegree)\n", #step_matrices[1], mos_prefix) | ||
-- Add second row of headers | -- Add second row of headers | ||