Template:FestivalsCountry: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
m (Text replacement - "https://www.irhb.org/" to "{{SERVER}}/") |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<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 | ||
|clusterspiderfy=yes | |clusterspiderfy=yes | ||
|height=550 | |height=550 | ||
|width=34% | |width=34% | ||
|enablefullscreen=yes | |enablefullscreen=yes | ||
|copycoords=yes | |copycoords=yes | ||
|center={{{CenterLat}}},{{{CenterLon}}} | |center={{{CenterLat}}},{{{CenterLon}}} | ||
|zoom={{{Zoom|}}} | |zoom={{{Zoom|}}} | ||
| | |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"> | |||
{{#ask:[[Category:{{{Demonym}}} festivals]] | |||
<div class=" | |?CenturyOrdinal | ||
{{#ask: [[Category:{{{Demonym}}} festivals]] | |limit=2000 | ||
|? | |||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
}} | }} | ||
</div> | </div> | ||
<div id=" | <div class="jsCharts" id="tline"> | ||
{{#ask: [[ | {{#ask:[[Topic::{{{Demonym}}} festivals]] | ||
|? | |?DateString# | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template= | |template=Timeline | ||
|link=none | |||
}} | }} | ||
</div> | </div> | ||
{{#widget: | {{#widget:FestivalsCharts}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Country": { | |||
"label": "Country", | |||
"description": "Country", | |||
"type": "string", | |||
"default": "England", | |||
"example": "Scotland", | |||
"required": true | |||
}, | |||
"Demonym": { | |||
"label": "Demonym", | |||
"description": "Demonym", | |||
"example": "Scottish", | |||
"type": "string", | |||
"default": "English" | |||
}, | |||
"CenterLat": { | |||
"label": "CenterLat", | |||
"description": "Latitude on which the map centers.", | |||
"example": "Value in the interval 0-180", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"CenterLon": { | |||
"label": "CenterLon", | |||
"description": "Longitude on which the map centers.", | |||
"example": "Value in the interval 0-90", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"Zoom": { | |||
"label": "Zoom", | |||
"description": "Zoom level for the map", | |||
"type": "number", | |||
"default": "9" | |||
} | |||
}, | |||
"description": "Displays maps and charts for country landing pages in Festivals section." | |||
} | |||
</templatedata> | |||
</noinclude> |
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 |