User:Year2000Prob/monobook.js: Difference between revisions

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