MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions
Content deleted Content added
Vector is the current default skin |
turning on refTools for everyone, see Wikipedia:Village pump (technical) |
||
Line 170:
if( wgPageName == "Special:Upload" && getURLParamValue( "wpForReUpload") == "1" ) {
appendCSS( "tr.mw-htmlform-field-Licenses {display:none;}" );
}
/** RefToolbar ************************************************
*
* Description: Adds tools for citing references to the edit toolbar.
* See [[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]]
*/
if ( typeof refToolbarInstalled == 'undefined' ) {
if (wgServer == "https://secure.wikimedia.org") {
importScriptURI("https://secure.wikimedia.org/wikipedia/en/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript");
} else {
importScriptURI('http://en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript');
}
if( typeof $.wikiEditor != 'undefined' && typeof $.wikiEditor.modules.dialogs != 'undefined' ) {
importScript('MediaWiki:RefToolbar.js');
} else if( typeof $.wikiEditor != 'undefined' ) {
importScript('MediaWiki:RefToolbarNoDialogs.js');
} else {
importScript('MediaWiki:RefToolbarLegacy.js');
}
refToolbarInstalled = true;
}
|