Template:FestivalsAdministrativeDivision: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
m (Text replacement - "/wiki/" to "/w/") |
||
(48 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:{{{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 – 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}}}}|'|'}}}} | |||
{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}} }}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine: | |||
{{Infobox | {{Infobox | ||
|header1 = Adm. div. | |header1 = Adm. div. | ||
|label2=Full name | |label2=Full name | ||
|data2=[[ | |data2=[[AdministrativeDivision::{{{AdministrativeDivision}}}]] | ||
|label3 = Abbreviation | |label3 = Abbreviation | ||
|data3 = [[ | |data3 = [[AdministrativeDivisionAbbreviated::{{{Abbrev}}}]] | ||
|label4 = | |label4 = Coordinate | ||
|data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]] | |data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]] | ||
|label5 = Area (1891) | |label5 = Area (1891) | ||
Line 23: | Line 12: | ||
|label6 = Population (1891) | |label6 = Population (1891) | ||
|data6 = [[Population::{{{Population}}}]]<ref>{{#var:PopStatRef}}</ref>}} | |data6 = [[Population::{{{Population}}}]]<ref>{{#var:PopStatRef}}</ref>}} | ||
{{#ask: [[Category:{{{ | {{#ask: [[Category:{{{AdministrativeDivision}}} 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 | ||
|height=550 | |height=550 | ||
|width=34% | |width=34% | ||
|geojson= | |geojson={{SERVER}}/w/geo/{{#var:ctyLower}}/{{#var:Folder}}/{{#var:File}}.json | ||
|enablefullscreen=yes | |enablefullscreen=yes | ||
|copycoords=yes | |copycoords=yes | ||
Line 48: | Line 37: | ||
}} | }} | ||
<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"> | |||
{{#ask:[[Category:{{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||{{{AdministrativeDivision}}}|{{{Riding}}} Riding of Yorkshire}}|London}} festivals]] | |||
<div class=" | |?CenturyOrdinal | ||
{{#ask: [[Category:{{{ | |||
|? | |||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
}} | }} | ||
</div> | </div> | ||
<div id=" | <div class="jsCharts" id="tline"> | ||
{{#ask: [[ | {{#ask:[[Topic::{{#var:Demonym}} festivals]]{{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||[[AdministrativeDivision::{{{AdministrativeDivision}}}]]|[[Riding::{{{Riding}}}]]}}|[[GreaterLondon::+]]}} | ||
|? | |?DateString# | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
|template= | |template=Timeline | ||
|link=none | |||
}} | }} | ||
</div> | </div> | ||
{{#widget: | {{#widget:FestivalsCharts}}</includeonly><noinclude> | ||
</ | <templatedata> | ||
{ | |||
"params": { | |||
"Country": { | |||
"label": "Country", | |||
"description": "Country", | |||
"type": "string", | |||
"default": "England" | |||
}, | |||
"Demonym": { | |||
"label": "Demonym", | |||
"description": "Demonym", | |||
"type": "string", | |||
"default": "English" | |||
}, | |||
"AdministrativeDivision": { | |||
"label": "AdministrativeDivision", | |||
"description": "Administrative division, typically one the 39 English pre-1972 counties", | |||
"example": "Yorkshire", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"Abbrev": { | |||
"label": "Abbrev", | |||
"description": "Abbreviated name of county (administrative division)", | |||
"example": "Berks", | |||
"type": "string" | |||
}, | |||
"Lat": { | |||
"label": "Latitude", | |||
"description": "Latitude in decimal format.", | |||
"example": "42.356", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"Lon": { | |||
"label": "Longitude", | |||
"description": "Longitude in decimal format", | |||
"example": "2.46", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"Area": { | |||
"label": "Area", | |||
"description": "Area of county (administrative unit) as per 1891 census", | |||
"example": "36465", | |||
"type": "number" | |||
}, | |||
"Population": { | |||
"label": "Population", | |||
"description": "Size of population as per 1891 census", | |||
"example": "135894", | |||
"type": "number" | |||
}, | |||
"CenterLat": { | |||
"label": "CenterLon", | |||
"description": "Latitude on which to center the map", | |||
"example": "2.3456", | |||
"type": "number" | |||
}, | |||
"CenterLon": { | |||
"label": "CenterLon", | |||
"description": "Longitude on which to center the map", | |||
"example": "49.456", | |||
"type": "number" | |||
}, | |||
"Zoom": { | |||
"description": "Zoom level for the map", | |||
"example": "9", | |||
"type": "number", | |||
"default": "9" | |||
}, | |||
"Glondon": { | |||
"label": "Glondon", | |||
"description": "Does all or part of the county now belong to London?", | |||
"example": "Any values means \"yes\"", | |||
"default": "No" | |||
}, | |||
"Riding": { | |||
"label": "Riding", | |||
"description": "One of the three Yorkshire ridings: East, North or West", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "Renders infobox, maps and charts on landing pages for administrative divisions in festivals section." | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 03:56, 6 June 2022
Renders infobox, maps and charts on landing pages for administrative divisions in festivals section.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Country | Country | Country
| String | optional |
Demonym | Demonym | Demonym
| String | optional |
AdministrativeDivision | AdministrativeDivision | Administrative division, typically one the 39 English pre-1972 counties
| String | required |
Abbrev | Abbrev | Abbreviated name of county (administrative division)
| String | optional |
Latitude | Lat | Latitude in decimal format.
| Number | suggested |
Longitude | Lon | Longitude in decimal format
| Number | suggested |
Area | Area | Area of county (administrative unit) as per 1891 census
| Number | optional |
Population | Population | Size of population as per 1891 census
| Number | optional |
CenterLon | CenterLat | Latitude on which to center the map
| Number | optional |
CenterLon | CenterLon | Longitude on which to center the map
| Number | optional |
Zoom | Zoom | Zoom level for the map
| Number | optional |
Glondon | Glondon | Does all or part of the county now belong to London?
| Unknown | optional |
Riding | Riding | One of the three Yorkshire ridings: East, North or West | String | optional |