Template:FestivalsCountry: Difference between revisions

From International Robin Hood Bibliography
(Created page with "<noinclude><div class="no-img">This template displays maps and charts for country landing pages in the festivals section of IRHB. It takes the following named parameters: * '...")
 
m (Text replacement - "https://www.irhb.org/" to "{{SERVER}}/")
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><div class="no-img">This template displays maps and charts for country landing pages in the festivals section of IRHB. It takes the following named parameters:
<includeonly>{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}
* '''Country '''
{{#ask:[[Category:{{{Demonym}}} festivals]]
* '''Demonym'''
* '''CenterLat'''
* '''CenterLon'''.
* '''Zoom''' &ndash; zoom factor for the topmost map. Default is 9.</div></noinclude><includeonly>{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishFestivals|NavMapScottishFestivals}}}}
{{#ask: [[Category:{{{Demonym}}} festivals]]
|?geopoint
|?geopoint
|?pnadmdiv
|?AdministrativeDivision
|?fslocality
|?Locality
|?fsevents
|?Events
|?pnvicinity
|?Vicinity
|?fsimage
|?Image
|?fsbegan
|?FirstRecord
|?fsended
|?LastRecord
|showtitle=yes
|showtitle=yes
|limit=2000
|limit=2000
|format=leaflet
|format=leaflet
|template=FlPopUp
|template=FestivalsPopUp
|markercluster=yes
|markercluster=yes
|clustermaxradius=25
|clustermaxradius=50
|clusterspiderfy=yes
|clusterspiderfy=yes
|height=550
|height=550
|width=34%
|width=34%
|gkml=https://www.irhb.org/wiki/kml/{{#var:ctyLower}}/country/{{#var:ctyLower}}.kmz
|types=roadmap,satellite,hybrid,terrain
|controls=pan,zoom,type,scale,streetview
|enablefullscreen=yes
|enablefullscreen=yes
|copycoords=yes
|copycoords=yes
|center={{{CenterLat}}},{{{CenterLon}}}
|center={{{CenterLat}}},{{{CenterLon}}}
|zoom={{{Zoom|}}}
|zoom={{{Zoom|}}}
|kmlrezoom=yes
|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>
{{#Widget:{{#var:CountryMapWidget}}}}
<div class="jsCharts" id="cChart">
<div id="navMapLegend">{{{Demonym}}} counties with Robin Hood-related festivals. Click marker for link. Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].</div>
{{#ask:[[Category:{{{Demonym}}} festivals]]
<div class="irhbCharts" id="centuryChart">
|?CenturyOrdinal
{{#ask: [[Category:{{{Demonym}}} festivals]]
|limit=2000
|?century
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div id="timeline">
<div class="jsCharts" id="tline">
{{#ask: [[Category:{{{Demonym}}} festivals]]
{{#ask:[[Topic::{{{Demonym}}} festivals]]
|?fsyear#
|?DateString#
|limit=2000
|limit=2000
|format=template
|format=template
|template=timeline
|template=Timeline
|link=none
}}
}}
</div>
</div>
{{#widget:FlCharts}}
{{#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.

Template parameters

ParameterDescriptionTypeStatus
CountryCountry

Country

Default
England
Example
Scotland
Stringrequired
DemonymDemonym

Demonym

Default
English
Example
Scottish
Stringoptional
CenterLatCenterLat

Latitude on which the map centers.

Example
Value in the interval 0-180
Numbersuggested
CenterLonCenterLon

Longitude on which the map centers.

Example
Value in the interval 0-90
Numbersuggested
ZoomZoom

Zoom level for the map

Default
9
Numberoptional