Module:Infobox RT: Difference between revisions

does function order matter
No edit summary
Line 50: Line 50:
})
})


-- autocalculating ploidacot (wip)
-- 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",
"(" .. limit1 .. "-[[odd limit]]) " .. acc1 .. "c; <br> (" .. limit2 .. "-[[odd limit]]) " .. acc2 .. "c"
string1
})
})


table.insert(data, {
table.insert(data, {
"Target scale size",
"Target scale size",
"(" .. limit1 .. "-[[odd limit]]) " .. comp1 .. " notes; <br> (" .. limit2 .. "-[[odd limit]]) " .. comp2 .. " notes"
string2
})
})