Khác biệt giữa bản sửa đổi của “MediaWiki:Gadget-navpop.js”

Nội dung được xóa Nội dung được thêm vào
Prenn (thảo luận | đóng góp)
Dòng 1.938:
 
// [[Common links]]
replace(/\[\[([^|]*?)\]\](\w*)/g, function($0,$1,$2){return f("<a href='?'>?</a>", Insta.conf.paths.articles + htmlescape_attr($1), htmlescape_text($1) + htmlescape_text($2)); }).
 
// [[Replaced|Links]]
replace(/\[\[(.*?)\|([^\]]+?)\]\](\w*)/g, function($0,$1,$2,$3){return f("<a href='?'>?</a>", Insta.conf.paths.articles + htmlescape_attr($1), htmlescape_text($2) + htmlescape_text($3)); }).
 
// [[Stripped:Namespace|Namespace]]
Dòng 3.830:
Previewmaker.prototype.killComments = function () {
// this also kills one trailing newline, eg [[diamyo]]
this.data=this.data.replace(RegExp('<!--[\\s\\S]*?-->\\n?', 'g'), '');
};
/**
Dòng 4.513:
}
 
function APIsharedImagePagePreviewHTML(obj) {
log( "APIsharedImagePagePreviewHTML" );
var popupid = obj['requestid'];
Dòng 4.557:
var art=new Title(article);
var encart = encodeURIComponent( "File:" + art.stripNamespace() );
var shared_url = pg.wiki.apicommonsbase + '?format=json&callback=APIsharedImagePagePreviewHTML' +
'&requestid=' + navpop.idNumber +
'&action=query&prop=revisions&rvprop=content&titles=' + encart;
Dòng 7.402:
 
// regexps
newOption('popupDabRegexp', '(\\{\\{\\s*disambig(?!uation needed)|disambig(uation|)\\s*\\}\\}|disamb\\s*\\}\\}|dab\\s*\\}\\})|định hướng\\s*\\}\\}|\\{\\{\\s*(((geo|hn|road?|school|number)dis)|[234][lc][acw]|(road|ship)index)(\\s*[|][^}]*)?\\s*[}][}]|is a .*disambiguation.*page');
newOption('popupAnchorRegexp', 'anchors?'); //how to identify an anchors template
newOption('popupStubRegexp', '(sect)?stub[}][}]|This .*-related article is a .*stub');
Dòng 7.718:
 
});
 
// Tiếng Việt
mw.loader.load('//vi.wikipedia.org/w/index.php?title=User:Vinhtantran/strings-vi.js&action=raw&ctype=text/javascript');