Module:Infobox interval region: Difference between revisions
more bugfix Tag: Reverted |
rollback changes; infobox will (hopefully) auto-process jagged arrays Tag: Manual revert |
||
| Line 42: | Line 42: | ||
table.insert(data, { | table.insert(data, { | ||
"Name", | |||
name | |||
}) | }) | ||
if centslower == nil or centslower == "" then | if centslower == nil or centslower == "" then | ||
table.insert(data, { | table.insert(data, { | ||
"Lower bound", | |||
centslowerStrict .. "¢" | |||
}) | }) | ||
else | else | ||
table.insert(data, { | table.insert(data, { | ||
"Lower bound", | |||
centslower .. "¢ – " .. centslowerStrict .. "¢" | |||
}) | }) | ||
end | end | ||
| Line 60: | Line 60: | ||
if centsupper == nil or centsupper == "" then | if centsupper == nil or centsupper == "" then | ||
table.insert(data, { | table.insert(data, { | ||
"Upper bound", | |||
centsupperStrict .. "¢" | |||
}) | }) | ||
else | else | ||
table.insert(data, { | table.insert(data, { | ||
"Upper bound", | |||
centsupperStrict .. "¢ – " .. centsupper .. "¢" | |||
}) | }) | ||
end | end | ||
if moses ~= nil and moses ~= "" then | if moses ~= nil and moses ~= "" then | ||
table.insert(data, { | table.insert(data, { | ||
"Generated [[MOS]]es", | |||
moses | |||
}) | }) | ||
end | end | ||
table.insert(data, { | table.insert(data, { | ||
string.format("<div style=\"margin-top: 0.6em;\"><b>%s</b></div>", "Example [[JI]] intervals") | |||
}) | }) | ||
local jidata = "" | local jidata = "" | ||
| Line 88: | Line 88: | ||
end | end | ||
table.insert(data, { | table.insert(data, { | ||
"Intervals", | |||
jidata | |||
}) | }) | ||
table.insert(data, { | table.insert(data, { | ||
string.format("<div style=\"margin-top: 0.6em;\"><b>%s</b></div>", "Related regions") | |||
}) | }) | ||
if complement ~= nil and complement ~= "" then | if complement ~= nil and complement ~= "" then | ||
table.insert(data, { | table.insert(data, { | ||
"[[Complement]]", | |||
complement | |||
}) | }) | ||
end | end | ||
if subregions ~= nil and subregions ~= "" then | if subregions ~= nil and subregions ~= "" then | ||
table.insert(data, { | table.insert(data, { | ||
"Subregions", | |||
subregions | |||
}) | }) | ||
end | end | ||
if superregions ~= nil and superregions ~= "" then | if superregions ~= nil and superregions ~= "" then | ||
table.insert(data, { | table.insert(data, { | ||
"Superregion(s)", | |||
superregions | |||
}) | }) | ||
end | end | ||