Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
21 bytes removed ,  18:06, 11 August 2022
no edit summary
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]
mw.log(buildingData)
 
if buildingData or args['image'] then
if buildingData or args['image'] then
local result = mainbox(building)
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']))

Navigation menu