Module:MOS intervals: Difference between revisions

Ganaram inukshuk (talk | contribs)
added missing mos-abbrev
ArrowHead294 (talk | contribs)
m +Debugging option
Line 34: Line 34:
-- Create table title
-- Create table title
result = result
result = result
.. '|+ style="font-size: 105%; white-space: nowrap;" | Intervals of ' .. scale_sig .. '\n'
.. '|+ style="font-size: 105%; white-space: nowrap;" | ' .. string.format('Intervals of %s', scale_sig) .. '\n'
.. '|-\n'
.. '|-\n'
Line 114: Line 114:
args["MOS Abbrev"] = tamnams.verify_abbrev(input_mos, args["MOS Abbrev"])
args["MOS Abbrev"] = tamnams.verify_abbrev(input_mos, args["MOS Abbrev"])


return p._mos_intervals(args)
local out_str = p._mos_intervals(args)
local debugg = frame.args["debug"]
return frame:preprocess(debugg == "true" and "<pre>" .. out_str .. "</pre>" or out_str)
end
end


return p
return p