Template:MergedMap
| This template uses Lua: |
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.
Usage
[edit]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
There is no need to provide coordinates and mapframe-id in main articles because they are fetched from Wikidata.
Examples
[edit]This template is used in the Infobox of these articles:
{{MergedMap|Iran#Asia#OSM}} gives
{{MergedMap |mapQuery = customMap1#OSM#Iran#Asia#customMap2#OSM1#OSM2 |customMap1 =Tehran 51.41504E 35.69272N.jpg |customMap2 = Tehran_district_map_(blank).svg |mapframe-zoom = 6 |OSM1 = {{Infobox mapframe|id=Q3616|zoom = 8}} |OSM2 = {{Infobox mapframe|id=Q84|zoom = 8}} |label = Tehran}} gives
| This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates. |



