Customizing query results: Difference between revisions

From Maps for MediaWiki
mNo edit summary
m (Jeroen De Dauw moved page Queries with templates to Customizing query results)
(No difference)

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...