Difference between revisions of "Template:Maplink/testcases/overlays"
Jump to navigation
Jump to search
imported>Evad37 (change size) |
imported>Evad37 (+) |
||
| Line 28: | Line 28: | ||
{ "lat": 37.8, "lon": -122.4 } | { "lat": 37.8, "lon": -122.4 } | ||
}} | }} | ||
| + | }} | ||
| + | |||
| + | |||
| + | |- | ||
| + | |colspan=2|'''With a frame'''<pre> | ||
| + | {{maplink|frame=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13 | ||
| + | |overlay={{maplink|frame=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}} | ||
| + | }}</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}} | ||
}} | }} | ||
| Line 65: | Line 77: | ||
|- | |- | ||
| − | |colspan=2|'''Offset for overlay ( | + | |colspan=2|'''Offset for overlay (negative)'''<pre> |
{{maplink|frame=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13 | {{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={{maplink|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|frame-align=center}} | ||
|overlay-horizontal-alignment=right | |overlay-horizontal-alignment=right | ||
|overlay-vertical-alignment=top | |overlay-vertical-alignment=top | ||
| − | |overlay-horizontal-offset=- | + | |overlay-horizontal-offset=-5 |
| − | |overlay-vertical-offset= | + | |overlay-vertical-offset=-5 |
}}</pre> | }}</pre> | ||
|- | |- | ||
| Line 79: | Line 91: | ||
|overlay-horizontal-alignment=right | |overlay-horizontal-alignment=right | ||
|overlay-vertical-alignment=top | |overlay-vertical-alignment=top | ||
| − | |overlay-horizontal-offset=- | + | |overlay-horizontal-offset=-5 |
| − | |overlay-vertical-offset= | + | |overlay-vertical-offset=-5 |
}} | }} | ||
|} | |} | ||
Revision as of 09:54, 30 October 2020
| This is the template test cases page for the sandbox of Template:Maplink/testcases. Script error: No such module "Purge". 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 with these links: |
| 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).
|
With a frame{{maplink|frame=yes|frame-width=400|frame-height=300|type=point|id=Q100|zoom=13
|overlay={{maplink|frame=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). |
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
}}
| |
| -- | Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value). |
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
}}
| |
| -- | Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value).
|
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
}}
| |
| -- | Lua error in Module:Mapframe/sandbox at line 339: attempt to index field 'wikibase' (a nil value). |