Module:MOS in EDO allperiods: Difference between revisions
m Making sure n-period mosses for 2n-edo never show |
Added lead section, as suggested by fredg999 |
||
| Line 134: | Line 134: | ||
starting_generator = starting_generator + 1 | starting_generator = starting_generator + 1 | ||
end | end | ||
-- Lead section | |||
result = result .. string.format("This page lists all [[moment of symmetry]] scales in [[%iedo]].\n", edo) | |||
-- Add a section header | -- Add a section header | ||
if number_of_periods == 1 then | if number_of_periods == 1 then | ||
result = result .. string.format("== Single-period MOS scales ==\n") | result = result .. string.format("== Single-period MOS scales ==\n") | ||
result = result .. string.format("This is an automatically generated listing of all single-period moment of symmetry scales that can be found in %iedo, visualized as a rectangular [[horogram]] for each pair of generators. [[TAMNAMS]] names for these scales are provided wherever applicable.\n", edo) | --result = result .. string.format("This is an automatically generated listing of all single-period moment of symmetry scales that can be found in %iedo, visualized as a rectangular [[horogram]] for each pair of generators. [[TAMNAMS]] names for these scales are provided wherever applicable.\n", edo) | ||
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 146: | Line 149: | ||
result = result .. string.format("== Multi-period MOS scales ==\n") | result = result .. string.format("== Multi-period MOS scales ==\n") | ||
result = result .. string.format("This is an automatically generated listing of all multi-period moment of symmetry scales that can be found in %iedo, visualized as a rectangular [[horogram]] for each pair of generators. [[TAMNAMS]] names for these scales are provided wherever applicable.\n", edo) | result = result .. string.format("This is an automatically generated listing of all multi-period moment of symmetry scales that can be found in %iedo, visualized as a rectangular [[horogram]] for each pair of generators. [[TAMNAMS]] names for these scales are provided wherever applicable.\n", edo) | ||
result = result .. string.format("=== %i periods ===\n", number_of_periods) | --result = result .. string.format("=== %i periods ===\n", number_of_periods) | ||
multi_period_header_written = true | multi_period_header_written = true | ||
else | else | ||