Widget:HelpBox

来自希灵百科
跳转至: 导航搜索

<script type="text/javascript"> window.RLQ=window.RLQ||[],window.RLQ.push(function(){mw.loader.implement("widgetTabs",function(a){a("table.helpBox")[0]&&!a("#helpBox")[0]&&(10!=mw.config.values.wgNamespaceNumber||100281==mw.config.values.wgArticleId)&&2!=mw.config.values.wgNamespaceNumber&&(a("#toc")[0]?a("#toc").before('<div class="helpBoxSpace" />'):a("#mw-content-text > h2:nth-child(4)")[0]?a("#mw-content-text > h2:nth-child(4)").before('<div class="helpBoxSpace" />'):a(".infoBox")[0]&&a(".infoBox").each(function(){!a(this).next().find(".infoBoxContent")[0]&&a(this).after('<div class="helpBoxSpace" />')}),a("#mw-content-text > h2")[0]?a("#mw-content-text > h2:first").prevAll(".helpBoxSpace").first().attr("id","helpBox"):a(".helpBoxSpace").first().attr("id","helpBox"),a("table.helpBox:first").appendTo("#helpBox"))})}); </script>