Module:Infobox RT: Difference between revisions

No edit summary
No edit summary
Line 19: Line 19:
local genfrac = frame.args["genfrac"]
local genfrac = frame.args["genfrac"]
local method = frame.args["method"]
local method = frame.args["method"]
local mapping = frame.args["mapping"]
local mos = frame.args["mosses"]
local mos = frame.args["mosses"]
local mapping = frame.args["mapping"]
local ploidacot = frame.args["ploidacot"]
local ploidacot = frame.args["ploidacot"]
local pergen = frame.args["pergen"]
local limit1 = frame.args["lim1"]
local limit1 = frame.args["lim1"]
local comp1 = frame.args["comp1"]
local comp1 = frame.args["comp1"]
Line 107: Line 109:
shear = -1
shear = -1
end
end
end
suffix = p.num2greeklet(tostring(shear)) .. p.num2greek(tostring(cot), "cot") .. suffix
if ploid ~= "1" then
suffix = p.num2greek(ploid,"ploid") .. "ploid " .. suffix
end
end
suffix = p.num2greek(ploid,"ploid") .. "ploid " .. p.num2greeklet(tostring(shear)) .. p.num2greek(tostring(cot), "cot") .. suffix
if ploidacot == "0" then
if ploidacot == "cleft" then
ploidacot = suffix
ploidacot = suffix
end
end
Line 125: Line 131:
})
})


table.insert(data, {
if mos ~= "0" then
"MOS scales",
table.insert(data, {
mos
"MOS scales",
})
mos
})
end


table.insert(data, {
table.insert(data, {
Line 134: Line 142:
ploidacot
ploidacot
})
})
if pergen ~= "0" then
table.insert(data, {
"Pergen",
pergen
})
end
-- error and stuff
-- error and stuff