1,124
edits
Line 86: | Line 86: | ||
local building = com.modulePagename(args['title']) | local building = com.modulePagename(args['title']) | ||
local buildingData = require('Module:Buildings')[building] | local buildingData = require('Module:Buildings')[building] | ||
if buildingData or args['image'] then | if buildingData or args['image'] then | ||
local result = | local result = mainBox(building) | ||
if args['image'] then | if args['image'] then | ||
result:node(infoboxImage(args['image'], args['caption'])) | result:node(infoboxImage(args['image'], args['caption'])) |