Template:PlaceNamesAdministrativeDivision: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
 
(38 intermediate revisions by the same user not shown)
Line 2: Line 2:
* '''Country''' – Defaults to: England.
* '''Country''' – Defaults to: England.
* '''Demonym''' – Defaults to: English.
* '''Demonym''' – Defaults to: English.
* '''AdmDiv''' – County/shire name.
* '''AdministrativeDivision''' – County/shire name.
* '''Abbrev''' – Abbreviated form of name of administrative division.
* '''Abbrev''' – Abbreviated form of name of administrative division.
* '''Population''' – Figure from 1891 census.
* '''Population''' – Figure from 1891 census.
Line 13: Line 13:
  |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}}}]]
  |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}}}]] km2<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:{{{AdministrativeDivision}}} place-names]]
|?geopoint
|?geopoint
|?pnadmdiv
|?AdministrativeDivision
|?pnvicinity
|?Vicinity
|?pntype
|?PlaceNamesType
|?pninterest
|?PlaceNamesInterest
|?pnstatus
|?PlaceNamesStatus
|?pnfirstrecord#
|?FirstRecord#
|?century
|?CenturyOrdinal
|?pnimage
|?Image
|showtitle=yes
|showtitle=yes
|format=leaflet
|format=leaflet
|template=PnPopUp
|template=PlaceNamesPopUp
|markercluster=yes
|markercluster=yes
|clustergridsize=15
|clustergridsize=15
|clustermaxradius=50
|clusterspiderfy=yes
|height=550
|height=550
|width=34%
|width=34%
|geojson=https://www.irhb.org/wiki/geo/england/counties/{{{AdmDiv}}}.json
|geojson={{SERVER}}/w/geo/england/counties/{{{AdministrativeDivision}}}.json
|enablefullscreen=yes
|enablefullscreen=yes
|clustermaxradius=50
|clusterspiderfy=yes
|copycoords=yes
|copycoords=yes
|zoom={{{Zoom|9}}}
|zoom={{{Zoom|9}}}
|layers=OpenStreetMap,NLS
}}
}}
<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 {{{AdministrativeDivision}}}. Click cluster marker for locality markers. Click locality marker for link to page. Historical county boundary co&shy;ordi&shy;nates 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:PlaceNamesNavigationMapEnglish}}<div class="jsCharts" id="tChart">
<div class="jsCharts" id="tChart">
{{#ask: [[Category:{{{AdministrativeDivision}}} place-names]]
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
|?PlaceNamesType
|?pntype
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="cChart">
<div class="jsCharts" id="cChart">
{{#ask:  
{{#ask:  
[[Category:{{{AdmDiv}}} place-names]]
[[Category:{{{AdministrativeDivision}}} place-names]]
|?century
|?CenturyOrdinal
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="iChart">
<div class="jsCharts" id="iChart">
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
{{#ask: [[Category:{{{AdministrativeDivision}}} place-names]]
|?pninterest
|?PlaceNamesInterest
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="sChart">
<div class="jsCharts" id="sChart">
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
{{#ask: [[Category:{{{AdministrativeDivision}}} place-names]]
|?pnstatus
|?PlaceNamesStatus
|format=template
|format=template
|template=chart-data
|template=ChartsData
}}
}}
</div>
</div>
<div class="jsCharts" id="tline">
<div class="jsCharts" id="tline">
{{#ask:  
{{#ask:  
[[Category:{{{AdmDiv}}} place-names]]
[[Category:{{{AdministrativeDivision}}} place-names]]
|?pnfirstrecord#
|?FirstRecord#
|format=template
|format=template
|template=timeline
|template=timeline
|sort=pnfirstrecord,
|sort=FirstRecord,
|link=none
|link=none
}}
}}
</div>
</div>{{#widget:PlaceNamesCharts}}</includeonly>
{{#widget:PnCharts}}
<noinclude>
</includeonly>
<templatedata>
{
"params": {
"Country": {
"description": "The country of which the administrative unit forms part",
"type": "string",
"default": "England"
},
"AdministrativeDivision": {
"description": "A second (for US etc., third) level admininstrative unit, e.g. an English county or shire",
"type": "string"
},
"Abbrev": {
"description": "Abbreviated form of the name of the admininstrative unit",
"example": "Staffs (for Staffordshire)",
"type": "string"
},
"Lat": {
"label": "Latitude",
"description": "Latitude of a point taken as a centre point of the administrative unit",
"example": "53.167",
"type": "number"
},
"Lon": {
"label": "Longitude",
"description": "Longitude of a point taken as a centre point of the administrative unit",
"example": "-2.58",
"type": "number"
},
"Area": {
"description": "The area in km2 of the administrative unit",
"example": "2861.44315 km2",
"type": "number"
},
"Population": {
"description": "The size of the population of the administrative unit",
"example": "192305",
"type": "number"
},
"Zoom": {
"description": "Level to which the map should be zoomed in initially",
"type": "number"
},
"Demonym": {
"description": "Demonym connected with the country in which the administratice unit is situated",
"example": "e.g. English",
"type": "string"
}
},
"description": "Creates map and charts on pages for administrative divisions in IRHB's place-names section"
}
</templatedata>
</noinclude>

Latest revision as of 11:16, 6 June 2022

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.
  • AdministrativeDivision – 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.

Creates map and charts on pages for administrative divisions in IRHB's place-names section

Template parameters

ParameterDescriptionTypeStatus
CountryCountry

The country of which the administrative unit forms part

Default
England
Stringoptional
AdministrativeDivisionAdministrativeDivision

A second (for US etc., third) level admininstrative unit, e.g. an English county or shire

Stringoptional
AbbrevAbbrev

Abbreviated form of the name of the admininstrative unit

Example
Staffs (for Staffordshire)
Stringoptional
LatitudeLat

Latitude of a point taken as a centre point of the administrative unit

Example
53.167
Numberoptional
LongitudeLon

Longitude of a point taken as a centre point of the administrative unit

Example
-2.58
Numberoptional
AreaArea

The area in km2 of the administrative unit

Example
2861.44315 km2
Numberoptional
PopulationPopulation

The size of the population of the administrative unit

Example
192305
Numberoptional
ZoomZoom

Level to which the map should be zoomed in initially

Numberoptional
DemonymDemonym

Demonym connected with the country in which the administratice unit is situated

Example
e.g. English
Stringoptional