Module:MOSes by EDO: Difference between revisions
Created copy of Ganaram’s module for subpages rather than full pages Tags: Mobile edit Mobile web edit Advanced mobile edit |
mNo edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
Line 83: | Line 83: | ||
-- Add a section header | -- Add a section header | ||
if number_of_periods == 1 then | if number_of_periods == 1 then | ||
result = result .. " | result = result .. "'''Single-period MOS scales'''\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 89: | Line 89: | ||
-- header. | -- header. | ||
if not multi_period_header_written then | if not multi_period_header_written then | ||
result = result .. string.format(" | result = result .. string.format("'''Multi-period MOS scales'''\n") | ||
result = result .. string.format(" | result = result .. string.format("'''''%i periods'''''\n", number_of_periods) | ||
multi_period_header_written = true | multi_period_header_written = true | ||
else | else | ||
result = result .. string.format(" | result = result .. string.format("'''''%i periods'''''\n", number_of_periods) | ||
end | end | ||
end | end |