Widget:NoSubpage:修订间差异
来自Vocawiki
更多语言
更多操作
删除的内容 添加的内容
来源于萌娘百科,依CC BY-NC-SA 3.0 CN导入,原贡献者请参见来源页面历史 标签:由半自动化工具或脚本执行的操作 |
小 // Edit via Wikiplus |
||
| 第1行: | 第1行: | ||
<noinclude>仅供{{tl|NoSubpage}}使用</noinclude><includeonly><!--{if !isset($wgNoSubpage) || !$wgNoSubpage}--><!--{assign var="wgNoSubpage" value=true scope="global"}--><script> |
<noinclude>仅供{{tl|NoSubpage}}使用</noinclude><includeonly><!--{if !isset($wgNoSubpage) || !$wgNoSubpage}--><!--{assign var="wgNoSubpage" value=true scope="global"}--><script> |
||
"use strict"; |
"use strict"; |
||
(() => { |
|||
window.RLQ = window.RLQ || []; |
|||
window.RLQ.push(["jquery", async () => { |
|||
await $.ready; |
|||
/** |
/** |
||
* @type { HTMLElement | null } |
* @type { HTMLElement | null } |
||
| 第19行: | 第17行: | ||
if (!dataVarsLength || dataVarsLength === 1 && dataVars[0] === "") { |
if (!dataVarsLength || dataVarsLength === 1 && dataVars[0] === "") { |
||
document.querySelector(".subpages").remove(); |
|||
mw.util.addCSS(".subpages { display: none !important }"); |
|||
return; |
return; |
||
} |
} |
||
| 第76行: | 第73行: | ||
oldSubpages.remove(); |
oldSubpages.remove(); |
||
} |
} |
||
} |
})(); |
||
</script><!--{/if}--></includeonly> |
</script><!--{/if}--></includeonly> |
||
2025年11月8日 (六) 16:37的最新版本
仅供{{NoSubpage}}使用