1,124
edits
Line 84: | Line 84: | ||
function p.building(frame) | function p.building(frame) | ||
local args = a.getArgs(frame) | local args = a.getArgs(frame) | ||
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) |