This page is a translated version of the page Manual:$wgResourceModules and the translation is 50% complete.
Other languages:
ResourceLoader: $wgResourceModules
Array of all extra defined modules that can later be loaded during the output.
Eingeführt in Version:1.17.0 (r72349)
Entfernt in Version:weiterhin vorhanden
Erlaubte Werte:(multi-dimensional array)


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": [


Siehe MainConfigSchema::ResourceModules.

Loading module

Siehe ResourceLoader/Migration guide (developers)#Adding a module to the page :

Siehe auch