Diferencia entre revisiones de «MediaWiki:Common.js»
Sin resumen de edición |
Sin resumen de edición |
||
Línea 1: | Línea 1: | ||
mw.loader.load( '/index.php?title=MediaWiki:Flocking.js&action=raw&ctype=text/javascript' ); | //mw.loader.load( '/index.php?title=MediaWiki:Flocking.js&action=raw&ctype=text/javascript' ); | ||
//mw.loader.load( '//en.wikisource.org/wiki/MediaWiki:Gadget-Easy_LST.js?action=raw&ctype=text/javascript' ); | //mw.loader.load( '//en.wikisource.org/wiki/MediaWiki:Gadget-Easy_LST.js?action=raw&ctype=text/javascript' ); | ||
Línea 32: | Línea 32: | ||
// Instalar HotCat | // Instalar HotCat | ||
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' ); | //mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' ); | ||
Línea 38: | Línea 38: | ||
//boton de tachado en la barra de advance | //boton de tachado en la barra de advance | ||
/* | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'main', | section: 'main', | ||
Línea 98: | Línea 99: | ||
} | } | ||
} ); | } ); | ||
*/ |
Revisión del 18:40 19 feb 2019
//mw.loader.load( '/index.php?title=MediaWiki:Flocking.js&action=raw&ctype=text/javascript' );
//mw.loader.load( '//en.wikisource.org/wiki/MediaWiki:Gadget-Easy_LST.js?action=raw&ctype=text/javascript' );
/*
if ( $( '.flocking' ).length ) {
mw.loader.load( 'http://musiki.org.ar/extensions/Flocking/dist/flocking-all.min.js' ) ;
var environment = flock.init();
environment.start();
data = {
synthDef: {
ugen: "flock.ugen.sin",
freq: 440
},
addToEnvironment: true
};
var mySynth = flock.synth( data );
var data = $( '.flocking' ).text();
console.log( data );
}
*/
// Instalar HotCat
//mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
//Wikieditor customization
//boton de tachado en la barra de advance
/*
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'main',
group: 'format',
tools: {
"strikethrough": {
label: 'Strike',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/3/30/Btn_toolbar_rayer.png',
action: {
type: 'encapsulate',
options: {
pre: "<s>",
post: "</s>"
}
}
}
}
});
// math button
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"math": {
label: 'Math',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/2/2e/Button_math.png',
action: {
type: 'encapsulate',
options: {
pre: "<math>",
post: "</math>"
}
}
}
}
} );
//comment button
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"comment": {
label: 'Comment',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/3/37/Btn_toolbar_commentaire.png',
action: {
type: 'encapsulate',
options: {
pre: "<!-- ",
post: " -->"
}
}
}
}
} );
*/