Module:Infobox RT: Difference between revisions
does function order matter |
No edit summary |
||
Line 50: | Line 50: | ||
}) | }) | ||
-- autocalculating ploidacot | -- autocalculating ploidacot | ||
for num in mapping:gmatch("(%d+); ") do | for num in mapping:gmatch("(%d+); ") do | ||
table.insert(map, num) | table.insert(map, num) | ||
Line 134: | Line 134: | ||
ploidacot | ploidacot | ||
}) | }) | ||
-- error and stuff | |||
local oddlim | |||
if equave_letter == "o" then | |||
oddlim = "-[[odd limit]]) " | |||
elseif equave_letter == "t" then | |||
oddlim = "-[[throdd limit]]) " | |||
else | |||
oddlim = "-[[integer limit]]) " | |||
end | |||
local string1 = "(" .. limit1 .. oddlim .. acc1 .. "c" | |||
local string2 = "(" .. limit1 .. oddlim .. comp1 .. " notes" | |||
if limit2 ~= "0" then | |||
string1 = string1 .. "; <br> (" .. limit2 .. oddlim .. acc2 .. "c" | |||
string2 = string2 .. "; <br> (" .. limit2 .. oddlim .. comp2 .. " notes" | |||
end | |||
table.insert(data, { | table.insert(data, { | ||
"Minmax error", | "Minmax error", | ||
string1 | |||
}) | }) | ||
table.insert(data, { | table.insert(data, { | ||
"Target scale size", | "Target scale size", | ||
string2 | |||
}) | }) | ||