Coordinates: 51°50′2″N 0°12′6″W / 51.83389°N 0.20167°W / 51.83389; -0.20167

Template:MergedMap/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This Template is designed to merge OpenStreetMap and Pushpin maps and satellite maps and others into one radio button. And its aim is to reduce infobox images, making it more readably and useful. It is aimed to provide the least arguments to it, so no need for providing mapframe-id and coordinates, therefore it works by providing only a mapQuery argument which is its first one.

Firts argument of this template is "mapQuery" which should provide order of maps in the radio button, separated by '#'. For openstreetmap use "OSM", and for pushpin maps use the name of one of maps in Template:Location map/List. Other OSM maps can be added by OSM1 to OSM10 and a full mapframe should be provided for it. For satellite maps, use customMap1 to customMap10 and customMap1Caption1 to customMap1Caption10 for its caption. Other arguments include:

  • mapframe-zoom for zoom of main OSM.
  • mapframe-marker for marker of main OSM
  • mapframe-shape for shape of main OSM
  • mapframe-id for id of main OSM
  • defaultMapFrame = yes/no for setting default showing of OSM

There is no need to provide coordinates and mapframe-id in main articles because they are fetched from Wikidata.

Examples

[edit source]

Infobox settlement

[edit source]
  • BUG: Note the empty row Error creating thumbnail:  Done Default behavior is showing OSM, if you place it at article, then it will be shown
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap/doc
Lua error in Module:Infobox_mapframe at line 197: attempt to index field 'wikibase' (a nil value).
MergedMap/doc

Case 1

[edit source]
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap/doc
Lua error in Module:Infobox_mapframe at line 197: attempt to index field 'wikibase' (a nil value).
Coordinates: Lua error: callParserFunction: function "#coordinates" was not found.
MergedMap/doc
Coordinates: Lua error: callParserFunction: function "#coordinates" was not found.

Case 2

[edit source]
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap/doc
Lua error in Module:Infobox_mapframe at line 197: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Location_map at line 411: Malformed coordinates value.
Coordinates: Lua error: callParserFunction: function "#coordinates" was not found.
MergedMap/doc
Lua error in Module:MergedMapGetPushPin at line 412: Malformed coordinates value.
Coordinates: Lua error: callParserFunction: function "#coordinates" was not found.

Case 3

[edit source]
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap/doc
Lua error in Module:Infobox_mapframe at line 197: attempt to index field 'wikibase' (a nil value).
Lua error in Module:Location_map at line 411: Malformed coordinates value.
Coordinates: Lua error in Module:Coordinates at line 489: attempt to index field 'wikibase' (a nil value).
MergedMap/doc
Lua error in Module:MergedMapGetPushPin at line 412: Malformed coordinates value.
Coordinates: Lua error in Module:Coordinates at line 489: attempt to index field 'wikibase' (a nil value).