User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
No edit summary
mNo edit summary
Line 9:
if (!self.imported) self.imported = [];
var format = function(wscript, src) {
var deflang, lang, source = src;
return wscript.replace(/\{{3}lang\|([a-z]{2})\}{3}/, function(m) {
var deflanglang = m[1];
if (/^([a-z]{2})\:/.test(source)) {
var n = source.match(/^([a-z]{2})\:/);
Line 17:
source = source.substr(n[0].length);
};
return lang || deflang;
}).replace("{{{src}}}", encodeURIComponent(source.replace(" ", "_")))};
var attrs;