Widget:TalkToc:修订间差异
跳到导航
跳到搜索
无编辑摘要
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
第1行: | 第1行: | ||
<noinclude>Only for [[H萌娘讨论: | <noinclude>Only for [[H萌娘讨论: 提案]]</noinclude><includeonly><!--{if !isset($wgTalkToc) || !$wgTalkToc}--><!--{assign var="wgTalkToc" value=true scope="global"}--><script> | ||
window.RLQ = window.RLQ || []; | window.RLQ = window.RLQ || []; | ||
window.RLQ.push(function() { | window.RLQ.push(function() { | ||
第299行: | 第299行: | ||
}).trigger('hashchange'); | }).trigger('hashchange'); | ||
const g = ["sysop", "patroller"]; | const g = ["sysop", "patroller"]; | ||
if (mw.config.get("wgUserGroups").filter(n => g.includes(n)).length === 0) { | |||
switch (mw.config.get("wgPageName")) { | |||
case "H萌娘讨论:讨论版": | |||
case "H萌娘讨论:提案": | |||
$("#right-navigation").addClass("no-need-to-edit-whole-page").find("#p-views > ul").append('<li id="ca-no-need-to-edit-whole-page-notice" class="collapsible"><span><a href="javascript:void(0);">请勿编辑全文</a></span></li>').find("#collapsible istalk").on("click", function() { | $("#right-navigation").addClass("no-need-to-edit-whole-page").find("#p-views > ul").append('<li id="ca-no-need-to-edit-whole-page-notice" class="collapsible"><span><a href="javascript:void(0);">请勿编辑全文</a></span></li>').find("#collapsible istalk").on("click", function() { | ||
var messageDialog = new OO.ui.MessageDialog(); | var messageDialog = new OO.ui.MessageDialog(); | ||
第315行: | 第318行: | ||
}); | }); | ||
}); | }); | ||
break; | |||
} | |||
} | } | ||
} | } |