Module:MergedMapGetPushPin/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Module:MergedMapGetPushPin. It may contain usage information, categories and other content that is not part of the original module page. |
This module returns Pushpin map or location map of its first argument, and other arguments provide settings, see example below.
Usage
[edit source]local pushpinArgs = {}
local pushpinMapName = mw.ustring.gsub(mapname, '^%s*(.-)%s*$', '%1')
pushpinArgs[1] = mapname
pushpinArgs['alt']= args.alt
pushpinArgs['coordinates']= args.coordinates
pushpinArgs['label']= args.label
pushpinArgs['relief']= args.relief or 'yes'
pushpinArgs['float']= 'center'
pushpinArgs['width']= 270
frame.args = pushpinArgs
maps[#maps + 1] = '<div style= "text-align: left;">' .. pushpinModule.main(frame, pushpinArgs) .. '</div>'