defzone.net@gmail.comLiên hệ
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bài viếtĐịa điểmAlbum ảnhGameCửa hàng
  1. Home
  2. Wiki
Template documentation[view] [edit] [history] [purge]
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:
  • Module:MergedMap (sandbox)

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]
iconThis is the template test cases page for the sandbox of Template:MergedMap. Purge this page 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:
  • MinervaNeue
    • mobile
    • dark
  • MonoBook
  • Timeless
  • Vector legacy (2010)
  • Vector (2022) (dark)

  • Switch to new parser (Parsoid)
  • Switch to legacy parser

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
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap
MergedMap

Case 1

[edit]
  • BUG: Not turning on by default with presence of coords  Done
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap
Map
Interactive map of MergedMap
Coordinates: 51°30′26″N 0°7′39″W / 51.50722°N 0.12750°W / 51.50722; -0.12750
MergedMap
Coordinates: 51°30′26″N 0°7′39″W / 51.50722°N 0.12750°W / 51.50722; -0.12750

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
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap
Map
aaaaaaa
MergedMap is located in England
MergedMap
Coordinates: 51°30′26″N 0°7′39″W / 51.50722°N 0.12750°W / 51.50722; -0.12750
MergedMap
MergedMap is located in England
MergedMapHHH
MergedMap
MergedMap in England
Show in England
Map
aaaaaaa
Show OpenStreetMap
Coordinates: 51°30′26″N 0°7′39″W / 51.50722°N 0.12750°W / 51.50722; -0.12750

Case 3

[edit]
  • BUG built-in |mapframe-switcher= (which is in use: insource:/mapframe\-switcher/) breaks the switcher  Done
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap
MapShow zoomed in
MapShow zoomed midway
MapShow zoomed out
Interactive map of MergedMap
MergedMap is located in the United Kingdom
MergedMap
Show map of the United Kingdom
MergedMap is located in Europe
MergedMap
Show map of Europe
Coordinates: 51°50′2″N 0°12′6″W / 51.83389°N 0.20167°W / 51.83389; -0.20167
MergedMap
MergedMap is located in the United Kingdom
MergedMapHHH
MergedMap
MergedMap in the United Kingdom
Show in UK
MergedMap is located in Europe
MergedMapHHH
MergedMap
MergedMap in Europe
Show in Europe
MapShow OpenStreetMap
MapShow OpenStreetMap in Zoom in
MapShow OpenStreetMap in Zoom out
Coordinates: 51°50′2″N 0°12′6″W / 51.83389°N 0.20167°W / 51.83389; -0.20167




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.
The above documentation is transcluded from Template:MergedMap/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Lien ket nhanh

Trang chủBài viếtWikiCửa hàngLiên hệ

Liên hệ

Email: defzone.net@gmail.com
Điện thoại: +84 762 559 696
Địa chỉ: Thiên Hương, Thủy Nguyên, Hải Phòng

Đăng ký nhận tin

Nhận bài viết và cập nhật mới nhất qua email.

© 2026 DefZone.Net. All rights reserved.
PrivacyTermsSitemap