Geolocation: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 29: | Line 29: | ||
<pre> | <pre> | ||
{{#display_map: {{{latitude}}},{{{longitude}}} | {{#display_map: {{{latitude}}},{{{longitude}}} | ||
|zoom= {{{zoom}}} | |zoom= {{#expr: {{{zoom}}} round 0 }} | ||
|width=400 | |width=400 | ||
}} | }} |
Revision as of 21:06, 18 February 2024
This page demonstrates the use of VisualData/Geolocation in conjunction with the Extension:Maps.
It is composed by the following elements:
1) the schema Geolocation, which is of course createable/editable from here or here.
2) The data entered in the same action tab Edit data
3) The following parser function
{{#visualdataprint:{{FULLPAGENAME}} |schema=Geolocation |format=template |template?geolocation=Geolocation map }}
The template Template:Geolocation map containing the call to the display_map parser function in the following form:
{{#display_map: {{{latitude}}},{{{longitude}}} |zoom= {{#expr: {{{zoom}}} round 0 }} |width=400 }}
4) That's it