Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
168 bytes removed ,  16:34, 26 October 2022
no edit summary
Line 145: Line 145:
if requirementData then
if requirementData then
for k, v in ipairs(requirementData) do  
for k, v in ipairs(requirementData) do  
requirements = requirements .. i.icon(v, nil, nil, string.gsub(v,  
requirements = requirements .. i.icon(v, nil, nil,  
string.sub(v,1,1), string.upper(string.sub(v,1,1)), 1),
com.firstUpper({v}), 'en')
'en')
if k ~= #requirementData then
if k ~= #requirementData then
requirements = requirements .. '<br />'
requirements = requirements .. '<br />'
Line 162: Line 161:
if productData then
if productData then
for k, v in ipairs(productData) do
for k, v in ipairs(productData) do
products = products .. i.icon(v, nil, nil, string.gsub(v,
products = products .. i.icon(v, nil, nil, com.firstUpper({v}),
string.sub(v,1,1), string.upper(string.sub(v,1,1)), 1),
'en')
'en')
if k ~= #productData then
if k ~= #productData then
Line 192: Line 190:
local conList = {}
local conList = {}
for k, v in pairs(construction) do
for k, v in pairs(construction) do
local conLabel = i.icon(k, nil, nil, string.gsub(k,
local conLabel = i.icon(k, nil, nil, com.firstUpper({k}),
string.sub(k,1,1), string.upper(string.sub(k,1,1)), 1),
'en')
'en')
table.insert(conList, infoboxData(v, conLabel))
table.insert(conList, infoboxData(v, conLabel))

Navigation menu