606
modifications
m |
m |
||
| Ligne 15 : | Ligne 15 : | ||
end | end | ||
local function addImage(box, image | local function addImage(box, image, defaultImage) | ||
if not image and not defaultImage then | if not image and not defaultImage then | ||
box:wikitext('[[Category:Image Needed]]') | box:wikitext('[[Category:Image Needed]]') | ||
| Ligne 28 : | Ligne 28 : | ||
imageDiv:wikitext(fileWiki) | imageDiv:wikitext(fileWiki) | ||
box:node(imageDiv) | box:node(imageDiv) | ||
| Ligne 121 : | Ligne 115 : | ||
local infobox = createInfobox(building) | local infobox = createInfobox(building) | ||
addImage(infobox, args['image | addImage(infobox, args['image'], buildingData and buildingData.defaultImage, buildingData and buildingData.defaultCaption) | ||
if buildingData then | if buildingData then | ||
modifications