Content deleted Content added
«+"var", +" "» |
«+"locz.qAutoEdit();"» |
||
(3 intermediate revisions by the same user not shown) | |||
Line 11:
//<pre><nowiki>
var
'
'LocZ', 'ca-locz', 'Canonicalize ___location wikilinks',
'Location canonicalization');
var CountryData = function(states, link_country, regexp_country) {
this.states = states;
Line 70:
}
var inputs = [];
Line 98:
}
return /\[\[ *(?:([^|\]]+?) *\| *)?([^\]]+?) *\]\]/;
}
var wlink = m[1] || m[2];
var wtext = m[2];
Line 120:
wfull = '[[' + wtext + '|' + city + ']]';
// only add link to state if we haven't link it yet.
if (d.left.match('\\[\\['+state+'\\]\\]')) {
wfull += ', ' + state;
} else {
Line 161:
}
locz._load = function() {
locz.qAutoEdit();
locz.addTab();
}
addOnloadHook(locz._load);
//</nowiki></pre>
|