Module:MergedMapGetPushPin/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Hooman Mallahzadeh at 17:55, 6 December 2025 (Created page with '<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> This module returns Pushpin map or location map of its first argument, and other arguments provide settings, see example below. == Usage == <syntaxhighlight> local pushpinArgs = {} local pushpinMapName = mw.ustring.gsub(mapname, '^%s*(.-)%s*$', '%1') pushpinArgs[1] = mapname pushpinArgs['alt']= args.alt pushpinArgs['coordinates']= args....'). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This module returns Pushpin map or location map of its first argument, and other arguments provide settings, see example below.

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>'