Template:PlaceNamesRiding: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
m (Text replacement - "https://www.irhb.org/" to "{{SERVER}}/")
 
(19 intermediate revisions by the same user not shown)
Line 2: Line 2:
* '''Country'''
* '''Country'''
* '''Demonym'''
* '''Demonym'''
* '''AdmDiv'''
* '''AdministrativeDivision'''
* '''Abbrev'''
* '''Abbrev'''
* '''Population '''
* '''Population '''
Line 9: Line 9:
* '''CenterLat'''
* '''CenterLat'''
* '''CenterLon'''
* '''CenterLon'''
</div></noinclude><includeonly>{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|NavMapEnglishPlaceNames|<!--insert name for other country-->}}}}{{Infobox
</div></noinclude><includeonly>{{#vardefine:ctyLower|{{lc:{{{Country}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|PlaceNamesNavigationMapEnglish|<!--insert name for other country-->}}}}{{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 = Coordinates
  |label4 = Coordinates
  |data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]]
  |data4 = [[Geopoint::{{{Lat}}},{{{Lon}}}]]
Line 22: Line 22:
  |data6 = [[Population::{{{Population}}}]]<ref name="census1801" />}}
  |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
|limit=2000
|limit=2000
|format=leaflet
|format=leaflet
|template=PnPopUp
|template=PlaceNamesPopUp
|markercluster=yes
|markercluster=yes
|clustergridsize=15
|clustergridsize=15
|clusterspiderfy=yes
|height=550
|height=550
|width=34%
|width=34%
|geojson=https://www.irhb.org/wiki/geo/{{lc:{{{Country}}}}}/counties/Yorkshire.json
|geojson={{SERVER}}/w/geo/{{lc:{{{Country}}}}}/counties/Yorkshire.json
|enablefullscreen=yes
|enablefullscreen=yes
|copycoords=yes
|copycoords=yes
|zoom={{{Zoom|9}}}
|zoom={{{Zoom|9}}}
}}
}}
<div id="ctyMapLegend">Localities named after Robin Hood (or members of his band) in the {{{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:{{#var:CountryMapWidget}}}}
<div id="ctyMapLegend">Localities named after Robin Hood (or members of his band) in the {{{AdministrativeDivision}}}. 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:{{#var:CountryMapWidget}}}}
<div class="jsCharts" id="tChart">
<div class="jsCharts" id="tChart">
{{#ask: [[Category:{{{AdmDiv}}} place-names]]
{{#ask: [[Category:{{{AdministrativeDivision}}} place-names]]
|?pntype
|?PlaceNamesType
|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=FirstRecord,
|link=none
|link=none
}}
}}
</div>
</div>
{{#widget:PnCharts}}
{{#widget:PlaceNamesCharts}}
</includeonly>
</includeonly>

Latest revision as of 03:56, 6 June 2022

This template renders the infobox, maps and charts on landing pages for ridings in the place-names section of IRHB. It takes the following parameters:
  • Country
  • Demonym
  • AdministrativeDivision
  • Abbrev
  • Population
  • Lat
  • Lon
  • CenterLat
  • CenterLon