Template:PlaceNamesAdHocGroup: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
m (Text replacement - "https://www.irhb.org/" to "{{SERVER}}/")
 
(15 intermediate revisions by the same user not shown)
Line 5: Line 5:
* '''CenterLon''' – Decimal longitude on which to center map. Mandatory.
* '''CenterLon''' – Decimal longitude on which to center map. Mandatory.
* '''Query''' &ndash; the SMW Ask string to be used, for instance "<nowiki>[[Category:Robinhood place-names]] AND [[Category:English place-names]]</nowiki>".  Mandatory.  
* '''Query''' &ndash; the SMW Ask string to be used, for instance "<nowiki>[[Category:Robinhood place-names]] AND [[Category:English place-names]]</nowiki>".  Mandatory.  
* '''CountryMapWidget'''. Optional, defaults to: '''NavMapEnglishPlaceNames'''.</div></noinclude><includeonly>
* '''CountryMapWidget'''. Optional, defaults to: '''PlaceNamesNavigationMapEnglish'''.</div></noinclude><includeonly>
{{#vardefine:Country|{{{Country|England}}}}}{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}
{{#vardefine:Country|{{{Country|England}}}}}{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|PlaceNamesNavigationMapEnglish|<!--insert name for other country-->}}}}
{{#ask: {{{Query}}}
{{#ask: {{{Query}}}
|?geopoint
|?geopoint
|?pnadmdiv
|?AdministrativeDivision
|?pnvicinity
|?Vicinity
|?pntype
|?PlaceNamesType
|?pninterest
|?PlaceNamesInterest
|?pnstatus
|?PlaceNamesStatus
|?pnfirstrecord#
|?FirstRecord#
|?century
|?CenturyOrdinal
|?pnimage
|?Image
|showtitle=yes
|showtitle=yes
|limit=2000
|limit=2000
|format=leaflet
|format=leaflet
|template=PnPopUp
|template=PlaceNamesPopUp
|markercluster=yes
|markercluster=yes
|height=550
|height=550
|width=34%
|width=34%
|geojson=https://www.irhb.org/wiki/geo/{{#var:ctyLower}}/country/{{#var:Country}}.json
|geojson={{SERVER}}/w/geo/{{#var:ctyLower}}/country/{{#var:Country}}.json
|clustermaxradius=50
|clustermaxradius=50
|clusterspiderfy=yes
|clusterspiderfy=yes
Line 33: Line 33:
<div class="jsCharts" id="tChart">
<div class="jsCharts" id="tChart">
{{#ask: {{{Query}}}
{{#ask: {{{Query}}}
|?pntype
|?PlaceNamesType
|limit=2000
|limit=2000
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="cChart">
<div class="jsCharts" id="cChart">
{{#ask: {{{Query}}}
{{#ask: {{{Query}}}
|?century
|?CenturyOrdinal
|limit=1000
|limit=1000
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="iChart">
<div class="jsCharts" id="iChart">
{{#ask: {{{Query}}}
{{#ask: {{{Query}}}
|?pninterest
|?PlaceNamesInterest
|limit=2000
|limit=2000
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="sChart">
<div class="jsCharts" id="sChart">
{{#ask: {{{Query}}}
{{#ask: {{{Query}}}
|?pnstatus
|?PlaceNamesStatus
|limit=2000
|limit=2000
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="tline">
<div class="jsCharts" id="tline">
{{#ask: {{{Query}}}
{{#ask: {{{Query}}}
|?pnfirstrecord#
|?FirstRecord#
|limit=2000
|limit=2000
|format=template
|format=template
|template=timeline
|template=timeline
|sort=pnfirstrecord,
|sort=FirstRecord,
|link=none
|link=none
}}
}}
</div>
</div>
{{#widget:PnCharts}}
{{#widget:PlaceNamesCharts}}
</includeonly>
</includeonly>

Latest revision as of 03:56, 6 June 2022

This template can be used for displaying maps and charts for English place-names based on ad hoc criteria. It takes the following named parameter:
  • Country – Defaults to England. At present other values are ignored.
  • Demonym – Defaults to English. At present other values are ignored.
  • CenterLat – Decimal latitude on which to center map. Mandatory.
  • CenterLon – Decimal longitude on which to center map. Mandatory.
  • Query – the SMW Ask string to be used, for instance "[[Category:Robinhood place-names]] AND [[Category:English place-names]]". Mandatory.
  • CountryMapWidget. Optional, defaults to: PlaceNamesNavigationMapEnglish.