Module:MOS in EDO allperiods: Difference between revisions
ArrowHead294 (talk | contribs) m Undid revision 183553 by ArrowHead294 (talk) Tag: Undo |
ArrowHead294 (talk | contribs) mNo edit summary Tag: Undo |
||
| Line 63: | Line 63: | ||
-- TODO: Show period/note/subset limits if applicable | -- TODO: Show period/note/subset limits if applicable | ||
local result = "" | local result = "" | ||
result = result .. string.format("This page lists all [[moment of symmetry]] scales in [[%iedo]].\ | result = result .. string.format("This page lists all [[moment of symmetry]] scales in [[%iedo]].\n__TOC__\n", edo) | ||
-- Call a for loop that produces a set of tables for each period count | -- Call a for loop that produces a set of tables for each period count | ||
| Line 84: | Line 84: | ||
-- Add a section header | -- Add a section header | ||
if number_of_periods == 1 then | if number_of_periods == 1 then | ||
result = result .. " | result = result .. "<h2>Single-period MOS scales</h2>\n" | ||
else | else | ||
-- If the L2 header wasn't written yet, write that, followed by | -- If the L2 header wasn't written yet, write that, followed by | ||
| Line 90: | Line 90: | ||
-- header. | -- header. | ||
if not multi_period_header_written then | if not multi_period_header_written then | ||
result = result .. string.format(" | result = result .. string.format("<h2>Multi-period MOS scales</h2>\n") | ||
multi_period_header_written = true | multi_period_header_written = true | ||
end | end | ||
result = result .. string.format(" | result = result .. string.format("<h3>%i periods</h3\n", number_of_periods) | ||
end | end | ||