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.",
59 "additionalProperties": false,
63 "description": "Version constraint string against MediaWiki core."
67 "description": "Set of version constraint strings against specific extensions."
71 "description": "Set of version constraint strings against specific skins."
75 "ResourceFileModulePaths": {
77 "description": "Default paths to use for all ResourceLoader file modules",
78 "additionalProperties": false,
82 "description": "Base path to prepend to all local paths, relative to current directory"
86 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
90 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
96 "description": "ResourceLoader modules to register",
97 "patternProperties": {
98 "^[a-zA-Z0-9-\\.]+$": {
102 "description": "A ResourceLoaderFileModule definition",
103 "additionalProperties": false,
107 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
111 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
115 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
119 "description": "Path to a file containing a JavaScript \"skip function\", if desired."
122 "type": ["string", "array"],
123 "description": "Scripts to always include (array of file paths)",
130 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
131 "patternProperties": {
132 "^[a-zA-Z0-9-]{2,}$": {
145 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
146 "patternProperties": {
159 "type": ["string", "array"],
160 "description": "Scripts to include in debug contexts",
166 "type": ["string", "array"],
167 "description": "Scripts to include in the startup module",
173 "type": ["string", "array"],
174 "description": "Modules which must be loaded before this module",
180 "type": ["string", "array", "object"],
181 "description": "Styles to always load",
188 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
189 "patternProperties": {
202 "type": ["string", "array"],
203 "description": "Messages to always load",
210 "description": "Group with which this module should be loaded"
213 "type": ["object", "boolean"],
214 "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."
218 "description": "Position on the page to load this module at",
225 "type": ["object", "array"],
226 "description": "Templates to be loaded for client-side usage"
229 "type": ["string", "array"],
230 "description": "ResourceLoader target the module can run on",
237 "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."
242 "description": "A ResourceLoaderWikiModule definition",
243 "additionalProperties": false,
246 "enum": ["ResourceLoaderWikiModule"]
250 "description": "Group with which this module should be loaded"
254 "description": "Position on the page to load this module at",
261 "type": ["string", "array"],
262 "description": "ResourceLoader target the module can run on",
269 "description": "A list of on-wiki pages containing JavaScript that should be loaded",
276 "description": "A list of on-wiki pages containing CSS that should be loaded",
284 "description": "A ResourceLoaderImageModule definition",
285 "additionalProperties": false,
288 "enum": ["ResourceLoaderImageModule"]
299 "selectorWithoutVariant": {
302 "selectorWithVariant": {
320 "description": "An arbitrary ResourceLoaderModule definition",
324 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
327 "required": ["class"]
333 "ResourceModuleSkinStyles": {
335 "description": "ResourceLoader modules for custom skin styles"
337 "ResourceLoaderSources": {
339 "description": "ResourceLoader sources to register"
341 "ResourceLoaderLESSVars": {
343 "description": "ResourceLoader LESS variables"
347 "description": "Registry of factory functions to create Config objects"
349 "SessionProviders": {
351 "description": "Session providers"
353 "AuthManagerAutoConfig": {
355 "description": "AuthManager auto-configuration",
356 "additionalProperties": false,
360 "description": "Pre-authentication providers"
364 "description": "Primary authentication providers"
368 "description": "Secondary authentication providers"
372 "CentralIdLookupProviders": {
374 "description": "Central ID lookup providers"
376 "ChangeCredentialsBlacklist": {
378 "description": "AuthenticationRequest classes which can only be used internally for credentials change"
380 "RemoveCredentialsBlacklist": {
382 "description": "AuthenticationRequest classes which can only be used internally for credentials removal"
386 "description": "Method to add extra namespaces",
418 "defaultcontentmodel": {
422 "type": ["string", "array"],
423 "description": "Userright(s) required to edit in this namespace"
425 "capitallinkoverride": {
427 "description": "Set $wgCapitalLinks on a per-namespace basis"
431 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
435 "required": ["id", "constant", "name"]
438 "TrackingCategories": {
440 "description": "Tracking category message keys",
445 "DefaultUserOptions": {
447 "description": "Default values of user options"
451 "description": "Preferences users cannot set",
456 "GroupPermissions": {
458 "description": "Default permissions to give to user groups",
459 "patternProperties": {
462 "patternProperties": {
470 "RevokePermissions": {
472 "description": "Default permissions to revoke from user groups",
473 "patternProperties": {
476 "patternProperties": {
484 "GrantPermissions": {
486 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
487 "patternProperties": {
490 "patternProperties": {
498 "GrantPermissionGroups": {
500 "description": "Map of grants to their UI grouping",
501 "patternProperties": {
509 "description": "Implicit groups"
513 "description": "Groups a user can add to themselves"
515 "GroupsRemoveFromSelf": {
517 "description": "Groups a user can remove from themselves"
521 "description": "Groups a user can add to users"
525 "description": "Groups a user can remove from users"
529 "description": "User rights added by the extension",
536 "description": "Mapping of model ID to class name",
537 "patternProperties": {
545 "description": "Rate limits"
547 "RecentChangesFlags": {
549 "description": "Flags (letter symbols) shown on RecentChanges pages"
553 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
555 "ExtensionFunctions": {
560 "description": "Function to call after setup has finished",
565 "ExtensionMessagesFiles": {
567 "description": "File paths containing PHP internationalization data"
571 "description": "Directory paths containing JSON internationalization data"
573 "ExtensionEntryPointListFiles": {
578 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
584 "type": [ "string", "object" ],
585 "description": "Hooks this extension uses (mapping of hook name to callback)"
589 "description": "Job types this extension implements (mapping of job type to class name)"
593 "description": "List of new log types this extension uses"
601 "ActionFilteredLogs": {
603 "description": "List of log types which can be filtered by log actions",
604 "patternProperties": {
607 "patternProperties": {
627 "LogActionsHandlers": {
636 "APIFormatModules": {
653 "description": "Available feeds objects"
660 "description": "Password policies"
664 "description": "Preferred file extensions for uploading",
674 "description": "A function to be called right after MediaWiki processes this file"
679 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
683 "description": "Configuration options for this extension",
684 "patternProperties": {
685 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
694 "array_merge_recursive",
695 "array_replace_recursive",
700 "default": "array_merge"
703 "description": "Whether this should be interpreted as a filesystem path, relative to extension directory root",
708 "type": ["string", "array"],
709 "description": "A description of the config setting, mostly for documentation/developers"
717 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
719 "ServiceWiringFiles": {
721 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
723 "load_composer_autoloader": {
725 "description": "Load the composer autoloader for this extension, if one is present"