Module:Q-odd-limit intervals: Difference between revisions
Undo visible visual downgrade Tag: Undo |
Refactoring |
||
| Line 174: | Line 174: | ||
end | end | ||
local | local t_head_0 = "{| class=\"wikitable center-all mw-collapsible mw-collapsed sortable\"\n" | ||
.. "|+ style=\"white-space: nowrap;\" | " | |||
local | local t_head_1 = "|-\n" | ||
.. "! class=\"unsortable\" | Interval and complement !! Error (abs, [[Cent|¢]]) !! Error (rel, [[Relative cent|%]])\n" | |||
local | local t_foot = "\n|}" | ||
if tag ~= "none" then | if tag ~= "none" then | ||
tag_direct = " (direct approximation, even if inconsistent)" | |||
tag_val = " (patent val mapping)" | |||
else | |||
tag_direct = "" | |||
tag_val = "" | |||
end | end | ||
local out_str_direct = t_head_0 .. t_title .. tag_direct .. "\n" .. t_head_1 .. table.concat(t_body_direct, "\n") .. t_foot | |||
local out_str_val = t_head_0 .. t_title .. tag_val .. "\n" .. t_head_1 .. table.concat(t_body_val, "\n") .. t_foot | |||
if approx_t == "direct" then | if approx_t == "direct" then | ||
return out_str_direct | return out_str_direct | ||