Module:Infobox regtemp: Difference between revisions

Set straight subgroup interpretation
Make mos scales compulsory
Line 149: Line 149:
})
})


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


table.insert(data, {
table.insert(data, {
Line 161: Line 159:
})
})
if pergen ~= "0" then
if u.value_provided (pergen) then
table.insert(data, {
table.insert(data, {
"Pergen",
"Pergen",
Line 168: Line 166:
end
end


if colorname ~= "0" then
if u.value_provided (colorname) then
table.insert(data, {
table.insert(data, {
"Color name",
"Color name",
Line 186: Line 184:
local string1 = limit1 .. limit_text .. ": " .. acc1 .. "{{c}}"
local string1 = limit1 .. limit_text .. ": " .. acc1 .. "{{c}}"
local string2 = limit1 .. limit_text .. ": " .. comp1 .. " notes"
local string2 = limit1 .. limit_text .. ": " .. comp1 .. " notes"
if limit2 ~= "0" then
if u.value_provided (limit2) then
string1 = string1 .. "; <br>" .. limit2 .. limit_text .. ": " .. acc2 .. "{{c}}"
string1 = string1 .. "; <br>" .. limit2 .. limit_text .. ": " .. acc2 .. "{{c}}"
string2 = string2 .. "; <br>" .. limit2 .. limit_text .. ": " .. comp2 .. " notes"
string2 = string2 .. "; <br>" .. limit2 .. limit_text .. ": " .. comp2 .. " notes"