Module:Infobox regtemp: Difference between revisions
starting to automate ploidacot |
No edit summary |
||
| Line 34: | Line 34: | ||
-- processed mapping | -- processed mapping | ||
local map = {} | local map = {} | ||
local lowermap = {} | |||
table.insert(data, { | table.insert(data, { | ||
"Subgroups", | "Subgroups", | ||
| Line 68: | Line 69: | ||
end | end | ||
local ploid = map[1] | local ploid = map[1] | ||
for num in mapping:gmatch("(%d+) ") do | |||
table.insert(lowermap, num) | |||
end | |||
if subgroup[3] == "3" then | |||
local cot = lowermap[2] | |||
end | |||
table.insert(data, { | table.insert(data, { | ||
| Line 82: | Line 91: | ||
"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 | |||
}) | }) | ||