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

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

跳转到导航 跳转到搜索
删除76字节 、​ 2021年1月11日 (一) 02:02
无编辑摘要
#mw-content-text .mw-parser-output { display:flow-root; overflow:hidden; word-wrap:break-word; }` );
css.disabled = true;
let dialog, actionP, actionD, text, editor, $wrapper, $replace, $charinsert, prefix, ns, section,
lang = mw.config.get( 'wgUserVariant' );
// 也可以使用user.options,这里使用其他方法绕过
},
$placeholder = $('<div>', {class: "mw-parser-output"}).css('display', 'none'), // 用于替换时保留原始数据
$url = $('<a>'), // 桌面版CSS不必需href
$warning = $('<div>', {html: [wgULS("确定要还原为未编辑的状态吗?", "確認要復原為未編輯的狀態嗎?"), '<br>',
wgULS("建议您做好编辑内容备份。", "建議您做好編輯內容備份。")]}),
} : () => {};
mw.loader.using('jquery.ui').then(() => {
const actionP = new OO.ui.ActionWidget({label: '是', target: '_blank', flags: 'progressive'});,
actionD = new OO.ui.ActionWidget({label: '否', flags: 'destructive'});,
$url = $('<a>'), // 桌面版CSS不必需href
label = [wgULS('要在新标签页打开', '要在新標籤頁打開'), $url, wgULS('吗?', '嗎?')];
let labeldialog;
$outer.on('contextmenu', '.cm-mw-template-name', function() {
const template = '模板:' + $(this).text();
let label;
// 这里增加一次确认界面是因为部分浏览器不允许JS直接打开新标签页。
if (!dialog) {
actionP = new OO.ui.ActionWidget({label: '是', target: '_blank', flags: 'progressive'});
actionD = new OO.ui.ActionWidget({label: '否', flags: 'destructive'});
label = [wgULS('要在新标签页打开', '要在新標籤頁打開'), $url, wgULS('吗?', '嗎?')];
}
$url.text( template );
actionP.setHref( mw.util.getUrl(template) ); // 注意url转义
16,874

个编辑

导航菜单