From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgResourceModules and the translation is 30% complete.
Outdated translations are marked like this.
Other languages:
English • ‎français • ‎polski • ‎中文 • ‎日本語
ResourceLoader: $wgResourceModules
Array of all extra defined modules that can later be loaded during the output.
Wprowadzono w wersji:1.17.0 (r72349)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(multi-dimensional array)
Domyślna wartość:[]


Below is an example of how to use this in an extension. You would put this in your extension.json file.

"ResourceModules": {
    "ext.MyExtension": {
        "localBasePath": "modules/ext.MyExtension",
        "remoteExtPath": "MyExtension/modules/ext.MyExtension",
        "styles": [
        "packageFiles": [
        "messages": [
        "dependencies": [


Loading module

Zobacz też