|
|
(No se muestran 18 ediciones intermedias de otro usuario) |
Línea 1: |
Línea 1: |
| /** RefToolbar ************************************************
| | [[:en:Wikipedia:RefToolbar|refTools]], añade un botón a la barra de edición para añadir rápidamente las citas más comunes. |
| *adasdasd
| |
| * 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 );
| |
Revisión actual del 12:22 26 oct 2018
refTools, añade un botón a la barra de edición para añadir rápidamente las citas más comunes.