“Widget:HelpBox”的版本间的差异
(创建页面,内容为“<noinclude>Only for {{tl|helpBox}}</noinclude><includeonly><script type="text/javascript"> window.RLQ=window.RLQ||[],window.RLQ.push(function(){mw.loader.implement("…”) |
|||
第1行: | 第1行: | ||
− | <noinclude>Only for {{tl| | + | <noinclude>Only for {{tl|helpbox}}</noinclude><includeonly><script type="text/javascript"> |
window.RLQ=window.RLQ||[],window.RLQ.push(function(){mw.loader.implement("widgetHelpBox",function(a){a("table.helpBox")[0]&&!a("#helpBox")[0]&&(10!=mw.config.get("wgNamespaceNumber")||100281==mw.config.get("wgArticleId"))&&2!=mw.config.get("wgNamespaceNumber")&&(a("#toc")[0]?a("#toc").before(decodeURIComponent("%3Cdiv%20class%3D%22helpBoxSpace%22%20%2F%3E")):a("#mw-content-text > .mw-parser-output > h2:nth-child(4)")[0]?a("#mw-content-text > .mw-parser-output > h2:nth-child(4)").before(decodeURIComponent("%3Cdiv%20class%3D%22helpBoxSpace%22%20%2F%3E")):a(".infoBox")[0]&&a(".infoBox").each(function(){!a(this).next().find(".infoBoxContent")[0]&&a(this).after(decodeURIComponent("%3Cdiv%20class%3D%22helpBoxSpace%22%20%2F%3E"))}),a("#mw-content-text > .mw-parser-output > h2")[0]?a("#mw-content-text > .mw-parser-output > h2:first").prevAll(".helpBoxSpace").first().attr("id","helpBox"):a(".helpBoxSpace").first().attr("id","helpBox"),a("table.helpBox:first").appendTo("#helpBox"))})}); | window.RLQ=window.RLQ||[],window.RLQ.push(function(){mw.loader.implement("widgetHelpBox",function(a){a("table.helpBox")[0]&&!a("#helpBox")[0]&&(10!=mw.config.get("wgNamespaceNumber")||100281==mw.config.get("wgArticleId"))&&2!=mw.config.get("wgNamespaceNumber")&&(a("#toc")[0]?a("#toc").before(decodeURIComponent("%3Cdiv%20class%3D%22helpBoxSpace%22%20%2F%3E")):a("#mw-content-text > .mw-parser-output > h2:nth-child(4)")[0]?a("#mw-content-text > .mw-parser-output > h2:nth-child(4)").before(decodeURIComponent("%3Cdiv%20class%3D%22helpBoxSpace%22%20%2F%3E")):a(".infoBox")[0]&&a(".infoBox").each(function(){!a(this).next().find(".infoBoxContent")[0]&&a(this).after(decodeURIComponent("%3Cdiv%20class%3D%22helpBoxSpace%22%20%2F%3E"))}),a("#mw-content-text > .mw-parser-output > h2")[0]?a("#mw-content-text > .mw-parser-output > h2:first").prevAll(".helpBoxSpace").first().attr("id","helpBox"):a(".helpBoxSpace").first().attr("id","helpBox"),a("table.helpBox:first").appendTo("#helpBox"))})}); | ||
</script></includeonly> | </script></includeonly> |
2022年7月10日 (日) 10:48的最新版本
Only for {{helpbox}}