2 "$schema": "http://json-schema.org/schema#",
3 "description": "MediaWiki extension.json schema",
5 "additionalProperties": false,
9 "description": "Version of the extension.json schema the extension.json file is in.",
14 "description": "The extension's canonical name.",
19 "description": "i18n message key of the extension's name."
23 "description": "The extension's type, as an index to $wgExtensionCredits.",
31 "description": "Extension's authors.",
38 "description": "The version of this release of the extension."
42 "description": "URL to the homepage for the extension.",
43 "format": "uri-reference"
47 "description": "Raw description of the extension."
51 "description": "Message key for a i18n message describing the extension."
55 "description": "SPDX identifier for the license under which the extension is released."
59 "description": "Indicates what versions of MediaWiki core or extensions are required. This syntax may be extended in the future, for example to check dependencies between other services.",
60 "additionalProperties": false,
64 "description": "Version constraint string against MediaWiki core."
68 "description": "Set of version constraint strings against specific extensions."
72 "description": "Set of version constraint strings against specific skins."
76 "ResourceFileModulePaths": {
78 "description": "Default paths to use for all ResourceLoader file modules",
79 "additionalProperties": false,
83 "description": "Base path to prepend to all local paths, relative to current directory"
87 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
91 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
97 "description": "ResourceLoader modules to register",
98 "patternProperties": {
99 "^[a-zA-Z0-9-\\.]+$": {
103 "description": "A ResourceLoaderFileModule definition",
104 "additionalProperties": false,
108 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
112 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
116 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
120 "description": "Path to a file containing a JavaScript \"skip function\", if desired."
123 "type": ["string", "array"],
124 "description": "Scripts to always include (array of file paths)",
131 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
132 "patternProperties": {
133 "^[a-zA-Z0-9-]{2,}$": {
146 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
147 "patternProperties": {
160 "type": ["string", "array"],
161 "description": "Scripts to include in debug contexts",
167 "type": ["string", "array"],
168 "description": "Scripts to include in the startup module",
174 "type": ["string", "array"],
175 "description": "Modules which must be loaded before this module",
181 "type": ["string", "array", "object"],
182 "description": "Styles to always load",
189 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
190 "patternProperties": {
203 "type": ["string", "array"],
204 "description": "Messages to always load",
211 "description": "Group with which this module should be loaded"
214 "type": ["object", "string", "boolean"],
215 "description": "Whether the module is deprecated and usage is discouraged. Either a boolean, or a string or an object with key message can be used to customise deprecation message."
219 "description": "Position on the page to load this module at",
226 "type": ["object", "array"],
227 "description": "Templates to be loaded for client-side usage"
230 "type": ["string", "array"],
231 "description": "ResourceLoader target the module can run on",
238 "description": "Whether to skip CSSJanus LTR-to-RTL flipping for this module. Recommended for styles imported from libraries that already properly handle their RTL styles. Default is false, meaning CSSJanus will be applied on RTL-mode output."
243 "description": "A ResourceLoaderWikiModule definition",
244 "additionalProperties": false,
247 "enum": ["ResourceLoaderWikiModule"]
251 "description": "Group with which this module should be loaded"
255 "description": "Position on the page to load this module at",
262 "type": ["string", "array"],
263 "description": "ResourceLoader target the module can run on",
270 "description": "A list of on-wiki pages containing JavaScript that should be loaded",
277 "description": "A list of on-wiki pages containing CSS that should be loaded",
285 "description": "A ResourceLoaderImageModule definition",
286 "additionalProperties": false,
289 "enum": ["ResourceLoaderImageModule"]
303 "selectorWithoutVariant": {
306 "selectorWithVariant": {
327 "description": "An arbitrary ResourceLoaderModule definition by class",
331 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
334 "required": ["class"]
337 "description": "An arbitrary ResourceLoaderModule definition with instantiator",
341 "description": "A static instantiator function for creating the ResourceLoaderModule object."
344 "required": ["factory"]
350 "ResourceModuleSkinStyles": {
352 "description": "ResourceLoader modules for custom skin styles"
354 "ResourceLoaderSources": {
356 "description": "ResourceLoader sources to register"
358 "ResourceLoaderLESSVars": {
360 "description": "ResourceLoader LESS variables"
364 "description": "Registry of factory functions to create Config objects"
366 "SessionProviders": {
368 "description": "Session providers"
370 "AuthManagerAutoConfig": {
372 "description": "AuthManager auto-configuration",
373 "additionalProperties": false,
377 "description": "Pre-authentication providers"
381 "description": "Primary authentication providers"
385 "description": "Secondary authentication providers"
389 "CentralIdLookupProviders": {
391 "description": "Central ID lookup providers"
393 "ChangeCredentialsBlacklist": {
395 "description": "AuthenticationRequest classes which can only be used internally for credentials change"
397 "RemoveCredentialsBlacklist": {
399 "description": "AuthenticationRequest classes which can only be used internally for credentials removal"
403 "description": "Method to add extra namespaces",
435 "defaultcontentmodel": {
439 "type": ["string", "array"],
440 "description": "Userright(s) required to edit in this namespace"
442 "capitallinkoverride": {
444 "description": "Set $wgCapitalLinks on a per-namespace basis"
448 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
452 "required": ["id", "constant", "name"]
455 "TrackingCategories": {
457 "description": "Tracking category message keys",
462 "DefaultUserOptions": {
464 "description": "Default values of user options"
468 "description": "Preferences users cannot set",
473 "GroupPermissions": {
475 "description": "Default permissions to give to user groups",
476 "patternProperties": {
479 "patternProperties": {
487 "RevokePermissions": {
489 "description": "Default permissions to revoke from user groups",
490 "patternProperties": {
493 "patternProperties": {
501 "GrantPermissions": {
503 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
504 "patternProperties": {
507 "patternProperties": {
515 "GrantPermissionGroups": {
517 "description": "Map of grants to their UI grouping",
518 "patternProperties": {
526 "description": "Implicit groups"
530 "description": "Groups a user can add to themselves"
532 "GroupsRemoveFromSelf": {
534 "description": "Groups a user can remove from themselves"
538 "description": "Groups a user can add to users"
542 "description": "Groups a user can remove from users"
546 "description": "User rights added by the extension",
553 "description": "Mapping of model ID to class name",
554 "patternProperties": {
562 "description": "Rate limits"
564 "RecentChangesFlags": {
566 "description": "Flags (letter symbols) shown on RecentChanges pages"
570 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
572 "ExtensionFunctions": {
577 "description": "Function to call after setup has finished",
582 "ExtensionMessagesFiles": {
584 "description": "File paths containing PHP internationalization data"
588 "description": "Directory paths containing JSON internationalization data"
590 "ExtensionEntryPointListFiles": {
595 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
597 "AutoloadNamespaces": {
599 "description": "Mapping of PSR-4 compliant namespace to directory for autoloading",
600 "patternProperties": {
601 "^[A-Za-z0-9\\\\]+\\\\$": {
605 "additionalProperties": false
611 "type": [ "string", "object" ],
612 "description": "Hooks this extension uses (mapping of hook name to callback)"
616 "description": "Job types this extension implements (mapping of job type to class name or factory function)"
620 "description": "List of new log types this extension uses"
628 "ActionFilteredLogs": {
630 "description": "List of log types which can be filtered by log actions",
631 "patternProperties": {
634 "patternProperties": {
654 "LogActionsHandlers": {
663 "APIFormatModules": {
680 "description": "Available feeds objects"
684 "description": "Map of skin names to OOUI themes to use. Same format as ResourceLoaderOOUIModule::$builtinSkinThemeMap."
688 "description": "Password policies"
692 "description": "Preferred file extensions for uploading",
702 "description": "A function to be called right after MediaWiki processes this file"
707 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
711 "description": "Configuration options for this extension",
712 "patternProperties": {
713 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
722 "array_merge_recursive",
723 "array_replace_recursive",
728 "default": "array_merge"
731 "description": "Whether this should be interpreted as a filesystem path, relative to extension directory root",
736 "type": ["string", "array"],
737 "description": "A description of the config setting, mostly for documentation/developers"
741 "description": "The message key which should be used as a description for this configuration option in a user interface. If empty, description will be used."
746 "description": "Whether this configuration option and its value is allowed to be revealed in public or not."
754 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
756 "ServiceWiringFiles": {
758 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
761 "description":"Registration information for other extensions",
763 "patternProperties": {
766 "patternProperties": {
768 "type": ["array", "object"]
774 "load_composer_autoloader": {
776 "description": "Load the composer autoloader for this extension, if one is present"