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 or extensions are required. This syntax may be extended in the future, for example to check dependencies between other services.",
62 "description": "Version constraint string against MediaWiki core."
66 "description": "Set of version constraint strings against specific extensions."
70 "description": "Set of version constraint strings against specific skins."
74 "ResourceFileModulePaths": {
76 "description": "Default paths to use for all ResourceLoader file modules",
77 "additionalProperties": false,
81 "description": "Base path to prepend to all local paths, relative to current directory"
85 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
89 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
95 "description": "ResourceLoader modules to register",
96 "patternProperties": {
97 "^[a-zA-Z0-9-\\.]+$": {
101 "description": "A ResourceLoaderFileModule definition",
102 "additionalProperties": false,
106 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
110 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
114 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
118 "description": "Path to a file containing a JavaScript \"skip function\", if desired."
121 "type": ["string", "array"],
122 "description": "Scripts to always include (array of file paths)",
129 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
130 "patternProperties": {
131 "^[a-zA-Z0-9-]{2,}$": {
144 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
145 "patternProperties": {
158 "type": ["string", "array"],
159 "description": "Scripts to include in debug contexts",
165 "type": ["string", "array"],
166 "description": "Scripts to include in the startup module",
172 "type": ["string", "array"],
173 "description": "Modules which must be loaded before this module",
179 "type": ["string", "array", "object"],
180 "description": "Styles to always load",
187 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
188 "patternProperties": {
201 "type": ["string", "array"],
202 "description": "Messages to always load",
209 "description": "Group with which this module should be loaded"
212 "type": ["object", "boolean"],
213 "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."
217 "description": "Position on the page to load this module at",
224 "type": ["object", "array"],
225 "description": "Templates to be loaded for client-side usage"
228 "type": ["string", "array"],
229 "description": "ResourceLoader target the module can run on",
236 "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."
241 "description": "A ResourceLoaderWikiModule definition",
242 "additionalProperties": false,
245 "enum": ["ResourceLoaderWikiModule"]
249 "description": "Group with which this module should be loaded"
253 "description": "Position on the page to load this module at",
260 "type": ["string", "array"],
261 "description": "ResourceLoader target the module can run on",
268 "description": "A list of on-wiki pages containing JavaScript that should be loaded",
275 "description": "A list of on-wiki pages containing CSS that should be loaded",
283 "description": "A ResourceLoaderImageModule definition",
284 "additionalProperties": false,
287 "enum": ["ResourceLoaderImageModule"]
298 "selectorWithoutVariant": {
301 "selectorWithVariant": {
319 "description": "An arbitrary ResourceLoaderModule definition",
323 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
326 "required": ["class"]
332 "ResourceModuleSkinStyles": {
334 "description": "ResourceLoader modules for custom skin styles"
336 "ResourceLoaderSources": {
338 "description": "ResourceLoader sources to register"
340 "ResourceLoaderLESSVars": {
342 "description": "ResourceLoader LESS variables"
346 "description": "Registry of factory functions to create Config objects"
348 "SessionProviders": {
350 "description": "Session providers"
352 "AuthManagerAutoConfig": {
354 "description": "AuthManager auto-configuration",
355 "additionalProperties": false,
359 "description": "Pre-authentication providers"
363 "description": "Primary authentication providers"
367 "description": "Secondary authentication providers"
371 "CentralIdLookupProviders": {
373 "description": "Central ID lookup providers"
375 "ChangeCredentialsBlacklist": {
377 "description": "AuthenticationRequest classes which can only be used internally for credentials change"
379 "RemoveCredentialsBlacklist": {
381 "description": "AuthenticationRequest classes which can only be used internally for credentials removal"
385 "description": "Method to add extra namespaces",
417 "defaultcontentmodel": {
421 "type": ["string", "array"],
422 "description": "Userright(s) required to edit in this namespace"
424 "capitallinkoverride": {
426 "description": "Set $wgCapitalLinks on a per-namespace basis"
430 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
434 "required": ["id", "constant", "name"]
437 "TrackingCategories": {
439 "description": "Tracking category message keys",
444 "DefaultUserOptions": {
446 "description": "Default values of user options"
450 "description": "Preferences users cannot set",
455 "GroupPermissions": {
457 "description": "Default permissions to give to user groups",
458 "patternProperties": {
461 "patternProperties": {
469 "RevokePermissions": {
471 "description": "Default permissions to revoke from user groups",
472 "patternProperties": {
475 "patternProperties": {
483 "GrantPermissions": {
485 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
486 "patternProperties": {
489 "patternProperties": {
497 "GrantPermissionGroups": {
499 "description": "Map of grants to their UI grouping",
500 "patternProperties": {
508 "description": "Implicit groups"
512 "description": "Groups a user can add to themselves"
514 "GroupsRemoveFromSelf": {
516 "description": "Groups a user can remove from themselves"
520 "description": "Groups a user can add to users"
524 "description": "Groups a user can remove from users"
528 "description": "User rights added by the extension",
535 "description": "Mapping of model ID to class name",
536 "patternProperties": {
544 "description": "Rate limits"
546 "RecentChangesFlags": {
548 "description": "Flags (letter symbols) shown on RecentChanges pages"
552 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
554 "ExtensionFunctions": {
559 "description": "Function to call after setup has finished",
564 "ExtensionMessagesFiles": {
566 "description": "File paths containing PHP internationalization data"
570 "description": "Directory paths containing JSON internationalization data"
572 "ExtensionEntryPointListFiles": {
577 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
583 "type": [ "string", "object" ],
584 "description": "Hooks this extension uses (mapping of hook name to callback)"
588 "description": "Job types this extension implements (mapping of job type to class name)"
592 "description": "List of new log types this extension uses"
600 "ActionFilteredLogs": {
602 "description": "List of log types which can be filtered by log actions",
603 "patternProperties": {
606 "patternProperties": {
626 "LogActionsHandlers": {
635 "APIFormatModules": {
652 "description": "Available feeds objects"
659 "description": "Password policies"
663 "description": "Preferred file extensions for uploading",
673 "description": "A function to be called right after MediaWiki processes this file"
678 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
682 "description": "Configuration options for this extension",
683 "patternProperties": {
684 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
693 "array_merge_recursive",
694 "array_replace_recursive",
699 "default": "array_merge"
702 "description": "Whether this should be interpreted as a filesystem path, relative to extension directory root",
707 "type": ["string", "array"],
708 "description": "A description of the config setting, mostly for documentation/developers"
716 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
718 "ServiceWiringFiles": {
720 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
722 "load_composer_autoloader": {
724 "description": "Load the composer autoloader for this extension, if one is present"