Template:Maplink/testcases/overlays

From wikiNonStop
Revision as of 08:32, 25 August 2024 by Majestix (talk | contribs) (1 revision imported: initial setup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Db-g8

Live template Sandbox
Overlaying another mapframe
{{maplink|frame=yes|plain=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay={{maplink|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}}
}}
-- Script error: No such module "Mapframe/sandbox".
Overlaying a static street map
{{maplink|frame=yes|plain=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay={Graph:Street map with marks | width=100 | height=100 | lat=37.8 | lon=-122.4 | zoom=6 | minimap=false |
  { "lat": 37.8, "lon": -122.4 }
}}
}}
-- Script error: No such module "Mapframe/sandbox".


With a frame
{{maplink|frame=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay={{maplink|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}}
}}
-- Script error: No such module "Mapframe/sandbox".
Alignment of overlay
{{maplink|frame=yes|plain=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay={{maplink|frame=yes|plain=yes|frame-width=180|frame-height=140|type=shape|id=Q100|frame-align=center}}
|overlay-horizontal-alignment=left
|overlay-vertical-alignment=top
}}
-- Script error: No such module "Mapframe/sandbox".
Offset for overlay
{{maplink|frame=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay={{maplink|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}}
|overlay-horizontal-alignment=left
|overlay-vertical-alignment=top
|overlay-horizontal-offset=10
|overlay-vertical-offset=15
}}
-- Script error: No such module "Mapframe/sandbox".


Offset for overlay (negative)
{{maplink|frame=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay={{maplink|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}}
|overlay-horizontal-alignment=right
|overlay-vertical-alignment=top
|overlay-horizontal-offset=-5
|overlay-vertical-offset=-5
}}
-- Script error: No such module "Mapframe/sandbox".
Image overlay
{{maplink|frame=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay=[[File:Example.svg|140x140px]]
}}
-- Script error: No such module "Mapframe/sandbox".