Template:FestivalsCountry: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
m (Text replacement - "https://www.irhb.org/" to "{{SERVER}}/") |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}} | <includeonly>{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}} | ||
{{#ask: [[Category:{{{Demonym}}} festivals]] | {{#ask:[[Category:{{{Demonym}}} festivals]] | ||
|?geopoint | |?geopoint | ||
|? | |?AdministrativeDivision | ||
|? | |?Locality | ||
|? | |?Events | ||
|? | |?Vicinity | ||
|? | |?Image | ||
|? | |?FirstRecord | ||
|? | |?LastRecord | ||
|showtitle=yes | |showtitle=yes | ||
|limit=2000 | |limit=2000 | ||
|format=leaflet | |format=leaflet | ||
|template= | |template=FestivalsPopUp | ||
|markercluster=yes | |markercluster=yes | ||
|clustermaxradius=50 | |clustermaxradius=50 | ||
Line 22: | Line 22: | ||
|center={{{CenterLat}}},{{{CenterLon}}} | |center={{{CenterLat}}},{{{CenterLon}}} | ||
|zoom={{{Zoom|}}} | |zoom={{{Zoom|}}} | ||
|geojson= | |geojson={{SERVER}}/w/geo/{{#var:ctyLower}}/country/{{{Country}}}.json | ||
}} | }} | ||
<div id="ctyMapLegend">{{{Demonym}}} localities with Robin Hood-related festivals. Click cluster marker for locality markers. Click locality marker for link to page. Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].</div> | <div id="ctyMapLegend">{{{Demonym}}} localities with Robin Hood-related festivals. Click cluster marker for locality markers. Click locality marker for link to page. Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].</div> | ||
<div class="jsCharts" id="cChart"> | <div class="jsCharts" id="cChart"> | ||
{{#ask:[[ | {{#ask:[[Category:{{{Demonym}}} festivals]] | ||
|? | |?CenturyOrdinal | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
}} | }} | ||
</div> | </div> | ||
<div class="jsCharts" id="tline"> | <div class="jsCharts" id="tline"> | ||
{{#ask:[[ | {{#ask:[[Topic::{{{Demonym}}} festivals]] | ||
|? | |?DateString# | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
Line 42: | Line 42: | ||
}} | }} | ||
</div> | </div> | ||
{{#widget: | {{#widget:FestivalsCharts}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Line 52: | Line 52: | ||
"description": "Country", | "description": "Country", | ||
"type": "string", | "type": "string", | ||
"default": "England" | "default": "England", | ||
"example": "Scotland", | |||
"required": true | |||
}, | }, | ||
"Demonym": { | "Demonym": { |
Latest revision as of 03:54, 6 June 2022
Displays maps and charts for country landing pages in Festivals section.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Country | Country | Country
| String | required |
Demonym | Demonym | Demonym
| String | optional |
CenterLat | CenterLat | Latitude on which the map centers.
| Number | suggested |
CenterLon | CenterLon | Longitude on which the map centers.
| Number | suggested |
Zoom | Zoom | Zoom level for the map
| Number | optional |