2 "$schema": "http://json-schema.org/schema#",
3 "description": "MediaWiki extension.json schema",
5 "additionalProperties": false,
12 "description": "Arbitrary notes, ignored by the parser."
18 "description": "Version of the extension.json schema the extension.json file is in.",
23 "description": "The extension's canonical name.",
28 "description": "i18n message key of the extension's name."
32 "description": "The extension's type, as an index to $wgExtensionCredits.",
40 "description": "Extension's authors.",
47 "description": "The version of this release of the extension."
51 "description": "URL to the homepage for the extension.",
52 "format": "uri-reference"
56 "description": "Raw description of the extension."
60 "description": "Message key for a i18n message describing the extension."
64 "description": "SPDX identifier for the license under which the extension is released."
68 "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.",
69 "additionalProperties": false,
73 "description": "Version constraint string against MediaWiki core."
77 "description": "Indicates version constraints against platform services.",
78 "additionalProperties": false,
82 "description": "Version constraint string against PHP."
87 "description": "Whether this extension requires shell access."
90 "patternProperties": {
93 "description": "Required PHP extension.",
100 "description": "Set of version constraint strings against specific extensions."
104 "description": "Set of version constraint strings against specific skins."
110 "description": "Indicates what dependencies are required for development purposes such as running tests. This syntax may be extended in the future.",
111 "additionalProperties": false,
115 "description": "Version constraint string against MediaWiki core."
119 "description": "Indicates version constraints against platform services.",
120 "additionalProperties": false,
124 "description": "Version constraint string against PHP."
129 "description": "Whether this extension requires shell access."
132 "patternProperties": {
135 "description": "Required PHP extension.",
142 "description": "Set of version constraint strings against specific extensions."
146 "description": "Set of version constraint strings against specific skins."
150 "ResourceFileModulePaths": {
152 "description": "Default paths to use for all ResourceLoader file modules",
153 "additionalProperties": false,
157 "description": "Base path to prepend to all local paths, relative to current directory"
161 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
165 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
171 "description": "ResourceLoader modules to register",
172 "patternProperties": {
173 "^[a-zA-Z0-9-\\.]+$": {
177 "description": "A ResourceLoaderFileModule definition",
178 "additionalProperties": false,
182 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
186 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
190 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
194 "description": "Path to a file containing a JavaScript \"skip function\", if desired."
197 "type": ["string", "array"],
198 "description": "Scripts to always include (array of file paths)",
205 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
206 "patternProperties": {
207 "^[a-zA-Z0-9-]{2,}$": {
220 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
221 "patternProperties": {
234 "type": ["string", "array"],
235 "description": "Scripts to include in debug contexts",
241 "type": ["string", "array"],
242 "description": "Scripts to include in the startup module",
248 "type": ["string", "array"],
249 "description": "Modules which must be loaded before this module",
255 "type": ["string", "array", "object"],
256 "description": "Styles to always load",
263 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
264 "patternProperties": {
277 "type": ["string", "array"],
278 "description": "Messages to always load",
285 "description": "Group with which this module should be loaded"
288 "type": ["object", "string", "boolean"],
289 "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."
293 "description": "Position on the page to load this module at",
300 "type": ["object", "array"],
301 "description": "Templates to be loaded for client-side usage",
307 "type": ["string", "array"],
308 "description": "ResourceLoader target the module can run on",
315 "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."
318 "type": ["string", "array"],
319 "description": "Package files that can be require()d",
321 "type": ["string", "object"]
326 "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."
331 "description": "A ResourceLoaderWikiModule definition",
332 "additionalProperties": false,
335 "enum": ["ResourceLoaderWikiModule"]
339 "description": "Group with which this module should be loaded"
343 "description": "Position on the page to load this module at",
350 "type": ["string", "array"],
351 "description": "ResourceLoader target the module can run on",
358 "description": "A list of on-wiki pages containing JavaScript that should be loaded",
365 "description": "A list of on-wiki pages containing CSS that should be loaded",
373 "description": "A ResourceLoaderImageModule definition",
374 "additionalProperties": false,
377 "enum": ["ResourceLoaderImageModule"]
381 "description": "Base path to prepend to all local paths. Defaults to $IP"
395 "selectorWithoutVariant": {
398 "selectorWithVariant": {
419 "description": "An arbitrary ResourceLoaderModule definition by class",
423 "pattern": "^(?!ResourceLoader(File|Image|Wiki)Module).*$"
426 "required": ["class"]
429 "description": "An arbitrary ResourceLoaderModule definition with instantiator",
433 "description": "A static instantiator function for creating the ResourceLoaderModule object."
436 "required": ["factory"]
442 "ResourceModuleSkinStyles": {
444 "description": "ResourceLoader modules for custom skin styles"
446 "ResourceLoaderSources": {
448 "description": "ResourceLoader sources to register"
450 "SkinLessImportPaths": {
452 "description": "Path to the skin-specific LESS import directory, keyed by skin name. Can be used to define skin-specific LESS variables."
456 "description": "A ResourceLoaderFileModule definition registered only when wgEnableJavaScriptTest is true.",
457 "additionalProperties": false,
461 "description": "Prefix for local paths to files in $options, relative to extenion directory"
465 "description": "Prefix for URLs to files in $options, relative to $wgExtensionAssetsPath"
469 "description": "Prefix for URLs to files in $options, relative to $wgStylePath"
472 "type": ["string", "array"],
473 "description": "Scripts to include (array of file paths)",
479 "type": ["string", "array"],
480 "description": "Package files that can be require()d",
482 "type": ["string", "object"]
486 "type": ["string", "array"],
487 "description": "Modules which must be loaded before this module",
493 "type": ["string", "array", "object"],
494 "description": "Styles to load",
500 "type": ["object", "array"],
501 "description": "Templates to be loaded for client-side usage",
507 "type": ["string", "array"],
508 "description": "Messages to load",
515 "MessagePosterModule": {
517 "description": "Additional JavaScript files and modules that will register content models with mw.messagePoster.factory.",
518 "additionalProperties": false,
522 "description": "Prefix for local paths to files in $options, relative to extenion directory"
526 "description": "Scripts to include as array of file paths",
533 "description": "Modules which must load before these files",
542 "description": "Registry of factory functions to create Config objects"
544 "SessionProviders": {
546 "description": "Session providers"
548 "AuthManagerAutoConfig": {
550 "description": "AuthManager auto-configuration",
551 "additionalProperties": false,
555 "description": "Pre-authentication providers"
559 "description": "Primary authentication providers"
563 "description": "Secondary authentication providers"
567 "CentralIdLookupProviders": {
569 "description": "Central ID lookup providers"
571 "ChangeCredentialsBlacklist": {
573 "description": "AuthenticationRequest classes which can only be used internally for credentials change"
575 "RemoveCredentialsBlacklist": {
577 "description": "AuthenticationRequest classes which can only be used internally for credentials removal"
581 "description": "Method to add extra namespaces",
613 "defaultcontentmodel": {
617 "type": ["string", "array"],
618 "description": "Userright(s) required to edit in this namespace"
620 "capitallinkoverride": {
622 "description": "Set $wgCapitalLinks on a per-namespace basis"
626 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
631 "description": "Whether it is possible to move pages in this namespace",
635 "required": ["id", "constant", "name"]
638 "TrackingCategories": {
640 "description": "Tracking category message keys",
645 "DefaultUserOptions": {
647 "description": "Default values of user options"
651 "description": "Preferences users cannot set",
656 "GroupPermissions": {
658 "description": "Default permissions to give to user groups",
659 "patternProperties": {
662 "patternProperties": {
670 "RevokePermissions": {
672 "description": "Default permissions to revoke from user groups",
673 "patternProperties": {
676 "patternProperties": {
684 "GrantPermissions": {
686 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
687 "patternProperties": {
690 "patternProperties": {
698 "GrantPermissionGroups": {
700 "description": "Map of grants to their UI grouping",
701 "patternProperties": {
709 "description": "Implicit groups"
713 "description": "Groups a user can add to themselves"
715 "GroupsRemoveFromSelf": {
717 "description": "Groups a user can remove from themselves"
721 "description": "Groups a user can add to users"
725 "description": "Groups a user can remove from users"
729 "description": "User rights added by the extension",
736 "description": "Mapping of model ID to class name",
737 "patternProperties": {
745 "description": "Rate limits"
747 "RecentChangesFlags": {
749 "description": "Flags (letter symbols) shown on RecentChanges pages"
753 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
755 "ExtensionFunctions": {
760 "description": "Function to call after setup has finished",
765 "ExtensionMessagesFiles": {
767 "description": "File paths containing PHP internationalization data"
771 "description": "Directory paths containing JSON internationalization data"
773 "ExtensionEntryPointListFiles": {
778 "description": "SpecialPages implemented in this extension (mapping of page name to class name or to ObjectFactory spec)"
780 "AutoloadNamespaces": {
782 "description": "Mapping of PSR-4 compliant namespace to directory for autoloading",
783 "patternProperties": {
784 "^[A-Za-z0-9\\\\]+\\\\$": {
788 "additionalProperties": false
793 "TestAutoloadNamespaces": {
795 "description": "Mapping of PSR-4 compliant namespace to directory for autoloading to be used in tests",
796 "patternProperties": {
797 "^[A-Za-z0-9\\\\]+\\\\$": {
801 "additionalProperties": false
803 "TestAutoloadClasses": {
808 "description": "Hooks this extension uses (mapping of hook name to callback)",
809 "additionalProperties": {
813 "description": "A global function name, static function name, or the name of a property in HookHandlers"
817 "description": "A handler specification",
821 "description": "The name of a property in HookHandlers"
825 "description": "The deprecation acknowledgement flag for the handler. If this is true, calls will be filtered if the relevant hook is deprecated."
834 "description": "An ordered array of handlers",
839 "description": "A global function name, static function name, or the name of a property in HookHandlers"
843 "description": "A handler specification",
847 "description": "The name of a property in HookHandlers"
851 "description": "The deprecation acknowledgement flag for the handler. If this is true, calls will be filtered if the relevant hook is deprecated."
866 "description": "ObjectFactory specifications for new-style hook handlers",
867 "additionalProperties": {
871 "type": ["string", "array"],
872 "description": "A factory function to be called to create the handler for this hook"
876 "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified."
880 "description": "The arguments passed to the handler constructor or factory"
884 "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'."
886 "optional_services": {
888 "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."
895 "description": "Hooks which are defined and deprecated by the extension",
896 "additionalProperties": {
899 "deprecatedVersion": {
901 "description": "The version in which the hook was deprecated"
905 "description" : "The component to which the deprecated version relates. If omitted, the extension name will be used."
909 "description": "If true, no warning is raised when the hook is called or when a handler is declared. However, call filtering is still activated."
919 "description": "Job types this extension implements (mapping of job type to class name or factory function)"
923 "description": "List of new log types this extension uses"
931 "ActionFilteredLogs": {
933 "description": "List of log types which can be filtered by log actions",
934 "patternProperties": {
937 "patternProperties": {
957 "LogActionsHandlers": {
966 "APIFormatModules": {
980 "description": "Mapping of skin canonical names to PHP class name using the Object Factory specification. Or historically, the human readable name of the skin."
984 "description": "Available feeds objects"
988 "description": "Map of skin names to OOUI themes to use. Same format as ResourceLoaderOOUIModule::$builtinSkinThemeMap."
992 "description": "Map of custom OOUI theme names to paths to load them from. Same format as ResourceLoaderOOUIModule::$builtinThemePaths.",
993 "patternProperties": {
996 "additionalProperties": false,
1000 "description": "Base path to prepend to all local paths, relative to current directory"
1004 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
1008 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
1012 "description": "Path to script file."
1016 "description": "Path to style files. '{module}' will be replaced with the module's name."
1019 "type": [ "string", "null" ],
1020 "description": "Path to images (optional). '{module}' will be replaced with the module's name."
1028 "description": "Password policies"
1032 "description": "Preferred file extensions for uploading",
1037 "RawHtmlMessages": {
1039 "description": "Messages which are rendered as raw HTML",
1044 "ReauthenticateTime": {
1046 "patternProperties": {
1057 "description": "A function to be called right after MediaWiki processes this file"
1062 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
1066 "description": "Configuration options for this extension",
1067 "patternProperties": {
1068 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
1070 "additionalProperties": false,
1078 "array_merge_recursive",
1079 "array_replace_recursive",
1085 "default": "array_merge"
1088 "description": "Whether this should be interpreted as a filesystem path, relative to extension directory root",
1093 "type": ["string", "array"],
1094 "description": "A description of the config setting, mostly for documentation/developers"
1098 "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."
1103 "description": "Whether this configuration option and its value is allowed to be revealed in public or not."
1109 "ParserTestFiles": {
1111 "description": "DEPRECATED: Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
1115 "description": "Mapping of search canonical names (used in $wgSearchType and $wgSearchTypeAlternatives) using the Object Factory specification"
1117 "ServiceWiringFiles": {
1119 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
1123 "description": "List of route specifications to be added to the REST API",
1131 "description": "The HTTP method name"
1137 "description": "An acceptable HTTP method name"
1144 "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}."
1147 "type": ["string", "array"],
1148 "description": "A factory function to be called to create the handler for this route"
1152 "description": "The fully-qualified class name of the handler. This should be omitted if a factory is specified."
1156 "description": "The arguments passed to the handler constructor or factory"
1160 "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'."
1167 "description": "List of extension modules to be registered with the Parsoid wikitext parser",
1172 "description": "The fully-qualified name of a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule"
1176 "description": "An object factory specification for a class implementing Wikimedia\\Parsoid\\Ext\\ExtensionModule",
1179 "type": ["string", "array"],
1180 "description": "A factory function to be called to create an ExtensionModule. This should be omitted if a class is specified."
1184 "description": "The fully-qualified class name of a class implemeting Wikimedia\\Parsoid\\Ext\\ExtensionModule. This should be omitted if a factory is specified."
1188 "description": "The arguments passed to the ExtensionModule constructor or factory"
1194 "description": "A Parsoid extension module configuration array",
1199 "description": "Object factory specification of a class implementing Wikimedia\\Parsoid\\Ext\\DOMProcessor"
1206 "description": "Additional ResourceLoader styles to include"
1213 "description": "An extension tag",
1217 "description": "The name of the extension tag",
1221 "description": "An object factory specification of a class extending Wikimedia\\Parsoid\\Ext\\ExtensionTagHandler"
1225 "description": "Additional Parsoid processing configuration for this extension tag"
1236 "description":"Registration information for other extensions",
1238 "patternProperties": {
1241 "patternProperties": {
1243 "type": ["array", "object"]
1249 "load_composer_autoloader": {
1251 "description": "Load the composer autoloader for this extension, if one is present"