MediaWiki:Gadget-refToolbar.js
De Bioeticawiki
Nota: Despues de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Mayús+R en Mac)
- Internet Explorer/Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
- Opera: Presiona Ctrl+F5.
/** RefToolbar ************************************************
*
* Description: Adds tools for citing references to the edit toolbar.
* See [[:en:Wikipedia:RefToolbar 2.0]] for further documentation.
*
* To disable this script, add <code>refToolbarInstalled = 'bypass';<code> 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 );