Lưu ý: Đây chưa phải phiên bản chính thức.

Từ điển nhân khẩu học đa ngữ, bản in lần thứ hai

Khác biệt giữa các bản “MediaWiki:Common.js”

Từ Demopædia
Bước tới: chuyển hướng, tìm kiếm
(Back to minimum)
n (Đã nhập 1 phiên bản)
 
(Không có sự khác biệt)

Bản hiện tại lúc 22:27, ngày 25 tháng 6 năm 2017

/**
 * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
 * loaded for all users on every wiki page. If possible create a gadget that is
 * enabled by default instead of adding it here (since gadgets are fully
 * optimized ResourceLoader modules with possibility to add dependencies etc.)
 *
 * Since Common.js isn't a gadget, there is no place to declare its
 * dependencies, so we have to lazy load them with mw.loader.using on demand and
 * then execute the rest in the callback. In most cases these dependencies will
 * be loaded (or loading) already and the callback will not be delayed. In case a
 * dependency hasn't arrived yet it'll make sure those are loaded before this.
 */