Module:Q-odd-limit intervals: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 120: | Line 120: | ||
local errlist_val = {} | local errlist_val = {} | ||
local val = {} | local val = {} | ||
local bgclr | local bgclr, result | ||
for i = 1, #subgroup do | for i = 1, #subgroup do | ||
| Line 199: | Line 199: | ||
local t_head_1 = "|-\n" | local t_head_1 = "|-\n" | ||
.. "! class=\"unsortable\" | Interval and complement" | .. "! class=\"unsortable\" | Interval and complement" | ||
.. " !! Error (abs, [[Cent| | .. " !! Error (abs, [[Cent|¢]])" | ||
.. " !! Error (rel, [[Relative cent|%]])\n" | .. " !! Error (rel, [[Relative cent|%]])\n" | ||
local t_foot = "\n|}" | local t_foot = "\n|}" | ||
| Line 212: | Line 212: | ||
if approx_t == "direct" then | if approx_t == "direct" then | ||
result = t_head_0 .. t_title .. tag_direct .. "\n" .. t_head_1 .. table.concat(t_body_direct, "\n") .. t_foot | |||
elseif approx_t == "val" then | elseif approx_t == "val" then | ||
result = t_head_0 .. t_title .. tag_val .. "\n" .. t_head_1 .. table.concat(t_body_val, "\n") .. t_foot | |||
else | else | ||
result = "" | |||
end | end | ||
return result | |||
end | end | ||