Difference between revisions of "Template:Maplink/testcases/overlays"

From blackwiki
Jump to navigation Jump to search
imported>Evad37
(describe, fix overlayed mapframe)
imported>Evad37
(Alignment of overlay)
Line 3: Line 3:
 
!width=50%|Live template
 
!width=50%|Live template
 
!Sandbox
 
!Sandbox
 +
 
|-
 
|-
 
|colspan=2|'''Overlaying another mapframe'''<pre>
 
|colspan=2|'''Overlaying another mapframe'''<pre>
Line 13: Line 14:
 
|overlay={{maplink|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}}
 
|overlay={{maplink|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}}
 
}}
 
}}
 +
 
|-
 
|-
 
|colspan=2|'''Overlaying a static street map'''<pre>
 
|colspan=2|'''Overlaying a static street map'''<pre>
Line 27: Line 29:
 
}}
 
}}
 
}}
 
}}
 +
 +
|-
 +
|colspan=2|'''Alignment of overlay'''<pre>
 +
{{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}}
 +
|overlay-horizontal-alignment=left
 +
|overlay-vertical-alignment=top
 +
}}</pre>
 +
|-
 +
| --
 +
|{{maplink/sandbox|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}}|overlay-horizontal-alignment=left
 +
|overlay-vertical-alignment=top
 +
}}
 +
 +
|}

Revision as of 08:34, 30 October 2020

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}}
}}
-- Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).
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 }
}}
}}
-- Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).
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=100|frame-height=100|type=shape|id=Q100|frame-align=center}}
|overlay-horizontal-alignment=left
|overlay-vertical-alignment=top
}}
-- Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).