Customizing query results

From Maps for MediaWiki
Revision as of 08:30, 15 May 2020 by Jeroen De Dauw (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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[edit | edit source]

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

Using a template[edit | edit source]

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