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''' – the SMW Ask string to be used, for instance "<nowiki>[[Category:Robinhood place-names]] AND [[Category:English place-names]]</nowiki>". Mandatory. | * '''Query''' – 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: ''' | * '''CountryMapWidget'''. Optional, defaults to: '''PlaceNamesNavigationMapEnglish'''.</div></noinclude><includeonly> | ||
{{#vardefine:Country|{{{Country|England}}}}}{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england| | {{#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 | ||
|? | |?AdministrativeDivision | ||
|? | |?Vicinity | ||
|? | |?PlaceNamesType | ||
|? | |?PlaceNamesInterest | ||
|? | |?PlaceNamesStatus | ||
|? | |?FirstRecord# | ||
|? | |?CenturyOrdinal | ||
|? | |?Image | ||
|showtitle=yes | |showtitle=yes | ||
|limit=2000 | |limit=2000 | ||
|format=leaflet | |format=leaflet | ||
|template= | |template=PlaceNamesPopUp | ||
|markercluster=yes | |markercluster=yes | ||
|height=550 | |height=550 | ||
|width=34% | |width=34% | ||
|geojson= | |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}}} | ||
|? | |?PlaceNamesType | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
}} | }} | ||
</div> | </div> | ||
<div class="jsCharts" id="cChart"> | <div class="jsCharts" id="cChart"> | ||
{{#ask: {{{Query}}} | {{#ask: {{{Query}}} | ||
|? | |?CenturyOrdinal | ||
|limit=1000 | |limit=1000 | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
}} | }} | ||
</div> | </div> | ||
<div class="jsCharts" id="iChart"> | <div class="jsCharts" id="iChart"> | ||
{{#ask: {{{Query}}} | {{#ask: {{{Query}}} | ||
|? | |?PlaceNamesInterest | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
}} | }} | ||
</div> | </div> | ||
<div class="jsCharts" id="sChart"> | <div class="jsCharts" id="sChart"> | ||
{{#ask: {{{Query}}} | {{#ask: {{{Query}}} | ||
|? | |?PlaceNamesStatus | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
}} | }} | ||
</div> | </div> | ||
<div class="jsCharts" id="tline"> | <div class="jsCharts" id="tline"> | ||
{{#ask: {{{Query}}} | {{#ask: {{{Query}}} | ||
|? | |?FirstRecord# | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template=timeline | |template=timeline | ||
|sort= | |sort=FirstRecord, | ||
|link=none | |link=none | ||
}} | }} | ||
</div> | </div> | ||
{{#widget: | {{#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.