Module:Map

-- This is the main Lua module for Template:Map for Wiki Map local p = {}

-- Used to defer processing parts of an inner-template to an outer-template. This -- is useful for letting Map process the map extents, or other settings, on which -- Map/Note is dependant. Map/Note would normally be called first as a parameter -- to the Map template via the 'notes' parameter, before extents could be set. function p.preprocess(frame) local result = mw.text.unstripNoWiki(frame.args[1] or '') result = frame:preprocess(result) or "" return result end

function p.preprocessCode(frame) local result = mw.text.unstripNoWiki(frame.args[1] or '') result = frame:preprocess(result) or "" result = ""..result.." " return result end

return p