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

无编辑摘要
items[ $menu.closest( 'tr' ).index() ][0] = getName( this );
}).css('z-index', 2);
mw.loader.usingstandardQuery( 'mediawikinew mw.api'Api() ).then(()data => {
items = [...data[0].query.pages[0].revisions[0].content.matchAll( /首[页頁]\/[标標][签籤]\|(.+?)}}(.+?)\n/g )]
Promise.all([mw.standardQuery( new mw.Api() ), mw.loader.using( 'oojs-ui-core' )]).then(data => {
.map(ele => [ele[1].trim(), ele[2].trim()]);
items = [...data[0].query.pages[0].revisions[0].content.matchAll( /首[页頁]\/[标標][签籤]\|(.+?)}}(.+?)\n/g )]
$('.mw-parser-output table').on('dblclick', 'td:first-child', function() {
.map(ele => [ele[1].trim(), ele[2].trim()]);
$('menu.mw-parser-output table').onappendTo('dblclick', 'td:first-child',this function() {;
$menu.setSelected( findSelected( items[ $menu(this).appendToparent().index() this][0].toLowerCase() ) ).open();
}).on('dblclick', 'td:last-child', function() {
$menu.setSelected( findSelected( items[ $(this).parent().index() ][0].toLowerCase() ) ).open();
}).on('dblclick',const 'td:last-child',$this function= $(this) {,
input = new OO.ui.MultilineTextInputWidget({autosize: true, value: items[ $this.parent().index() ][1]});
const $this = $(this),
$this.html( input = new OO.ui.MultilineTextInputWidget({ autosize:$element true,);
value: items[ $this.parent().index() ][1]
});
$this.html( input.$element );
});
});
});
16,874

个编辑