Template:Map
Jump to navigation
Jump to search
Use this template on Map: pages to store spatial map metadata.
Example:
{{Map
|HasMapID=1.4.4
|HasTitle=Trade Routes
|HasDescription=Arrows follow the direction of trade; dots mark the trading towns.
|HasAuthor=Adam Teller
|HasSources=Pomniki dziejowe Lwowa, vol. 1 (1892)...
|HasMapKind=Geo
|HasStructureFile=File:1.4.4-structure.json
|HasImage=
|HasRegion=Galicia; Bukovina
|HasGeoLocation=48.8, 22.5
|HasZoom=5
|HasTimePeriod=1772-1914; Before 1772
|BelongsToTopic=Economics; Demography and Statistics
|HasRelatedEntries=Article:011; Article:055
}}
An Image-kind map (no structure file, static image instead):
{{Map
|HasMapID=1.4.5
|HasTitle=Market Square, 1890
|HasMapKind=Image
|HasStructureFile=
|HasImage=Image:MarketSquare1890.jpg
}}
Properties with type notes:
- HasMapKind — text, controlled vocabulary ("Geo" or "Image"); determines whether the map is backed by a structure JSON file or a static image
- HasStructureFile — page reference to File: namespace (e.g. File:1.4.4-structure.json); the JSON must be uploaded to the wiki as a file; used for Geo-kind maps
- HasImage — page reference to Image: namespace; reused from Person/Community; used for Image-kind maps, displayed as a thumbnail whenever set
- HasGeoLocation — SMW Geographic coordinates type ("lat, lng"), same convention as Community
- HasZoom — SMW Number type
- HasRegion — list of text values, controlled vocabulary (semicolon-separated)
- BelongsToTopic — list of text values from controlled vocabulary (semicolon-separated)
- HasTimePeriod — list of text values, controlled vocabulary (semicolon-separated)
- HasRelatedEntries — list of page references to Article: namespace (semicolon-separated)
- All others — text