LLWiki正在建设中,欢迎加入我们

“MediaWiki:Gadget-code-prettify.js”的版本间差异

跳转到导航 跳转到搜索
无编辑摘要
var lines = $this.html().replace(/\n$/, '').split('\n');
if (mw.config.get( 'wgNamespaceNumber' ) == 274) { lines = lines.slice(1, -1); } // 扔掉首尾的Wikitext注释
return $('<ol>', { start: $this.attrdata( 'start' ),
html: lines.map(function(ele, i) { return $('<li>', {html: ele, id: 'L' + (i + 1)}); })
}).css('padding-left', lines.length.toString().length + 2.5 + 'ch');
16,874

个编辑

导航菜单