Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21e94d19d3a70f3

Jump to content

Template:MergedMap/doc

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]

Case 1

[edit]
  • BUG: Not turning on by default with presence of coords  Done
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap/doc
Map
Interactive map of MergedMap/doc
Coordinates: 51°30′26″N 0°7′39″W / 51.50722°N 0.12750°W / 51.50722; -0.12750
MergedMap/doc
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/doc
Map
aaaaaaa
MergedMap/doc is located in England
MergedMap/doc
Coordinates: 51°30′26″N 0°7′39″W / 51.50722°N 0.12750°W / 51.50722; -0.12750
MergedMap/doc
MergedMap/doc is located in England
MergedMap/docHHH
MergedMap/doc
MergedMap/doc in England
OSM
Map
aaaaaaa
Coordinates: 51°30′26″N 0°7′39″W / 51.50722°N 0.12750°W / 51.50722; -0.12750

Case 3

[edit]
Side by side comparison
{{Infobox settlement}}{{Infobox settlement/mergedmap}}
MergedMap/doc
Map
Map
Map
Interactive map of MergedMap/doc
MergedMap/doc is located in the United Kingdom
MergedMap/doc
MergedMap/doc is located in Europe
MergedMap/doc
Coordinates: 51°50′2″N 0°12′6″W / 51.83389°N 0.20167°W / 51.83389; -0.20167
MergedMap/doc
MergedMap/doc is located in the United Kingdom
MergedMap/docHHH
MergedMap/doc
MergedMap/doc in the United Kingdom
MergedMap/doc is located in Europe
MergedMap/docHHH
MergedMap/doc
MergedMap/doc in Europe
OSM
Map
OSM
Map
OSM
Map
Coordinates: 51°50′2″N 0°12′6″W / 51.83389°N 0.20167°W / 51.83389; -0.20167