Différences entre les versions de « Module:Infobox »

Aller à la navigation Aller à la recherche
96 octets supprimés ,  11 août 2022 à 19:58
aucun résumé de modification
Ligne 71 : Ligne 71 :


local function infoboxData(data, label, default)
local function infoboxData(data, label, default)
mw.log(data)
local result
local result
if data or default then
if data or default then
Ligne 100 : Ligne 99 :
if buildingData or args['image'] then
if buildingData or args['image'] then
result = mainBox(building)
result = mainBox(building)
mw.log(tostring(result))
if args['image'] then
if args['image'] then
result:node(infoboxImage(args['image'], args['caption']))
result:node(infoboxImage(args['image'], args['caption']))
end
end
mw.log(tostring(result))
 
--Production group
--Production group
local workers = buildingData.workers
local workers = buildingData.workers
Ligne 127 : Ligne 125 :
for k, v in ipairs(production) do
for k, v in ipairs(production) do
result:node(v)
result:node(v)
mw.log(tostring(result))
end
end
end
end
1 124

modifications

Menu de navigation