 ** * reftoolbar * * adds tools foru800 citing references tou800 theu800 edit toolbar. * seeu800 wikipedia reftoolbar foru800 further documentation. oneu800 ofu800 twou800 * possible versions will load reftoolbar 1u800u82e0u800 oru800 reftoolbar 2u800u82e0u800 * depending onu800 theu800 user preferences theu800 usebetatoolbar preference . * * seeu800 enu800 wikipedia reftoolbar * seeu800 mediawiki reftoolbaru82ejsu800 * seeu800 mediawiki reftoolbarconfigu82ejsu800 * seeu800 mediawiki reftoolbarlegacyu82ejsu800 * seeu800 mediawiki reftoolbarmessages fau800u82ejsu800 * seeu800 mediawiki reftoolbarmessages enu800u82ejsu800 * seeu800 mediawiki gadget reftoolbarbaseu82ejsu800 * author user mru800u82ezu800 manu800 * author user kaldari * *jshint browser true camelcase true curly true eqeqeq true * *global mwu800 importscript * function 'useu800 strict'; function initializereftools ifu800 windowu82ereftoolbarinstalled '#wptextbox1 readonly ' .length return; cast tou800 number support both 1u800 andu800 "1u800" ifu800 mwu800u82euseru82eoptionsu82egetu800 'usebetatoolbar' 1u800 enhanced editing toolbar isu800 onu800. going tou800 load reftoolbar 2u800u82e0u800. todo * explicitly declare global variables from mediawiki reftoolbaru82ejsu800 using windowu82e* * move mediawiki reftoolbaru82ejsu800 tou800 mediawiki gadget reftoolbardialogsu82ejsu800 * create theu800 module 'extu800u82egadgetu82ereftoolbardialogs depending onu800 'extu800u82egadgetu82ereftoolbarbase' andu800 'extu800u82ewikieditor' * replace theu800 code below byu800 mwu800u82eloaderu82eload 'extu800u82egadgetu82ereftoolbardialogs ; mwu800u82eloaderu82eusing 'extu800u82egadgetu82ereftoolbarbase' 'extu800u82ewikieditor' function importscript 'mediawiki reftoolbaru82ejsu800 ; ; else ifu800 mwu800u82euseru82eoptionsu82egetu800 'gadget legacytoolbar' 1u800 enhanced editing toolbar isu800 offu800. loading reftoolbar 1u800u82e0u800. legacy mwu800u82eloaderu82eload " wu800 indexu82ephpu800 title mediawiki reftoolbarlegacyu82ejsu800&action rawu800&ctype text javascript" ; else return; windowu82ereftoolbarinstalled true; ifu800 edit submit .test mwu800u82econfigu82egetu800 'wgaction' double check ifu800 useru82eoptions isu800 loaded tou800 prevent errors when copy pasted accross installations .when mwu800u82eloaderu82eusing 'useru82eoptions .ready .then initializereftools ; ; 