无编辑摘要
imported>=海豚= (创建页面,内容为“// <pre> "use strict"; $(() => (async () => { if (mw.config.get("wgCanonicalSpecialPageName") !== "Whatlinkshere") { return; } const target = (do…”) |
imported>=海豚= 无编辑摘要 |
||
| 第37行: | 第37行: | ||
})(); | })(); | ||
const ns = { | const ns = { | ||
0: "", | 0: " 条目", | ||
1: "讨论", | 1: "讨论", | ||
2: "用户", | 2: "用户", | ||
3: "用户讨论", | 3: "用户讨论", | ||
4: "萌娘 | 4: "H 萌娘", | ||
5: "萌娘 | 5: "H 萌娘讨论", | ||
6: "文件", | 6: "文件", | ||
7: "文件讨论", | 7: "文件讨论", | ||
| 第93行: | 第93行: | ||
}; | }; | ||
const global = { redirect: 0 }; | const global = { redirect: 0 }; | ||
p.text(`共有${list.length}个页面含有到本页面的站内链接 | p.text(`共有${list.length}个页面含有到本页面的站内链接,其中有${list.filter((item) => "redirect" in item).length}个重定向页面。按名字空间划分如下:`); | ||
const ul = $("<ul/>"); | const ul = $("<ul/>"); | ||
list.forEach((item) => { | list.forEach((item) => { | ||