注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
mw.loader.using(['mediawiki.util']).done(function () {
/* Begin of mw.loader.using callback */
// Magic editintros
function addEditIntro(name) {
var editLinks = $('.mw-editsection, #ca-edit, #ca-ve-edit').find('a');
editLinks.each(function (i, el) {
el.href = $(this).attr('href') + '&editintro=' + name;
});
}
$(function () {
if (mw.config.get('wgNamespaceNumber') === 0) {
// Optimizing DOM access by caching
var disambigBox = document.getElementById('disambigbox');
var cats = mw.config.get('wgCategories');
if (disambigBox) {
addEditIntro('Template:Disambig_editintro');
}
if (cats) {
if ($.inArray('Living people', cats) !== -1 || $.inArray('Possibly living people', cats) !== -1) {
addEditIntro('Template:BLP_editintro');
}
}
}
});
/* End of mw.loader.using callback */
});
/* DO NOT ADD CODE BELOW THIS LINE */