Template:Map: Difference between revisions

From elijah
Jump to navigation Jump to search
WikiSync push v1.0
 
WikiSync push v1.0
Line 14: Line 14:
  |HasSources={{{HasSources|}}}
  |HasSources={{{HasSources|}}}
  |HasStructureFile={{{HasStructureFile|}}}
  |HasStructureFile={{{HasStructureFile|}}}
|HasRegion={{{HasRegion|}}}
  |HasCenterLat={{{HasCenterLat|}}}
  |HasCenterLat={{{HasCenterLat|}}}
  |HasCenterLng={{{HasCenterLng|}}}
  |HasCenterLng={{{HasCenterLng|}}}
Line 23: Line 22:
{{#if:{{{HasTimePeriod|}}}|
{{#if:{{{HasTimePeriod|}}}|
   {{#arraymap:{{{HasTimePeriod|}}}|;|@@|{{#set:HasTimePeriod=@@}}|}}
   {{#arraymap:{{{HasTimePeriod|}}}|;|@@|{{#set:HasTimePeriod=@@}}|}}
}}
<!-- List: Region -->
{{#if:{{{HasRegion|}}}|
  {{#arraymap:{{{HasRegion|}}}|;|@@|{{#set:HasRegion=@@}}|}}
}}
}}


Line 77: Line 81:
           <tr>
           <tr>
             <td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; width:30%;">'''Region'''</td>
             <td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; width:30%;">'''Region'''</td>
             <td style="color:#222;">{{{HasRegion}}}</td>
             <td style="color:#222;">{{#arraymap:{{{HasRegion|}}}|;|@@|@@|, }}</td>
           </tr>
           </tr>
         }}
         }}
Line 172: Line 176:
  |HasSources=Pomniki dziejowe Lwowa, vol. 1 (1892)...
  |HasSources=Pomniki dziejowe Lwowa, vol. 1 (1892)...
  |HasStructureFile=File:1.4.4-structure.json
  |HasStructureFile=File:1.4.4-structure.json
  |HasRegion=Galicia
  |HasRegion=Galicia; Bukovina
  |HasCenterLat=48.8
  |HasCenterLat=48.8
  |HasCenterLng=22.5
  |HasCenterLng=22.5
Line 186: Line 190:
* HasCenterLat / HasCenterLng — SMW Number type
* HasCenterLat / HasCenterLng — SMW Number type
* HasZoom — SMW Number type
* HasZoom — SMW Number type
* HasRegion — text, controlled vocabulary
* HasRegion — list of text values, controlled vocabulary (semicolon-separated)
* BelongsToTopic — list of text values from controlled vocabulary (semicolon-separated)
* BelongsToTopic — list of text values from controlled vocabulary (semicolon-separated)
* HasTimePeriod — list of text values, controlled vocabulary (semicolon-separated)
* HasTimePeriod — list of text values, controlled vocabulary (semicolon-separated)

Revision as of 11:28, 29 July 2026



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)...
 |HasStructureFile=File:1.4.4-structure.json
 |HasRegion=Galicia; Bukovina
 |HasCenterLat=48.8
 |HasCenterLng=22.5
 |HasZoom=5
 |HasTimePeriod=1772-1914; Before 1772
 |BelongsToTopic=Economics; Demography and Statistics
 |HasRelatedEntries=Article:011; Article:055
}}

Properties with type notes:

  • 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
  • HasCenterLat / HasCenterLng — SMW Number type
  • 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