Module:Infobox regtemp: Difference between revisions

Lériendil (talk | contribs)
No edit summary
Lériendil (talk | contribs)
did more work
Line 65: Line 65:
})
})


-- autocalculating ploidacot (wip)
for num in mapping:gmatch("(%d+); ") do
for num in mapping:gmatch("(%d+); ") do
table.insert(map, num)
table.insert(map, num)
Line 75: Line 76:
local cot = lowermap[1]
local cot = lowermap[1]
if tonumber(string.char(string.byte(subgroup, 3))) ~= 3 then
if tonumber(string.char(string.byte(subgroup, 3))) == 5 then
local cot = lowermap[2]
if tonumber(string.char(string.byte(subgroup, 1))) == 3 then
local cot = lowermap[2]
end
end
end


Line 92: Line 95:
"Target scale size",
"Target scale size",
"(" .. limit1 .. "-[[odd limit]]) " .. comp1 .. " notes; <br> (" .. limit2 .. "-[[odd limit]]) " .. comp2 .. " notes"
"(" .. limit1 .. "-[[odd limit]]) " .. comp1 .. " notes; <br> (" .. limit2 .. "-[[odd limit]]) " .. comp2 .. " notes"
})
table.insert(data, {
"?",
cot
})
})