Template:CategoryMap

From BITPlan E-Bike Wiki
Revision as of 09:18, 27 November 2024 by Wf (talk | contribs) (Created page with "<includeonly> {{#ask: [[HasCategory::{{{category|Spain2025}}}]] |?Has coordinates |format=leaflet |center={{{center|Palencia}}} |fullscreen=on |height={{{height|400px}}} |widt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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