Template:PlaceNamesAdministrativeDivision: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
(31 intermediate revisions by the same user not shown)
Line 16: Line 16:
  |label3 = Abbreviation
  |label3 = Abbreviation
  |data3 = [[pnabbrev::{{{Abbrev}}}]]
  |data3 = [[pnabbrev::{{{Abbrev}}}]]
  |label4 = Coordinates
  |label4 = Coordinate
  |data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]]
  |data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]]
  |label5 = Area (1891)
  |label5 = Area (1801)
  |data5 = [[Area::{{{Area}}}]] km<sup>2</sup><ref>[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 &ndash; Page vi] (University of Essex).</ref>
  |data5 = [[Area::{{{Area}}}]] km<sup>2</sup><ref name="census1801">[http://www.histpop.org/ohpr/servlet/PageBrowser?path=Browse/Census%20(by%20date)/1851&active=yes&mno=27&tocstate=expandnew&tocseq=13700&display=sections&display=tables&display=pagetitles&pageseq=first-nonblank Histpop &ndash; The Online Historical Population Reports Website: Population tables I, Vol. I. England and Wales. Divisions I-VII, 1851 &ndash; Page clxviii] (University of Essex). [https://www.google.com/search?q=acres+to+km2 Google: Acres to km2.]</ref>
  |label6 = Population (1891)
  |label6 = Population (1801)
  |data6 = [[Population::{{{Population}}}]]<ref>[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).</ref>
  |data6 = [[Population::{{{Population}}}]]<ref name="census1801" />}}
}}
{{#ask:
{{#ask:
[[Category:{{{AdmDiv}}} place-names]]
[[Category:{{{AdmDiv}}} place-names]]
Line 35: Line 34:
|?pnimage
|?pnimage
|showtitle=yes
|showtitle=yes
|format=map
|format=leaflet
|service=leaflet
|template=PnPopUp
|template=PnPopUp
|markercluster=yes
|markercluster=yes
Line 42: Line 40:
|height=550
|height=550
|width=34%
|width=34%
|geojson={{{Admdiv}}}
|geojson=https://www.irhb.org/wiki/geo/england/counties/{{{AdmDiv}}}.json
|enablefullscreen=yes
|enablefullscreen=yes
|clustermaxradius=50
|clusterspiderfy=yes
|copycoords=yes
|copycoords=yes
|center={{{CenterLat}}},{{{CenterLon}}}
|zoom={{{Zoom|9}}}
|zoom={{{Zoom|9}}}
}}
}}
<div id="ctyMapLegend">Localities named after Robin Hood (or members of his band) in {{{AdmDiv}}}. 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 named after Robin Hood (or members of his band) in {{{AdmDiv}}}. 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="navMap"></div><div id="navMapLegend">{{{Demonym}}} counties. Click within any county to go to its landing page. There are also pages on: '''[[London place-names|London]]''', the '''[[East Riding of Yorkshire place-names|East]]''', '''[[North Riding of Yorkshire place-names|North]]''' and '''[[West Riding of Yorkshire place-names|West]]''' Riding of Yorkshire. Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].</div><div id="choroMap"></div><div id="choroMapLegend">Viewing '''<span id='choroMapLegend1'></span>''' choropleth &bull; View <span id='choroMapLegend2'></span> choropleth &bull; View <span id='choroMapLegend3'></span> choropleth &bull; [[Place-name choropleths|About the choropleths.]] County boundary data provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]. </div>{{#Widget:NavMapEnglishPlaceNames}}<div class="jsCharts" id="tChart">
<!--{{#Widget:NavMapEnglishPlaceNames}}
<div id="navMapLegend">{{{Demonym}}} counties. Click within any county to go to its landing page. For London and the ridings of Yorkshire, click marker to go to landing page. Hover over marker to see name of county, city or riding. Historical county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].</div>-->
<div class="irhbCharts" id="typesChart">
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
|?pntype
|?pntype
Line 58: Line 54:
}}
}}
</div>
</div>
<div class="irhbCharts" id="centuryChart">
<div class="jsCharts" id="cChart">
{{#ask:  
{{#ask:  
[[Category:{{{AdmDiv}}} place-names]]
[[Category:{{{AdmDiv}}} place-names]]
Line 66: Line 62:
}}
}}
</div>
</div>
<div class="irhbCharts" id="interestChart">
<div class="jsCharts" id="iChart">
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
|?pninterest
|?pninterest
Line 73: Line 69:
}}
}}
</div>
</div>
<div class="irhbCharts" id="statusChart">
<div class="jsCharts" id="sChart">
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
|?pnstatus
|?pnstatus
Line 80: Line 76:
}}
}}
</div>
</div>
<div id="timeline">
<div class="jsCharts" id="tline">
{{#ask:  
{{#ask:  
[[Category:{{{AdmDiv}}} place-names]]
[[Category:{{{AdmDiv}}} place-names]]
Line 86: Line 82:
|format=template
|format=template
|template=timeline
|template=timeline
|sort=pnfirstrecord,
|link=none
}}
}}
</div>
</div>{{#widget:PnCharts}}</includeonly>
{{#widget:PnCharts}}
</includeonly>

Revision as of 10:52, 6 June 2019

This template renders the infobox, maps and charts on landing pages for administrative divisions in the place-names section of IRHB. It takes the following parameters:
  • Country – Defaults to: England.
  • Demonym – Defaults to: English.
  • AdmDiv – County/shire name.
  • Abbrev – Abbreviated form of name of administrative division.
  • Population – Figure from 1891 census.
  • Lat – Latitude in decimal degrees.
  • Lon – Longitude in decimal degrees.
  • CenterLat Latitude (in decimal degrees) on which map will be centred.
  • CenterLon Longitude (in decimal degrees) on which map will be centred.
  • Zoom – For the counties map, defaults to 9.