| This template is rated as pre-alpha. It is incomplete and may or may not be in active development. Do not use it in article namespace pages. A template remains in pre-alpha until its developer, or another editor who adopts it if it is abandoned for some time, considers the basic structure complete. |
| 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
- 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]| This is the template test cases page for the sandbox of Template:MergedMap. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Infobox settlement
[edit]Empty
[edit]- BUG: Note the empty row
Done Default behavior is showing OSM, if you place it at article, then it will be shown
| {{Infobox settlement}} | {{Infobox settlement/mergedmap}} | ||||
|---|---|---|---|---|---|
|
| ||||
Case 1
[edit]- BUG: Not turning on by default with presence of coords
Done
| {{Infobox settlement}} | {{Infobox settlement/mergedmap}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||
Case 2
[edit]- BUG:
|mapframe-caption=aaaaaaa, which is set in the infobox, has disappeared
Done - BUG:
|mapframe-zoom=2, which is set in the infobox, is being ignored
Done
| {{Infobox settlement}} | {{Infobox settlement/mergedmap}} | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||
Case 3
[edit]- BUG built-in
|mapframe-switcher=(which is in use: insource:/mapframe\-switcher/) breaks the switcher
Done
| {{Infobox settlement}} | {{Infobox settlement/mergedmap}} | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||
| 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. |








