Template:FestivalsAdministrativeDivision: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
m (Text replacement - "/wiki/" to "/w/") |
||
(34 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: | <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}}}}|'|'}}}} | ||
{{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 = 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:{{{ | {{#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 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|}}}|| | {{#ask:[[Category:{{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||{{{AdministrativeDivision}}}|{{{Riding}}} Riding of Yorkshire}}|London}} 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: {{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||[[ | {{#ask:[[Topic::{{#var:Demonym}} festivals]]{{#ifeq:{{{Glondon|}}}||{{#ifeq:{{{Riding|}}}||[[AdministrativeDivision::{{{AdministrativeDivision}}}]]|[[Riding::{{{Riding}}}]]}}|[[GreaterLondon::+]]}} | ||
|? | |?DateString# | ||
|limit=2000 | |limit=2000 | ||
|format=template | |format=template | ||
Line 54: | Line 54: | ||
}} | }} | ||
</div> | </div> | ||
{{#widget: | {{#widget:FestivalsCharts}}</includeonly><noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 70: | Line 70: | ||
"default": "English" | "default": "English" | ||
}, | }, | ||
" | "AdministrativeDivision": { | ||
"label": " | "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", | ||
Line 78: | Line 78: | ||
}, | }, | ||
"Abbrev": { | "Abbrev": { | ||
"label": " | "label": "Abbrev", | ||
"description": "Abbreviated name of county (administrative division)", | "description": "Abbreviated name of county (administrative division)", | ||
"example": "Berks", | "example": "Berks", | ||
Line 124: | Line 124: | ||
"description": "Zoom level for the map", | "description": "Zoom level for the map", | ||
"example": "9", | "example": "9", | ||
"type": "number" | "type": "number", | ||
"default": "9" | |||
}, | }, | ||
"Glondon": { | "Glondon": { | ||
Line 134: | Line 135: | ||
"Riding": { | "Riding": { | ||
"label": "Riding", | "label": "Riding", | ||
"description": "One of the three Yorkshire ridings: East, North or West" | "description": "One of the three Yorkshire ridings: East, North or West", | ||
"type": "string" | |||
} | } | ||
}, | }, |
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 |