2 "$schema": "http://json-schema.org/schema#",
3 "description": "MediaWiki extension.json schema",
8 "description": "Version of the extension.json schema the extension.json file is in.",
13 "description": "The extension's canonical name.",
18 "description": "i18n message key of the extension's name."
22 "description": "The extension's type, as an index to $wgExtensionCredits.",
30 "description": "Extension's authors.",
37 "description": "The version of this release of the extension."
41 "description": "URL to the homepage for the extension.",
46 "description": "Raw description of the extension."
50 "description": "Message key for a i18n message describing the extension."
54 "description": "SPDX identifier for the license under which the extension is released."
58 "description": "Indicates what versions of MediaWiki core are required. This syntax may be extended in the future, for example to check dependencies between other extensions.",
62 "description": "Version constraint string against MediaWiki core."
66 "ResourceFileModulePaths": {
68 "description": "Default paths to use for all ResourceLoader file modules",
69 "additionalProperties": false,
73 "description": "Base path to prepend to all local paths, relative to current directory"
77 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
81 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
87 "description": "ResourceLoader modules to register",
88 "patternProperties": {
89 "^[a-zA-Z0-9-\\.]+$": {
93 "description": "A ResourceLoaderFileModule definition",
94 "additionalProperties": false,
98 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
102 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
106 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
110 "description": "Path to a file containing a JavaScript \"skip function\", if desired."
113 "type": ["string", "array"],
114 "description": "Scripts to always include (array of file paths)",
121 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
122 "patternProperties": {
123 "^[a-zA-Z0-9-]{2,}$": {
136 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
137 "patternProperties": {
150 "type": ["string", "array"],
151 "description": "Scripts to include in debug contexts",
157 "type": ["string", "array"],
158 "description": "Scripts to include in the startup module",
164 "type": ["string", "array"],
165 "description": "Modules which must be loaded before this module",
171 "type": ["string", "array", "object"],
172 "description": "Styles to always load",
179 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
180 "patternProperties": {
193 "type": ["string", "array"],
194 "description": "Messages to always load",
201 "description": "Group with which this module should be loaded"
204 "type": ["object", "boolean"],
205 "description": "Whether the module is deprecated and usage is discouraged. Either a boolean or an object with key message can be used to customise deprecation message."
209 "description": "Position on the page to load this module at",
216 "type": ["object", "array"],
217 "description": "Templates to be loaded for client-side usage"
220 "type": ["string", "array"],
221 "description": "ResourceLoader target the module can run on",
229 "description": "A ResourceLoaderWikiModule definition",
230 "additionalProperties": false,
233 "enum": ["ResourceLoaderWikiModule"]
237 "description": "Group with which this module should be loaded"
241 "description": "Position on the page to load this module at",
248 "type": ["string", "array"],
249 "description": "ResourceLoader target the module can run on",
256 "description": "A list of on-wiki pages containing JavaScript that should be loaded",
263 "description": "A list of on-wiki pages containing CSS that should be loaded",
271 "description": "A ResourceLoaderImageModule definition",
272 "additionalProperties": false,
275 "enum": ["ResourceLoaderImageModule"]
286 "selectorWithoutVariant": {
289 "selectorWithVariant": {
307 "description": "An arbitrary ResourceLoaderModule definition",
311 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
314 "required": ["class"]
320 "ResourceModuleSkinStyles": {
322 "description": "ResourceLoader modules for custom skin styles"
324 "ResourceLoaderSources": {
326 "description": "ResourceLoader sources to register"
328 "ResourceLoaderLESSVars": {
330 "description": "ResourceLoader LESS variables"
334 "description": "Registry of factory functions to create Config objects"
336 "SessionProviders": {
338 "description": "Session providers"
340 "AuthManagerAutoConfig": {
342 "description": "AuthManager auto-configuration",
343 "additionalProperties": false,
347 "description": "Pre-authentication providers"
351 "description": "Primary authentication providers"
355 "description": "Secondary authentication providers"
359 "CentralIdLookupProviders": {
361 "description": "Central ID lookup providers"
363 "ChangeCredentialsBlacklist": {
365 "description": "AuthenticationRequest classes which can only be used internally for credentials change"
367 "RemoveCredentialsBlacklist": {
369 "description": "AuthenticationRequest classes which can only be used internally for credentials removal"
373 "description": "Method to add extra namespaces",
405 "defaultcontentmodel": {
409 "type": ["string", "array"],
410 "description": "Userright(s) required to edit in this namespace"
412 "capitallinkoverride": {
414 "description": "Set $wgCapitalLinks on a per-namespace basis"
418 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
422 "required": ["id", "constant", "name"]
425 "TrackingCategories": {
427 "description": "Tracking category message keys",
432 "DefaultUserOptions": {
434 "description": "Default values of user options"
438 "description": "Preferences users cannot set",
443 "GroupPermissions": {
445 "description": "Default permissions to give to user groups",
446 "patternProperties": {
449 "patternProperties": {
457 "RevokePermissions": {
459 "description": "Default permissions to revoke from user groups",
460 "patternProperties": {
463 "patternProperties": {
471 "GrantPermissions": {
473 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
474 "patternProperties": {
477 "patternProperties": {
485 "GrantPermissionGroups": {
487 "description": "Map of grants to their UI grouping",
488 "patternProperties": {
496 "description": "Implicit groups"
500 "description": "Groups a user can add to themselves"
502 "GroupsRemoveFromSelf": {
504 "description": "Groups a user can remove from themselves"
508 "description": "Groups a user can add to users"
512 "description": "Groups a user can remove from users"
516 "description": "User rights added by the extension",
523 "description": "Mapping of model ID to class name",
524 "patternProperties": {
532 "description": "Rate limits"
534 "RecentChangesFlags": {
536 "description": "Flags (letter symbols) shown on RecentChanges pages"
540 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
542 "ExtensionFunctions": {
547 "description": "Function to call after setup has finished",
552 "ExtensionMessagesFiles": {
554 "description": "File paths containing PHP internationalization data"
558 "description": "Directory paths containing JSON internationalization data"
560 "ExtensionEntryPointListFiles": {
565 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
571 "type": [ "string", "object" ],
572 "description": "Hooks this extension uses (mapping of hook name to callback)"
576 "description": "Job types this extension implements (mapping of job type to class name)"
580 "description": "List of new log types this extension uses"
588 "ActionFilteredLogs": {
590 "description": "List of log types which can be filtered by log actions",
591 "patternProperties": {
594 "patternProperties": {
614 "LogActionsHandlers": {
623 "APIFormatModules": {
640 "description": "Available feeds objects"
650 "description": "A function to be called right after MediaWiki processes this file"
655 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
659 "description": "Configuration options for this extension",
660 "patternProperties": {
661 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
670 "array_merge_recursive",
675 "default": "array_merge"
678 "description": "Whether this should be interpreted as a filesystem path, relative to extension directory root",
683 "type": ["string", "array"],
684 "description": "A description of the config setting, mostly for documentation/developers"
692 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
694 "ServiceWiringFiles": {
696 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
698 "load_composer_autoloader": {
700 "description": "Load the composer autoloader for this extension, if one is present"