- # Type of resource
- const TYPE_SCRIPTS = 'scripts';
- const TYPE_STYLES = 'styles';
- const TYPE_COMBINED = 'combined';
-
- # Desired load type
- // Module only has styles (loaded via <style> or <link rel=stylesheet>)
- const LOAD_STYLES = 'styles';
- // Module may have other resources (loaded via mw.loader from a script)
- const LOAD_GENERAL = 'general';
-
- # sitewide core module like a skin file or jQuery component
- const ORIGIN_CORE_SITEWIDE = 1;
-
- # per-user module generated by the software
- const ORIGIN_CORE_INDIVIDUAL = 2;
-
- # sitewide module generated from user-editable files, like MediaWiki:Common.js, or
- # modules accessible to multiple users, such as those generated by the Gadgets extension.
- const ORIGIN_USER_SITEWIDE = 3;
-
- # per-user module generated from user-editable files, like User:Me/vector.js
- const ORIGIN_USER_INDIVIDUAL = 4;
-
- # an access constant; make sure this is kept as the largest number in this group
- const ORIGIN_ALL = 10;