},
"group": {
"type": "string",
- "description": "Group which this module should be loaded together with"
+ "description": "Group with which this module should be loaded"
},
"position": {
"type": "string",
}
}
},
+ {
+ "description": "A ResourceLoaderWikiModule definition",
+ "additionalProperties": false,
+ "properties": {
+ "class": {
+ "enum": ["ResourceLoaderWikiModule"]
+ },
+ "group": {
+ "type": "string",
+ "description": "Group with which this module should be loaded"
+ },
+ "position": {
+ "type": "string",
+ "description": "Position on the page to load this module at",
+ "enum": [
+ "bottom",
+ "top"
+ ]
+ },
+ "targets": {
+ "type": ["string", "array"],
+ "description": "ResourceLoader target the module can run on",
+ "items": {
+ "type": "string"
+ }
+ },
+ "scripts": {
+ "type": "array",
+ "description": "A list of on-wiki pages containing JavaScript that should be loaded",
+ "items": {
+ "type": "string"
+ }
+ },
+ "styles": {
+ "type": "array",
+ "description": "A list of on-wiki pages containing CSS that should be loaded",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
{
"description": "A ResourceLoaderImageModule definition",
"additionalProperties": false,
"type": "object",
"description": "ResourceLoader LESS variables"
},
- "ResourceLoaderLESSImportPaths": {
- "type": "object",
- "description": "ResourceLoader import paths"
- },
"ConfigRegistry": {
"type": "object",
"description": "Registry of factory functions to create Config objects"
],
"description": "A function to be called right after MediaWiki processes this file"
},
+ "config_prefix": {
+ "type": "string",
+ "default": "wg",
+ "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
+ },
"config": {
"type": "object",
"description": "Configuration options for this extension",
- "properties": {
- "_prefix": {
- "type": "string",
- "default": "wg",
- "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
- }
- },
"patternProperties": {
"^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
+ "type": "object",
"properties": {
- "_merge_strategy": {
+ "value": {
+ "required": true
+ },
+ "merge_strategy": {
"type": "string",
"enum": [
"array_merge_recursive",
"array_merge"
],
"default": "array_merge"
+ },
+ "path": {
+ "description": "Whether this should be interpreted as a filesystem path, relative to extension directory root",
+ "type": "boolean",
+ "default": false
+ },
+ "description": {
+ "type": ["string", "array"],
+ "description": "A description of the config setting, mostly for documentation/developers"
}
}
}