Difference between revisions of "Template:CategoryMap"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 32: | Line 32: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#ask: | {{#ask: | ||
| − | [Category:{{{category|Spain2025}}}]] | + | [[Category:{{{category|Spain2025}}}]][[Has coordinates::+]] |
|?Has coordinates | |?Has coordinates | ||
|format=leaflet | |format=leaflet | ||
Latest revision as of 13:45, 27 November 2024
This template generates a map using the Semantic MediaWiki `#ask` function based on the provided category.
Usage
{{CategoryMap
|category=YourCategoryName
|center=YourMapCenter
|height=MapHeight
|width=MapWidth
|zoom=ZoomLevel
}}
Parameters
- category: The name of the category to query (default: Spain2025).
- center: The center point of the map (default: Palencia).
- height: The height of the map (default: 400px).
- width: The width of the map (default: 700px).
- zoom: The zoom level of the map (default: 7).
Example
{{CategoryMap
|category=Landmarks
|center=Barcelona
|height=500px
|width=800px
|zoom=10
}}