Module:Infobox regtemp: Difference between revisions
No edit summary |
No edit summary |
||
| Line 30: | Line 30: | ||
local acc2 = frame.args["acc2"] | local acc2 = frame.args["acc2"] | ||
local | local data = {} | ||
table.insert( | |||
-- processed mapping | |||
local map = {} | |||
table.insert(data, { | |||
"Subgroups", | "Subgroups", | ||
subgroup | subgroup | ||
}) | }) | ||
table.insert( | table.insert(data, { | ||
"Comma basis", | "Comma basis", | ||
basis | basis | ||
}) | }) | ||
table.insert( | table.insert(data, { | ||
"Edo join", | "Edo join", | ||
"[[" .. edo_first .. "edo|" .. edo_first .. "]] & [[" .. edo_second .. "edo|" .. edo_second .. "]]" | "[[" .. edo_first .. "edo|" .. edo_first .. "]] & [[" .. edo_second .. "edo|" .. edo_second .. "]]" | ||
}) | }) | ||
table.insert( | table.insert(data, { | ||
"Generator ([[" .. method .. "]])", | "Generator ([[" .. method .. "]])", | ||
"~" .. genfrac .. " = " .. tuning .. "c" | "~" .. genfrac .. " = " .. tuning .. "c" | ||
}) | }) | ||
table.insert( | table.insert(data, { | ||
"MOS scales", | "MOS scales", | ||
mos | mos | ||
}) | }) | ||
table.insert( | table.insert(data, { | ||
"Reduced mapping", | "Reduced mapping", | ||
"<" .. mapping .. "]" | "<" .. mapping .. "]" | ||
}) | }) | ||
table.insert( | for num in mapping:gmatch("; ") do | ||
table.insert(map, num) | |||
end | |||
table.insert(data, { | |||
"Ploidacot", | "Ploidacot", | ||
ploidacot | ploidacot | ||
}) | }) | ||
table.insert( | table.insert(data, { | ||
"Minmax error", | "Minmax error", | ||
"(" .. limit1 .. "-[[odd limit]]) " .. acc1 .. "c; <br> (" .. limit2 .. "-[[odd limit]]) " .. acc2 .. "c" | "(" .. limit1 .. "-[[odd limit]]) " .. acc1 .. "c; <br> (" .. limit2 .. "-[[odd limit]]) " .. acc2 .. "c" | ||
}) | }) | ||
table.insert( | table.insert(data, { | ||
"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, { | |||
"?", | |||
map | |||
}) | }) | ||
local result = infobox.build( | local result = infobox.build( | ||
name, | name, | ||
data | |||
) | ) | ||