Module:Infobox mapframe: Difference between revisions
Jump to navigation
Jump to search
>Evad37 (return p) |
>Evad37 (_main) |
||
Line 12: | Line 12: | ||
args["frame-width"] = args["frame-width"] or "270" | args["frame-width"] = args["frame-width"] or "270" | ||
local mapframe = mf. | local mapframe = mf._main(args) | ||
return frame:preprocess(mapframe) | return frame:preprocess(mapframe) | ||
end | end | ||
return p | return p |
Revision as of 19:51, 10 May 2018
Documentation for this module may be created at Module:Infobox mapframe/doc
local mf = require('Module:Mapframe/sandbox') local p = {} p.main = function(frame) local parent = frame.getParent(frame) local args = parent.args args.display = args.display or "inline" args.frame = "yes" args.plain = "yes" args["frame-width"] = args["frame-width"] or "270" local mapframe = mf._main(args) return frame:preprocess(mapframe) end return p