LLWiki正在建设中,欢迎加入我们!
“MediaWiki:Gadget-site-shared.js”的版本间差异
跳转到导航
跳转到搜索
标签:移动版网页编辑 移动版编辑 |
小 |
||
$('#mw-whatlinkshere-list').length === 0) { // 不存在的页面且不存在链入
const target = $('#mw-whatlinkshere-target').val();
if (
mw.timedQuery(new mw.Api(), {titles: target, converttitles: 1}, '繁简页面标题').then(function(data) {
const converted = data.query.pages[0];
if (converted.missing) { return; }
const uri = new mw.Uri();
uri.query.target = converted.title;
uri.query.title = 'Special:链入页面';
uri.path = '/zh';
location.replace( uri.toString() );
}, function() {});
}
}
|