Content deleted Content added
Polygnotus (talk | contribs) Undid revision 1276269639 by Polygnotus (talk) |
Polygnotus (talk | contribs) No edit summary |
||
Line 22:
}
},
refIdeas: {
label: 'RefIdeas',
filters: [ 'body.ns-3' ],
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/7/79/Office-book.svg',
action: {
type: 'encapsulate',
options: {
pre: '{{refideas\n|1=\n}}',
}
}
},
wpPolicy: {
type: 'element',
element: function ( context ) {
var button = new OO.ui.ButtonInputWidget( {
label: 'WP Policy',
icon: 'article'
} );
button.connect( null, {
click: function ( e ) {
OO.ui.prompt( 'Enter Wikipedia policy/guideline abbreviation (e.g., NPOV, V, RS):' ).done( function ( answer ) {
if ( answer !== null && answer.trim() !== '' ) {
var text = '== [[WP:' + answer + ']] ==\nPlease read [[WP:' + answer + ']], thanks and have a nice day, ~~~~';
context.fn.encapsulateSelection( {
pre: text
} );
}
} );
}
} );
return button.$element;
}
},
exlinkInBody: {
label: 'ExternalLinkInBody',
filters: [ 'body.ns-3' ],
type: 'button',
icon: {
src: '//upload.wikimedia.org/wikipedia/commons/4/44/Icon_External_Link.svg',
width: 26,
Line 38 ⟶ 75:
}
},
uwSpam: {
label: '
filters: [ 'body.ns-3' ],
type: 'button',
Line 50 ⟶ 88:
}
},
teahouseButton: {
label: 'Teahouse',
Line 62 ⟶ 101:
}
},
vand1Button: {
label: 'Vandalism warning level 1',
Line 74 ⟶ 114:
}
},
vand2Button: {
label: 'Vandalism warning level 2',
Line 86 ⟶ 127:
}
},
vand3Button: {
label: 'Vandalism warning level 3',
Line 98 ⟶ 140:
}
},
vand4Button: {
label: 'Vandalism warning level 4',
|