Customizing query results: Difference between revisions

From Maps for MediaWiki
(Created page with "As parts of its integration with Semantic MediaWiki, Maps adds several mapping result formats. These formats all support the <code>template</code> param...")
 
mNo edit summary
Line 2: Line 2:


== Default display without template ==
== Default display without template ==
By default, the information shown


<pre>
<pre>

Revision as of 07:32, 15 May 2020

As parts of its integration with Semantic MediaWiki, Maps adds several mapping result formats. These formats all support the template parameter, which can be used to customize the information shown when clicking a marker or shape.

Default display without template

By default, the information shown

{{#ask:[[Category:Cities]]
 | format=map
 | ?Coordinates
 | ?Located in
 | ?Population
 | ?Surface area
}}
Loading map...

Using a template

This example shows usage of multiple queried values via the "City Popup" template.

{{#ask:[[Category:Cities]]
 | format=map
 | ?Coordinates
 | ?Located in
 | ?Population
 | ?Surface area
 | template=City Popup
 | showtitle=off
}}
Loading map...