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.",
42 "format": "uri-reference"
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 PHP, MediaWiki core, extensions or skins are required. This syntax may be extended in the future, for example to check dependencies between other services.",
59 "additionalProperties": false,
63 "description": "Version constraint string against MediaWiki core."
67 "description": "Indicates version constraints against platform services.",
68 "additionalProperties": false,
72 "description": "Version constraint string against PHP."
77 "description": "Whether this extension requires shell access."
80 "patternProperties": {
83 "description": "Required PHP extension.",
90 "description": "Set of version constraint strings against specific extensions."
94 "description": "Set of version constraint strings against specific skins."
100 "description": "Indicates what dependencies are required for development purposes such as running tests. This syntax may be extended in the future.",
101 "additionalProperties": false,
105 "description": "Version constraint string against MediaWiki core."
109 "description": "Indicates version constraints against platform services.",
110 "additionalProperties": false,
114 "description": "Version constraint string against PHP."
119 "description": "Whether this extension requires shell access."
122 "patternProperties": {
125 "description": "Required PHP extension.",
132 "description": "Set of version constraint strings against specific extensions."
136 "description": "Set of version constraint strings against specific skins."
140 "ResourceFileModulePaths": {
142 "description": "Default paths to use for all ResourceLoader file modules",
143 "additionalProperties": false,
147 "description": "Base path to prepend to all local paths, relative to current directory"
151 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
155 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
161 "description": "ResourceLoader modules to register",
162 "patternProperties": {
163 "^[a-zA-Z0-9-\\.]+$": {
167 "description": "A FileModule definition",
168 "additionalProperties": false,
172 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
176 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
180 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
184 "description": "Path to a file containing a JavaScript \"skip function\", if desired."
187 "type": ["string", "array"],
188 "description": "Scripts to always include (array of file paths)",
195 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
196 "patternProperties": {
197 "^[a-zA-Z0-9-]{2,}$": {
210 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
211 "patternProperties": {
224 "type": ["string", "array"],
225 "description": "Scripts to include in debug contexts",
231 "type": ["string", "array"],
232 "description": "Modules which must be loaded before this module",
238 "type": ["string", "array", "object"],
239 "description": "Styles to always load",
246 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
247 "patternProperties": {
260 "type": ["string", "array"],
261 "description": "Messages to always load",
268 "description": "Group with which this module should be loaded"
271 "type": ["object", "string", "boolean"],
272 "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."
276 "description": "Position on the page to load this module at (unused since MediaWiki 1.29)",
283 "type": ["object", "array"],
284 "description": "Templates to be loaded for client-side usage"
287 "type": ["string", "array"],
288 "description": "ResourceLoader target the module can run on",
295 "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."
298 "type": ["string", "array"],
299 "description": "Package files that can be require()d",
301 "type": ["string", "object"]
306 "description": "Whether this module requires an ES6-capable browser. If set to true, loading this module in a non-ES6 browser will cause an error. Using ES6 syntax in modules is not yet supported, but will be in the near future. Default is false."
311 "description": "A WikiModule definition",
312 "additionalProperties": false,
319 "description": "Group with which this module should be loaded"
323 "description": "Position on the page to load this module at (unused since MediaWiki 1.29)",
330 "type": ["string", "array"],
331 "description": "ResourceLoader target the module can run on",
338 "description": "A list of on-wiki pages containing JavaScript that should be loaded",
345 "description": "A list of on-wiki pages containing CSS that should be loaded",
353 "description": "An ImageModule definition",
354 "additionalProperties": false,
361 "description": "Base path to prepend to all local paths. Defaults to $IP"
375 "selectorWithoutVariant": {
378 "selectorWithVariant": {
392 "description": "Position on the page to load this module at (unused since MediaWiki 1.29)",
401 "description": "An arbitrary ResourceLoader Module definition by class",
405 "pattern": "^(?!ResourceLoader(File|Image|Wiki)Module).*$"
408 "required": ["class"]
414 "ResourceModuleSkinStyles": {
416 "description": "ResourceLoader modules for custom skin styles"
418 "ResourceLoaderSources": {
420 "description": "ResourceLoader sources to register"
422 "SkinLessImportPaths": {
424 "description": "Path to the skin-specific LESS import directory, keyed by skin name. Can be used to define skin-specific LESS variables."
428 "description": "A ResourceLoader FileModule definition registered only when wgEnableJavaScriptTest is true.",
429 "additionalProperties": false,
433 "description": "Prefix for local paths to files in $options, relative to extenion directory"
437 "description": "Prefix for URLs to files in $options, relative to $wgExtensionAssetsPath"
441 "description": "Prefix for URLs to files in $options, relative to $wgStylePath"
444 "type": ["string", "array"],
445 "description": "Scripts to include (array of file paths)",
451 "type": ["string", "array"],
452 "description": "Package files that can be require()d",
454 "type": ["string", "object"]
458 "type": ["string", "array"],
459 "description": "Modules which must be loaded before this module",
465 "type": ["string", "array", "object"],
466 "description": "Styles to load",
472 "type": ["object", "array"],
473 "description": "Templates to be loaded for client-side usage",
479 "type": ["string", "array"],
480 "description": "Messages to load",
487 "MessagePosterModule": {
489 "description": "Additional JavaScript files and modules that will register content models with mw.messagePoster.factory.",
490 "additionalProperties": false,
494 "description": "Prefix for local paths to files in $options, relative to extenion directory"
498 "description": "Scripts to include as array of file paths",
505 "description": "Modules which must load before these files",
514 "description": "Registry of factory functions to create Config objects"
516 "SessionProviders": {
518 "description": "Session providers"
520 "AuthManagerAutoConfig": {
522 "description": "AuthManager auto-configuration",
523 "additionalProperties": false,
527 "description": "Pre-authentication providers"
531 "description": "Primary authentication providers"
535 "description": "Secondary authentication providers"
539 "CentralIdLookupProviders": {
541 "description": "Central ID lookup providers"
545 "description": "Method to add extra namespaces",
577 "defaultcontentmodel": {
581 "type": ["string", "array"],
582 "description": "Userright(s) required to edit in this namespace"
584 "capitallinkoverride": {
586 "description": "Set $wgCapitalLinks on a per-namespace basis"
590 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
595 "description": "Whether it is possible to move pages in this namespace",
600 "description": "Whether it is possible to include/transclude pages in this namespace",
604 "required": ["id", "constant", "name"]
607 "TrackingCategories": {
609 "description": "Tracking category message keys",
614 "DefaultUserOptions": {
616 "description": "Default values of user options"
620 "description": "Preferences users cannot set",
625 "GroupPermissions": {
627 "description": "Default permissions to give to user groups",
628 "patternProperties": {
631 "patternProperties": {
639 "RevokePermissions": {
641 "description": "Default permissions to revoke from user groups",
642 "patternProperties": {
645 "patternProperties": {
653 "GrantPermissions": {
655 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
656 "patternProperties": {
659 "patternProperties": {
667 "GrantPermissionGroups": {
669 "description": "Map of grants to their UI grouping",
670 "patternProperties": {
678 "description": "Implicit groups"
682 "description": "Groups a user can add to themselves"
684 "GroupsRemoveFromSelf": {
686 "description": "Groups a user can remove from themselves"
690 "description": "Groups a user can add to users"
694 "description": "Groups a user can remove from users"
698 "description": "User rights added by the extension",
705 "description": "Mapping of model ID to class name or an ObjectFactory specification.",
706 "patternProperties": {
711 "description": "Class name of the ContentHandler."
715 "description": "ObjectFactory specification of the ContentHandler."
723 "description": "Rate limits"
725 "RecentChangesFlags": {
727 "description": "Flags (letter symbols) shown on RecentChanges pages"
731 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
733 "ExtensionFunctions": {
738 "description": "Function to call after setup has finished",
743 "ExtensionMessagesFiles": {
745 "description": "File paths containing PHP internationalization data"
749 "description": "Directory paths containing JSON internationalization data"
751 "ExtensionEntryPointListFiles": {
756 "description": "SpecialPages implemented in this extension (mapping of page name to class name or to ObjectFactory spec)"
758 "AutoloadNamespaces": {
760 "description": "Mapping of PSR-4 compliant namespace to directory for autoloading",
761 "patternProperties": {
762 "^[A-Za-z0-9\\\\]+\\\\$": {
766 "additionalProperties": false
771 "TestAutoloadNamespaces": {
773 "description": "Mapping of PSR-4 compliant namespace to directory for autoloading to be used in tests",
774 "patternProperties": {
775 "^[A-Za-z0-9\\\\]+\\\\$": {
779 "additionalProperties": false
781 "TestAutoloadClasses": {
786 "description": "Hooks this extension uses (mapping of hook name to callback)",
787 "additionalProperties": {
791 "description": "A global function name, static function name, or the name of a property in HookHandlers"
795 "description": "A handler specification",
799 "description": "The name of a property in HookHandlers"
803 "description": "The deprecation acknowledgement flag for the handler. If this is true, calls will be filtered if the relevant hook is deprecated."
812 "description": "An ordered array of handlers",
817 "description": "A global function name, static function name, or the name of a property in HookHandlers"
821 "description": "A handler specification",
825 "description": "The name of a property in HookHandlers"
829 "description": "The deprecation acknowledgement flag for the handler. If this is true, calls will be filtered if the relevant hook is deprecated."
844 "description": "ObjectFactory specifications for new-style hook handlers",
845 "additionalProperties": {
849 "type": ["string", "array"],
850 "description": "A factory function to be called to create the handler for this hook"
854 "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified."
858 "description": "The arguments passed to the handler constructor or factory"
862 "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'."
864 "optional_services": {
866 "description": "If supplied and non-empty, the named services are requested from the service container and appended after 'services' if the services are available; null is passed if the services are not available."
873 "description": "Hooks which are defined and deprecated by the extension",
874 "additionalProperties": {
877 "deprecatedVersion": {
879 "description": "The version in which the hook was deprecated"
883 "description" : "The component to which the deprecated version relates. If omitted, the extension name will be used."
887 "description": "If true, no warning is raised when the hook is called or when a handler is declared. However, call filtering is still activated."
897 "description": "Job types this extension implements (mapping of job type to class name or factory function)"
901 "description": "List of new log types this extension uses"
909 "ActionFilteredLogs": {
911 "description": "List of log types which can be filtered by log actions",
912 "patternProperties": {
915 "patternProperties": {
935 "LogActionsHandlers": {
944 "APIFormatModules": {
958 "description": "Mapping of skin canonical names to PHP class name using the Object Factory specification. Or historically, the human readable name of the skin."
962 "description": "Available feeds objects"
966 "description": "Map of skin names to OOUI themes to use. Same format as MediaWiki\\ResourceLoader\\OOUIModule::$builtinSkinThemeMap."
970 "description": "Map of custom OOUI theme names to paths to load them from. Same format as MediaWiki\\ResourceLoader\\OOUIModule::$builtinThemePaths.",
971 "patternProperties": {
974 "additionalProperties": false,
978 "description": "Path to script file."
982 "description": "Path to style files. '{module}' will be replaced with the module's name."
985 "type": [ "string", "null" ],
986 "description": "Path to images (optional). '{module}' will be replaced with the module's name."
994 "description": "Password policies"
998 "description": "Preferred file extensions for uploading",
1003 "RawHtmlMessages": {
1005 "description": "Messages which are rendered as raw HTML",
1010 "ReauthenticateTime": {
1012 "patternProperties": {
1023 "description": "A function to be called right after MediaWiki processes this file"
1027 "description": "Configuration options for this extension",
1032 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
1035 "patternProperties": {
1036 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
1038 "_merge_strategy": {
1041 "array_merge_recursive",
1042 "array_replace_recursive",
1048 "default": "array_merge"
1054 "ParserTestFiles": {
1056 "description": "DEPRECATED: Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
1060 "description": "Mapping of search canonical names (used in $wgSearchType and $wgSearchTypeAlternatives) using the Object Factory specification"
1062 "ServiceWiringFiles": {
1064 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
1068 "description": "List of route specifications to be added to the REST API",
1076 "description": "The HTTP method name"
1082 "description": "An acceptable HTTP method name"
1089 "description": "The path template. This should start with an initial slash, designating the root of the REST API. Path parameters are enclosed in braces, for example /endpoint/{param}."
1092 "type": ["string", "array"],
1093 "description": "A factory function to be called to create the handler for this route"
1097 "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified."
1101 "description": "The arguments passed to the handler constructor or factory"
1105 "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'."
1112 "description": "List of extension modules to be registered with the Parsoid wikitext parser",
1117 "description": "The fully-qualified name of a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule"
1121 "description": "Object factory specification for a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule",
1124 "type": ["string", "array"],
1125 "description": "A factory function to be called to create an ExtensionModule. This should be omitted if a class is specified."
1128 "required": [ "factory" ]
1132 "description": "Object factory specification for a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule",
1136 "description": "The fully-qualified class name of a class implemeting Wikimedia\\Parsoid\\Ext\\ExtensionModule. This should be omitted if a factory is specified."
1139 "required": [ "class" ]
1143 "description": "A Parsoid extension module configuration array",
1147 "description": "This property must not be present in a configuration array"
1151 "description": "This property must not be present in a configuration array"
1156 "description": "Object factory specification of a class implementing Wikimedia\\Parsoid\\Ext\\DOMProcessor"
1163 "description": "Additional ResourceLoader styles to include"
1170 "description": "The name of an annotation tag"
1177 "description": "An extension tag",
1181 "description": "The name of the extension tag"
1184 "description": "An object factory specification of a class extending Wikimedia\\Parsoid\\Ext\\ExtensionTagHandler"
1188 "description": "Additional Parsoid processing configuration for this extension tag"
1191 "required": ["name"]
1199 "TempUserSerialProviders": {
1201 "description": "Map of temporary user serial provider type name to ObjectFactory spec",
1202 "patternProperties": {
1207 "type": ["string", "array"],
1208 "description": "A factory function"
1212 "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified."
1216 "description": "The arguments passed to the constructor or factory"
1220 "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'."
1226 "TempUserSerialMappings": {
1228 "description": "Map of temporary user serial map type name to ObjectFactory spec",
1229 "patternProperties": {
1234 "type": ["string", "array"],
1235 "description": "A factory function"
1239 "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified."
1243 "description": "The arguments passed to the constructor or factory"
1247 "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'."
1253 "load_composer_autoloader": {
1255 "description": "Load the composer autoloader for this extension, if one is present"