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",
228 "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."
233 "description": "A ResourceLoaderWikiModule definition",
234 "additionalProperties": false,
237 "enum": ["ResourceLoaderWikiModule"]
241 "description": "Group with which this module should be loaded"
245 "description": "Position on the page to load this module at",
252 "type": ["string", "array"],
253 "description": "ResourceLoader target the module can run on",
260 "description": "A list of on-wiki pages containing JavaScript that should be loaded",
267 "description": "A list of on-wiki pages containing CSS that should be loaded",
275 "description": "A ResourceLoaderImageModule definition",
276 "additionalProperties": false,
279 "enum": ["ResourceLoaderImageModule"]
290 "selectorWithoutVariant": {
293 "selectorWithVariant": {
311 "description": "An arbitrary ResourceLoaderModule definition",
315 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
318 "required": ["class"]
324 "ResourceModuleSkinStyles": {
326 "description": "ResourceLoader modules for custom skin styles"
328 "ResourceLoaderSources": {
330 "description": "ResourceLoader sources to register"
332 "ResourceLoaderLESSVars": {
334 "description": "ResourceLoader LESS variables"
338 "description": "Registry of factory functions to create Config objects"
340 "SessionProviders": {
342 "description": "Session providers"
344 "AuthManagerAutoConfig": {
346 "description": "AuthManager auto-configuration",
347 "additionalProperties": false,
351 "description": "Pre-authentication providers"
355 "description": "Primary authentication providers"
359 "description": "Secondary authentication providers"
363 "CentralIdLookupProviders": {
365 "description": "Central ID lookup providers"
367 "ChangeCredentialsBlacklist": {
369 "description": "AuthenticationRequest classes which can only be used internally for credentials change"
371 "RemoveCredentialsBlacklist": {
373 "description": "AuthenticationRequest classes which can only be used internally for credentials removal"
377 "description": "Method to add extra namespaces",
409 "defaultcontentmodel": {
413 "type": ["string", "array"],
414 "description": "Userright(s) required to edit in this namespace"
416 "capitallinkoverride": {
418 "description": "Set $wgCapitalLinks on a per-namespace basis"
422 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
426 "required": ["id", "constant", "name"]
429 "TrackingCategories": {
431 "description": "Tracking category message keys",
436 "DefaultUserOptions": {
438 "description": "Default values of user options"
442 "description": "Preferences users cannot set",
447 "GroupPermissions": {
449 "description": "Default permissions to give to user groups",
450 "patternProperties": {
453 "patternProperties": {
461 "RevokePermissions": {
463 "description": "Default permissions to revoke from user groups",
464 "patternProperties": {
467 "patternProperties": {
475 "GrantPermissions": {
477 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
478 "patternProperties": {
481 "patternProperties": {
489 "GrantPermissionGroups": {
491 "description": "Map of grants to their UI grouping",
492 "patternProperties": {
500 "description": "Implicit groups"
504 "description": "Groups a user can add to themselves"
506 "GroupsRemoveFromSelf": {
508 "description": "Groups a user can remove from themselves"
512 "description": "Groups a user can add to users"
516 "description": "Groups a user can remove from users"
520 "description": "User rights added by the extension",
527 "description": "Mapping of model ID to class name",
528 "patternProperties": {
536 "description": "Rate limits"
538 "RecentChangesFlags": {
540 "description": "Flags (letter symbols) shown on RecentChanges pages"
544 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
546 "ExtensionFunctions": {
551 "description": "Function to call after setup has finished",
556 "ExtensionMessagesFiles": {
558 "description": "File paths containing PHP internationalization data"
562 "description": "Directory paths containing JSON internationalization data"
564 "ExtensionEntryPointListFiles": {
569 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
575 "type": [ "string", "object" ],
576 "description": "Hooks this extension uses (mapping of hook name to callback)"
580 "description": "Job types this extension implements (mapping of job type to class name)"
584 "description": "List of new log types this extension uses"
592 "ActionFilteredLogs": {
594 "description": "List of log types which can be filtered by log actions",
595 "patternProperties": {
598 "patternProperties": {
618 "LogActionsHandlers": {
627 "APIFormatModules": {
644 "description": "Available feeds objects"
654 "description": "A function to be called right after MediaWiki processes this file"
659 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
663 "description": "Configuration options for this extension",
664 "patternProperties": {
665 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
674 "array_merge_recursive",
679 "default": "array_merge"
682 "description": "Whether this should be interpreted as a filesystem path, relative to extension directory root",
687 "type": ["string", "array"],
688 "description": "A description of the config setting, mostly for documentation/developers"
696 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
698 "ServiceWiringFiles": {
700 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
702 "load_composer_autoloader": {
704 "description": "Load the composer autoloader for this extension, if one is present"