Module:InfoboxLocation

local p = {} local infobox = require("Module:Infobox") local utilsCode = require("Module:UtilsCode") local utilsString = require("Module:UtilsString")

local FIELDS = {}

function p._Main(frame) local args = frame:getParent.args return p.Main(args) end

function p.Main(args) local fields = FIELDS for key, field in ipairs(fields) do		if not utilsCode.IsEmpty(args[field["parameter"]]) then field["content"] = args[field["parameter"]] end end return infobox.CreateInfobox(args["name"], {content = args["image"], caption = args["caption"]}, fields) end

return p