JQuery/ja

jQueryはクロスブラウザの開発を容易にする目的で設計されたライブラリです. MediaWiki 1.16 のリリース以降、jQuery JavaScript ライブラリを同梱しています.

ResourceLoader
MediaWiki 1.17 以降、リソースの読み込みははすべてResourceLoaderを介して行っています (もしくは必須条件). 既定のモジュールの保存先は です. 待ち行列ファイルの統合や最適化はすべて ResourceLoader で処理するため、静的な圧縮バージョンはもはや存在しません. All code can assume that jQuery has already been loaded.

However, if your site skin was created prior to 1.17, ResourceLoader will not be loaded and jQuery will not be available.

ResourceLoader より前
MediaWiki 1.16 shipped with jQuery version 1.3.2 with some patches by Trevor Parscal and Roan Kattouw to fix jQuery bug #5081 (see r60697 and r61700).

In 1.16, the jQuery file is in  and the minified version is   in the same directory.

Extensions can use OutputPage's includeJQuery method, which has existed since r61431, to avoid loading minified version of jQuery core multiple times. It should be noted that includeJQuery does not support jQuery plugins and such.

To include it, paste the following at the bottom of :

MediaWiki 1.16: jQuery.noConflict
Please pay attention to the fact that, to avoid conflicts with other libraries using  (since jQuery was not yet the default), in MediaWiki 1.16 jQuery is loaded in noConflict mode as.

You can use either,   or something like the following to locally alias it:

関連項目

 * jQuery スニペット
 * jQuery スニペット
 * jQuery スニペット

外部リンク

 * jQuery.com, the official jQuery site
 * jQuery Dialog error in IE7. Runtime error: invalid argument - The Dev Pages &mdash; the reason why we patched our jQuery