Module:MOSes by EDO: Difference between revisions
mNo edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
mNo edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
Line 5: | Line 5: | ||
local p = {} | local p = {} | ||
-- Copied from Ganaram Inukshuk's module on 22 Oct 2024, the only change was changing from 2nd to | -- Copied from Ganaram Inukshuk's module on 22 Oct 2024, the only change was changing from 2nd headings to bold text. | ||
-- Helper function | -- Helper function | ||
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 .. "'''Single-period MOS scales'''\n" | result = result .. "<br/>'''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("'''Multi-period MOS scales'''\n") | result = result .. string.format("<br/>'''Multi-period MOS scales'''\n") | ||
result = result .. string.format("'''''%i periods'''''\n", number_of_periods) | result = result .. string.format("<br/>'''''%i periods'''''\n", number_of_periods) | ||
multi_period_header_written = true | multi_period_header_written = true | ||
else | else | ||
result = result .. string.format("'''''%i periods'''''\n", number_of_periods) | result = result .. string.format("<br/>'''''%i periods'''''\n", number_of_periods) | ||
end | end | ||
end | end |