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 which this module should be loaded together with"
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",
229 "description": "A ResourceLoaderWikiModule definition",
230 "additionalProperties": false,
233 "enum": ["ResourceLoaderWikiModule"]
237 "description": "Group which this module should be loaded together with"
241 "description": "Position on the page to load this module at",
248 "type": ["string", "array"],
249 "description": "ResourceLoader target the module can run on",
269 "description": "A ResourceLoaderImageModule definition",
270 "additionalProperties": false,
273 "enum": ["ResourceLoaderImageModule"]
284 "selectorWithoutVariant": {
287 "selectorWithVariant": {
305 "description": "An arbitrary ResourceLoaderModule definition",
309 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
312 "required": ["class"]
318 "ResourceModuleSkinStyles": {
320 "description": "ResourceLoader modules for custom skin styles"
322 "ResourceLoaderSources": {
324 "description": "ResourceLoader sources to register"
326 "ResourceLoaderLESSVars": {
328 "description": "ResourceLoader LESS variables"
332 "description": "Registry of factory functions to create Config objects"
334 "SessionProviders": {
336 "description": "Session providers"
338 "AuthManagerAutoConfig": {
340 "description": "AuthManager auto-configuration",
341 "additionalProperties": false,
345 "description": "Pre-authentication providers"
349 "description": "Primary authentication providers"
353 "description": "Secondary authentication providers"
357 "CentralIdLookupProviders": {
359 "description": "Central ID lookup providers"
363 "description": "Method to add extra namespaces",
395 "defaultcontentmodel": {
399 "type": ["string", "array"],
400 "description": "Userright(s) required to edit in this namespace"
402 "capitallinkoverride": {
404 "description": "Set $wgCapitalLinks on a per-namespace basis"
408 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
412 "required": ["id", "constant", "name"]
415 "TrackingCategories": {
417 "description": "Tracking category message keys",
422 "DefaultUserOptions": {
424 "description": "Default values of user options"
428 "description": "Preferences users cannot set",
433 "GroupPermissions": {
435 "description": "Default permissions to give to user groups",
436 "patternProperties": {
439 "patternProperties": {
447 "RevokePermissions": {
449 "description": "Default permissions to revoke from user groups",
450 "patternProperties": {
453 "patternProperties": {
461 "GrantPermissions": {
463 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
464 "patternProperties": {
467 "patternProperties": {
475 "GrantPermissionGroups": {
477 "description": "Map of grants to their UI grouping",
478 "patternProperties": {
486 "description": "Implicit groups"
490 "description": "Groups a user can add to themselves"
492 "GroupsRemoveFromSelf": {
494 "description": "Groups a user can remove from themselves"
498 "description": "Groups a user can add to users"
502 "description": "Groups a user can remove from users"
506 "description": "User rights added by the extension",
513 "description": "Mapping of model ID to class name",
514 "patternProperties": {
522 "description": "Rate limits"
524 "RecentChangesFlags": {
526 "description": "Flags (letter symbols) shown on RecentChanges pages"
530 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
532 "ExtensionFunctions": {
537 "description": "Function to call after setup has finished",
542 "ExtensionMessagesFiles": {
544 "description": "File paths containing PHP internationalization data"
548 "description": "Directory paths containing JSON internationalization data"
550 "ExtensionEntryPointListFiles": {
555 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
561 "type": [ "string", "object" ],
562 "description": "Hooks this extension uses (mapping of hook name to callback)"
566 "description": "Job types this extension implements (mapping of job type to class name)"
570 "description": "List of new log types this extension uses"
578 "ActionFilteredLogs": {
580 "description": "List of log types which can be filtered by log actions",
581 "patternProperties": {
584 "patternProperties": {
604 "LogActionsHandlers": {
613 "APIFormatModules": {
630 "description": "Available feeds objects"
640 "description": "A function to be called right after MediaWiki processes this file"
644 "description": "Configuration options for this extension",
649 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
652 "patternProperties": {
653 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
658 "array_merge_recursive",
663 "default": "array_merge"
671 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
673 "ServiceWiringFiles": {
675 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
677 "load_composer_autoloader": {
679 "description": "Load the composer autoloader for this extension, if one is present"