Module:Q-odd-limit intervals: Difference between revisions

use utils.table_contains and utils.value_provided where possible
ArrowHead294 (talk | contribs)
No edit summary
Line 176: Line 176:
local output_0 = "{| class=\"wikitable center-all mw-collapsible mw-collapsed sortable\"\n"
local output_0 = "{| class=\"wikitable center-all mw-collapsible mw-collapsed sortable\"\n"
local output_1 = "|+ style=\"white-space: nowrap;\" | "
local output_1 = "|+ style=\"white-space: nowrap;\" | "
local output_2 = "\n" ..
local output_2 = "|-\n" ..
"|-\n" ..
"! class=\"unsortable\" | Interval and complement !! Error (abs, [[Cent|¢]]) !! Error (rel, [[Relative cent|%]])\n"
"! class=\"unsortable\" | Interval and complement !! Error (abs, [[Cent|¢]]) !! Error (rel, [[Relative cent|%]])\n"
local output_3 = "\n|}"
local output_3 = "\n|}"
Line 188: Line 187:
out_str_val = out_str_val .. " (patent val mapping)"
out_str_val = out_str_val .. " (patent val mapping)"
end
end
out_str_direct = out_str_direct .. output_2 .. table.concat(t_body_direct, "\n") .. output_3
out_str_direct = out_str_direct .. "\n" .. output_2 .. table.concat(t_body_direct, "\n") .. output_3
out_str_val = out_str_val .. output_2 .. table.concat(t_body_val, "\n") .. output_3
out_str_val = out_str_val .. "\n" .. output_2 .. table.concat(t_body_val, "\n") .. output_3
if approx_t == "direct" then
if approx_t == "direct" then