Widget:TalkToc:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>=海豚= |
||
第1行: | 第1行: | ||
<noinclude> | <noinclude> </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() { | ||
mw.hook('wikipage.content').add(function() { | |||
if (!mw.config.get('talkTocLoaded')) { | |||
if (!mw.config.get('talkTocLoaded' | mw.config.set('talkTocLoaded', window.setInterval(function() { | ||
mw.config.set('talkTocLoaded', | if (mw.config.get('talkTocStop')) return; | ||
if (!$('#talkTocBox')[0]) { | |||
if ( | console.debug('widgetTalkToc', 'initing'); | ||
var $toc = $('#toc'), | |||
$tocBox, $level2, $li, $svdDcs, $title, $toggle, $tocText, | |||
appendToggleButton; | |||
/* 预处理 */ | /* 预处理 */ |