Template:FestivalsAdministrativeDivision: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
m (Text replacement - "/wiki/" to "/w/")
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}} }}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:demonym|{{{Demonym}}}}}{{#vardefine:Folder|{{#ifeq:{{{AdmDiv|}}}|London|cities|counties}}}}{{#vardefine:File|{{#ifeq:{{#pos:{{{AdmDiv|}}}|of Yorkshire|0}}||{{{AdmDiv}}}|yorkshire}}}}{{#vardefine:AdmEntity|{{#ifeq:{{{AdmDiv}}}|London|Greater London|{{{AdmDiv}}}}}}}{{#vardefine:AreaRef|}}{{#vardefine:PopStatRef|{{#ifeq:{{#var:Country}}|England|[http://www.histpop.org/ohpr/servlet/PageBrowser?path=Browse/Census%20(by%20date)/1891&active=yes&mno=64&tocstate=expandnew&tocseq=500&display=sections&display=tables&display=pagetitles&pageseq=first-nonblank Histpop - The Online Historical Population Reports Website: Population. Administrative counties, England and Wales. Vol. I, 1891 – Page vi] (University of Essex).|[http://www.histpop.org/ohpr/servlet/PageBrowser?path=Browse/Census%20(by%20geography)/Scotland/1891&active=yes&mno=63&tocstate=expandnew&tocseq=1700&display=sections&display=tables&display=pagetitles&pageseq=first-nonblank Population report, Scotland. Vol. I, 1891 &ndash; Page xxii] (University of Essex).}}}}{{#vardefine:AreaRef|{{#ifeq:{{#var:Country}}|England|[https://en.wikipedia.org/wiki/List_of_ancient_counties_of_England_by_area_in_1891 Wikipedia: List of ancient counties of England by area in 1891] (adapted from 1891 census).|[https://en.wikipedia.org/wiki/List_of_counties_of_Scotland_1890%E2%80%931975 Wikipedia: List of counties of Scotland 1890–1975.]}}}}
<includeonly>{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}} }}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:Demonym|{{{Demonym}}}}}{{#vardefine:Folder|{{#ifeq:{{{AdministrativeDivision|}}}|London|cities|counties}}}}{{#vardefine:File|{{#ifeq:{{#pos:{{{AdministrativeDivision|}}}|of Yorkshire|0}}||{{{AdministrativeDivision}}}|yorkshire}}}}{{#vardefine:AdmEntity|{{#ifeq:{{{AdministrativeDivision}}}|London|Greater London|{{{AdministrativeDivision}}}}}}}{{#vardefine:AreaRef|}}{{#vardefine:PopStatRef|{{#ifeq:{{#var:Country}}|England|[http://www.histpop.org/ohpr/servlet/PageBrowser?path=Browse/Census%20(by%20date)/1891&active=yes&mno=64&tocstate=expandnew&tocseq=500&display=sections&display=tables&display=pagetitles&pageseq=first-nonblank Histpop - The Online Historical Population Reports Website: Population. Administrative counties, England and Wales. Vol. I, 1891 – Page vi] (University of Essex).|[http://www.histpop.org/ohpr/servlet/PageBrowser?path=Browse/Census%20(by%20geography)/Scotland/1891&active=yes&mno=63&tocstate=expandnew&tocseq=1700&display=sections&display=tables&display=pagetitles&pageseq=first-nonblank Population report, Scotland. Vol. I, 1891 &ndash; Page xxii] (University of Essex).}}}}{{#vardefine:AreaRef|{{#ifeq:{{#var:Country}}|England|[https://en.wikipedia.org/w/List_of_ancient_counties_of_England_by_area_in_1891 Wikipedia: List of ancient counties of England by area in 1891] (adapted from 1891 census).|[https://en.wikipedia.org/w/List_of_counties_of_Scotland_1890%E2%80%931975 Wikipedia: List of counties of Scotland 1890–1975.]}}}}{{#vardefine:Utitle|{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}}}
{{Infobox
{{Infobox
  |header1 = Adm. div.
  |header1 = Adm. div.
  |label2=Full name
  |label2=Full name
  |data2=[[pnadmdiv::{{{AdmDiv}}}]]
  |data2=[[AdministrativeDivision::{{{AdministrativeDivision}}}]]
  |label3 = Abbreviation
  |label3 = Abbreviation
  |data3 = [[pnabbrev::{{{Abbrev}}}]]
  |data3 = [[AdministrativeDivisionAbbreviated::{{{Abbrev}}}]]
  |label4 = Coordinate
  |label4 = Coordinate
  |data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]]
  |data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]]
Line 12: Line 12:
  |label6 = Population (1891)
  |label6 = Population (1891)
  |data6 = [[Population::{{{Population}}}]]<ref>{{#var:PopStatRef}}</ref>}}
  |data6 = [[Population::{{{Population}}}]]<ref>{{#var:PopStatRef}}</ref>}}
{{#ask: [[Category:{{{AdmDiv}}} festivals]]
{{#ask: [[Category:{{{AdministrativeDivision}}} 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
|height=550
|height=550
|width=34%
|width=34%
|geojson=https://www.irhb.org/wiki/geo/{{#var:ctyLower}}/{{#var:Folder}}/{{#var:File}}.json
|geojson={{SERVER}}/w/geo/{{#var:ctyLower}}/{{#var:Folder}}/{{#var:File}}.json
|enablefullscreen=yes
|enablefullscreen=yes
|copycoords=yes
|copycoords=yes
Line 38: Line 38:
<div id="ctyMapLegend">Localities in {{#var:AdmEntity}} 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">Localities in {{#var:AdmEntity}} 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: {{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||[[flAdmDiv::{{{AdmDiv}}}]]|[[flRiding::{{{Riding}}}]]}}|[[flGlondon::+]]}}
{{#ask:[[Category:{{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||{{{AdministrativeDivision}}}|{{{Riding}}} Riding of Yorkshire}}|London}} festivals]]
|?flCenturyOrdinal
|?CenturyOrdinal
|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: {{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||[[flAdmDiv::{{{AdmDiv}}}]]|[[flRiding::{{{Riding}}}]]}}|[[flGlondon::+]]}}
{{#ask:[[Topic::{{#var:Demonym}} festivals]]{{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||[[AdministrativeDivision::{{{AdministrativeDivision}}}]]|[[Riding::{{{Riding}}}]]}}|[[GreaterLondon::+]]}}
|?flDate#
|?DateString#
|limit=2000
|limit=2000
|format=template
|format=template
Line 54: Line 54:
}}
}}
</div>
</div>
{{#widget:FlCharts}}</includeonly><noinclude>
{{#widget:FestivalsCharts}}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
Line 70: Line 70:
"default": "English"
"default": "English"
},
},
"AdmDiv": {
"AdministrativeDivision": {
"label": "AdmDiv",
"label": "AdministrativeDivision",
"description": "Administrative division, typically one the 39 English pre-1972 counties",
"description": "Administrative division, typically one the 39 English pre-1972 counties",
"example": "Yorkshire",
"example": "Yorkshire",

Latest revision as of 03:56, 6 June 2022

Renders infobox, maps and charts on landing pages for administrative divisions in festivals section.

Template parameters

ParameterDescriptionTypeStatus
CountryCountry

Country

Default
England
Stringoptional
DemonymDemonym

Demonym

Default
English
Stringoptional
AdministrativeDivisionAdministrativeDivision

Administrative division, typically one the 39 English pre-1972 counties

Example
Yorkshire
Stringrequired
AbbrevAbbrev

Abbreviated name of county (administrative division)

Example
Berks
Stringoptional
LatitudeLat

Latitude in decimal format.

Example
42.356
Numbersuggested
LongitudeLon

Longitude in decimal format

Example
2.46
Numbersuggested
AreaArea

Area of county (administrative unit) as per 1891 census

Example
36465
Numberoptional
PopulationPopulation

Size of population as per 1891 census

Example
135894
Numberoptional
CenterLonCenterLat

Latitude on which to center the map

Example
2.3456
Numberoptional
CenterLonCenterLon

Longitude on which to center the map

Example
49.456
Numberoptional
ZoomZoom

Zoom level for the map

Default
9
Example
9
Numberoptional
GlondonGlondon

Does all or part of the county now belong to London?

Default
No
Example
Any values means "yes"
Unknownoptional
RidingRiding

One of the three Yorkshire ridings: East, North or West

Stringoptional