Difference between revisions of "Template:CategoryMap"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 32: Line 32:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{{#ask:
 
{{#ask:
[[HasCategory::{{{category|Spain2025}}}]]
+
[Category:{{{category|Spain2025}}}]] OR [[-Has subobject::+]][[Category:{{{category|Spain2025}}}]]
 
|?Has coordinates
 
|?Has coordinates
 
|format=leaflet
 
|format=leaflet

Revision as of 13:41, 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
}}