Jump to: navigation, search

Difference between revisions of "Widget:NavMapEnglishPlaceNames"

m
m
Line 121: Line 121:
 
var counties = res.query.results;
 
var counties = res.query.results;
 
var numCounties = 0;
 
var numCounties = 0;
 +
var engArea = 0, engPop = 0;
 
for (var key in counties) {
 
for (var key in counties) {
 +
if (key.indexOf("Riding") === -1 && cty.indexOf("London") === -1) {
 
var cty = key.replace(" place-names", "");
 
var cty = key.replace(" place-names", "");
var engArea = 0, engPop = 0;
 
if (cty.indexOf("Riding") === -1 && cty.indexOf("London") === -1) {
 
 
numCounties++;
 
numCounties++;
 
var a = counties[key].printouts.Area[0];
 
var a = counties[key].printouts.Area[0];

Revision as of 12:50, 20 May 2019

This widget displays the navigation map on country and administrative division landing pages in the place-names section of IRHB. It takes no parameters.