Widget:TalkToc:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
imported>=海豚=
([InPageEdit] 没有编辑摘要 (编辑自Special:Diff/43072))
imported>=海豚=
无编辑摘要
第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) {
          if (mw.config.get("wgUserGroups").filter(n => g.includes(n)).length === 0 && mw.config.get("wgPageName").startsWith("讨论:讨论版")) {
           switch (mw.config.get("wgArticleId")) {
           $("#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("#ca-no-need-to-edit-whole-page-notice a").on("click", function() {
             case 256948:
             var messageDialog = new OO.ui.MessageDialog();
             case 17801:
             var windowManager = new OO.ui.WindowManager();
               $("#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("#ca-no-need-to-edit-whole-page-notice a").on("click", function() {
             $("body").append(windowManager.$element);
                 var messageDialog = new OO.ui.MessageDialog();
             windowManager.addWindows([messageDialog]);
                 var windowManager = new OO.ui.WindowManager();
             messageDialog.title.$label.html("萌娘百科提醒您<br>公共讨论页无需编辑全文");
                 $("body").append(windowManager.$element);
             messageDialog.message.$label.html("<br>提问求助区、讨论版属于公共讨论页,一般来说无须编辑全文,故我们隐藏了入口。<hr>您可以点击下方标题旁的<b>【编辑】链接</b>来编辑对应段落,也可以点击右上方<b>【添加话题】链接</b>来新增话题。");
                 windowManager.addWindows([messageDialog]);
             windowManager.openWindow(messageDialog, {
                 messageDialog.title.$label.html("萌娘百科提醒您<br>公共讨论页无需编辑全文");
               actions: [{
                 messageDialog.message.$label.html("<br>提问求助区、讨论版属于公共讨论页,一般来说无须编辑全文,故我们隐藏了入口。<hr>您可以点击下方标题旁的<b>【编辑】链接</b>来编辑对应段落,也可以点击右上方<b>【添加话题】链接</b>来新增话题。");
                 action: 'accept',
                 windowManager.openWindow(messageDialog, {
                 label: '我知道了',
                   actions: [{
                 flags: 'primary'
                     action: 'accept',
               }]
                     label: '我知道了',
             });
                     flags: 'primary'
           });
                   }]
                 });
               });
               break;
           }
          }
          }
        }
        }
第460行: 第455行:
.cloaked-element.transparent-shield {
.cloaked-element.transparent-shield {
    z-index: 9999999;
    z-index: 9999999;
}
.navpopup {
   z-index: 1000000;
}
}
/* </pre> */
/* </pre> */
</style><!--{/if}--></includeonly>
</style><!--{/if}--></includeonly>

2020年5月1日 (五) 19:59的版本