Shape feature

edit
{{Infobox mapframe|
|id=Q100}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe|
|frame-lat=42.319 |frame-long=-71.002 |id=Q100}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe|
|id=Q100 |shape=inverse}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe|
|id=Q100 |shape=none}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Line feature

edit

With OSM relation id on Wikidata

edit
  • Marker not specified
{{Infobox mapframe|
|id=Q4681790}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
  • Marker is specified
{{Infobox mapframe|
|id=Q4681790 |marker=triangle |marker-color=008800}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
  • Explicit |marker=none
{{Infobox mapframe|
|id=Q4681790 |marker=none}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Without OSM relation id on Wikidata

edit
{{Infobox mapframe|
|id=Q1939502}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Coordinates set to 'no value' on Wikidata

edit
{{Infobox mapframe|
|id=Q2327957}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}

Locally specified coords instead of Wikidata

edit

No Wikidata item

edit
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

wikidata=yes with no Wikidata item

edit
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|wikidata=yes}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

testing "wikidata=no"

edit
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|id=Q1939502|wikidata=no}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Overriding Wikidata item

edit
{{Infobox mapframe|coord={{Coord|-31.876|115.897}}|id=Q1939502|marker=triangle}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Show OSM relations but use locally specified coords

edit
{{Infobox mapframe|wikidata=yes|id=Q1939502|coord={{Coord|-31.876|115.897}}|marker=triangle}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

point=none (should show line/shape features)

edit
{{Infobox mapframe|id=Q1939502|coord={{Coord|-31.876|115.897}}|point=none}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

coord parameter present but empty

edit
{{Infobox mapframe|coord= |id=Q1939502 |marker=triangle |wikidata=yes}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

No coords locally and none on Wikidata

edit
{{Infobox mapframe|id=Q1}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}

Geomask

edit

Find mask by relation

edit
{{Infobox mapframe|geomask=P17 |id=Q1297}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe|id=Q1297|geomask=P17|frame-coord={{Coord|39.8|N|98.3|W}}|zoom=2}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Mask Item specified

edit
{{Infobox mapframe|geomask=Q1204 |id=Q1297}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Custom zoom and frame-coord with a mask

edit
{{Infobox mapframe|id=Q1297|geomask=Q1204|zoom=6|frame-coord={{Coord|42|-88}}}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Edersee Dam

edit
{{Infobox mapframe|geomask=P17 |id=Q3239281}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Q1950380, P131

edit
{{Infobox mapframe|geomask=P131 |id=Q1950380}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Q1950380, P17

edit
{{Infobox mapframe|geomask=P17 |id=Q1950380}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map


More tests

edit

Basic usage

edit

Point feature (Wikidata coordinates):

{{Infobox mapframe |id=Q7270550}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Line feature:

{{Infobox mapframe |id=Q1318331}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Shape feature:

{{Infobox mapframe |id=Q61}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Using specified coordinates instead of Wikidata

edit

Point feature (with coordinates specified, no shape/line feature from Wikidata item):

{{infobox mapframe |id=Q45935 |coord={{coord|31|56|S|115|58|E}} }}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Point feature (with coordinates specified, along with shape/line feature from Wikidata item):

{{infobox mapframe |id=Q45935 |wikidata=yes |coord={{coord|31|56|S|115|58|E}} }}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Inverse shape

edit
{{Infobox mapframe |id=Q61 |shape=inverse}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Shape off

edit
{{infobox mapframe |id=Q45935 |wikidata=yes |shape=none |coord={{coord|31|56|S|115|58|E}} }}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Point off

edit
{{Infobox mapframe |id=Q7270550 |point=none}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Point on

edit
{{Infobox mapframe |id=Q61 |point=on}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Line off

edit
{{Infobox mapframe |id=Q1939502 |line=none |point=on}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Opacity

edit
{{Infobox mapframe |id=Q61 |shape-fill-opacity=0.2}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe |id=Q61 |shape=inverse |shape-fill-opacity=0.2}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe|geomask=P17|id=Q3239281 |geomask-fill-opacity=0.8}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Zoom computed from object dimensions

edit
{{Infobox mapframe |id=Q1318331 |length_km=5.6}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe |id=Q1318331 |length_mi=3.5}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe |id=Q100 |area_km2=232.14}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map
{{Infobox mapframe |id=Q100 |area_mi2=89.63}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map Map

Switcher tests

edit

Zooms

edit
{{Infobox mapframe |id=Q4948020 |switcher=zooms}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map
Map
Map
Map
Map
Map

Auto

edit
{{Infobox mapframe |id=Q2224 |switcher=auto}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map
Map
Map
Map
Map
Map
Map
Map
Map
Map
Map
Map

Geomasks

edit
{{Infobox mapframe |id=Q4948020 |switcher=geomasks|geomask=Q30,Q100}}
Side by side comparison
{{Infobox mapframe}}{{Infobox mapframe/sandbox}}
Map
Map
Map
Map