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

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

跳转到导航 跳转到搜索
添加151字节 、​ 2021年1月12日 (二) 03:27
无编辑摘要
$original.find( ':header:has(.mw-editsection)' ).dblclick(function() {
section = mw.util.getParamValue( 'section', $(this).find( '.mw-editsection > a' ).attr('href') );
mw.sectionQuery(api, section).then(r => { editor.setValue( r.parse.wikitext ); }, () => {});
editor.setValue( r.parse.wikitext );
secTitle = r.parse.sections[0].line;
}, () => {});
});
// 标注<p>标签
#mw-content-text .mw-parser-output { display:flow-root; overflow:hidden; word-wrap:break-word; }` );
css.disabled = true;
let text, editor, $wrapper, $replace, $charinsert, prefix, ns, section, secTitle,
lang = mw.config.get( 'wgUserVariant' );
// 也可以使用user.options,这里使用其他方法绕过
btns[0].setDisabled( true );
mw.safeEdit(api, curRevid, {pageid: id, text: editor.getValue(), section: section,
summary: (section === undefined ? '' : `/* ${secTitle} */ //`) +
summary: wgULS( '使用[[help:小工具/页面文本对比查看器|页面/文本对比查看器]]快速编辑',
'使用[[help:小工具/页面文本对比查看器|頁面/文本對比察看器]]快速編輯')}, isBackup)
.then(() => { location.reload(); },
16,874

个编辑

导航菜单