此模块的文档可以在模块:Home/infobox/doc创建

local Util = require('Module:Util')
 
return function(frame)
	local obj = frame:getParent().args
	obj = require('Module:ParseData').one(obj)
	local typ = tonumber(obj[2])
	local picName = mw.huiji.db.findOne{_id = 'Data:IconName.json'}.buildingSprites
	obj.pic = picName[obj[98] + 1]
	obj.access = require('Module:Home/access')[tonumber(obj.id)]
	return mw.getCurrentFrame():expandTemplate{ title = typ==1 and 'Infobox建筑' or 'Infobox资源点', args = obj._source}
end
avatar