Module:Sandbox/Macroft2

local p ={}

local args local map local tableArg local borderCoords local mapSize local defaultMarkerSize local defaultMarkerColor local defaulatMarkerIcon local defaultMarkerOpacity local text local float local markerNameTable = {} local areArgsParsed = false

function p.maplocations(f) p.parseArgs(f) ml = require('Module:Sandbox/Macroft') return ml.generateMapDiv(map                       ,borderCoords.t                         ,borderCoords.r                        ,borderCoords.b                        ,borderCoords.l                        ,mapSize                        ,defaultMarkerSize                        ,defaultMarkercolor                        ,defaultMarkerIcon                        ,defaultMarkerOpacity ) end function p.parseArgs (f) if areArgsParsed then return end args = require('Module:ProcessArgs').merge(true) map = args.map or 'Map The Island.jpg' tableArg = 'class="wikitable"' borderCoords = { t = args.borderCoordT or 100, r = args.borderCoordR or 100, b = args.borderCoordB or 0, l = args.borderCoordL or 0} mapSize = args.mapsize or 300 defaultMarkerSize = args.markersize or 10 defaultMarkerColor = args.markercolor or '#f40' defaulatMarkerIcon = args.markericon or '' defaultMarkerOpacity = args.opacity or 1 text = args.text or '' float = args.float or '' areArgsParsed = true end

return p