Utente:Delfo/common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Delfo (discussione | contributi)
m test
Delfo (discussione | contributi)
test2
Riga 1:
// Check if we're editing a page.
$textarea.wikiEditor( 'addToToolbar', {
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
section: 'characters',
// Add a hook handler.
pages: {
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
emoticons: {
// Configure a new toolbar entry on the given $textarea jQuery object.
layout: 'Citazioni',
$textarea.wikiEditor( 'addToToolbar', {
label: 'Ref',
/* Your code goes here */
characters: [ '<ref>', '{{Cita web|url=|titolo=|accesso=}}', '</ref>']
} );
} );
} );