Module:Mapframe KML

MyWikiBiz, Author Your Legacy — Saturday November 30, 2024
Revision as of 04:45, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:Mapframe KML/doc

local p = {}

function p.main(frame)
	local args = frame.args
	if args['KML'] then
		args['raw'] = frame:expandTemplate{title = 'Wikipedia:Map data/Wikipedia KML/' .. args['KML']}
	else
		args['raw'] = frame:expandTemplate{title = 'Wikipedia:Map data/Wikipedia KML/' .. frame:getParent():getTitle()}
	end
	
	return frame:preprocess(require('Module:Mapframe')._main(args))
end

return p