Content deleted Content added
Year2000Prob (talk | contribs) I hope this new formula works. |
Year2000Prob (talk | contribs) No edit summary |
||
Line 9:
if (!self.imported) self.imported = [];
var format = function(wscript, source) {
var deflang, lang, src = source;
var deflang = m[1];
if (/^([a-z]{2}\-[A-Za-z]{2}|[a-z]{2,6})\:/.test(src)) {
var n = src.match(/^([a-z]{2}\-[A-Za-z]{2}|[a-z]{2,6})\:/);
lang = n[1];
src = src.substr(n[0].length);
};
return
}).replace(
var attrs;
if (typeof src == "object") {
Line 28:
script.setAttribute("type", "text/javascript");
script.setAttribute("src", (self.namespaces ? (function() {
var source = src.match(/\[{2}([^\n\r\t]+)(\|[^\n\r\t]*?)?\]{2}/)[1],
for (var ns in self.namespaces) {
if (source.indexOf(ns + ":") == 0) {
return path})() : encodeURI(src)));
if (attrs) {
Line 52:
})[wgServer] || wgServer;
importScript.namespaces = {"#default": "http://{{{lang|en}}}.wikipedia.org/w/index.php?title={{{src
var Y2P = new Object();
|