Diferencia entre revisiones de «MediaWiki:Gadget-refToolbar»
De Bioeticawiki
Línea 1: | Línea 1: | ||
/** RefToolbar ************************************************ | /** RefToolbar ************************************************ hola :D | ||
* | * | ||
* Description: Adds tools for citing references to the edit toolbar. | * Description: Adds tools for citing references to the edit toolbar. |
Revisión del 11:49 27 jul 2016
/** RefToolbar ************************************************ hola :D
*
* Description: Adds tools for citing references to the edit toolbar.
* See en:Wikipedia:RefToolbar 2.0 for further documentation.
*
* To disable this script, add refToolbarInstalled = 'bypass'; to Special:Mypage/vector.js.
*
* Maintainers: User:Mr.Z-man, User:Kaldari
*/
function initializeRefTools() {
if ( typeof refToolbarInstalled == 'undefined' ) {
importScriptURI('//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript');
if( mw.user.options.get('usebetatoolbar') && mw.user.options.get('usebetatoolbar-cgd') ) {
// Enhanced editing toolbar is on with dialogs. Load standard refToolbar.
importScript('MediaWiki:RefToolbar.js');
} else if( mw.user.options.get('usebetatoolbar') ) {
// Dialogs are off. Load refToolbar 2.0 without dialogs.
importScriptURI('//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarNoDialogs.js&action=raw&ctype=text/javascript');
} else {
// Enhanced editing toolbar is off. Load legacy refToolbar 1.0.
importScriptURI('//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarLegacy.js&action=raw&ctype=text/javascript');
}
window.refToolbarInstalled = true;
}
}
$( initializeRefTools );