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",
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 which this module should be loaded together with"
245 "description": "Position on the page to load this module at",
252 "type": ["string", "array"],
253 "description": "ResourceLoader target the module can run on",
273 "description": "A ResourceLoaderImageModule definition",
274 "additionalProperties": false,
277 "enum": ["ResourceLoaderImageModule"]
288 "selectorWithoutVariant": {
291 "selectorWithVariant": {
309 "description": "An arbitrary ResourceLoaderModule definition",
313 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
316 "required": ["class"]
322 "ResourceModuleSkinStyles": {
324 "description": "ResourceLoader modules for custom skin styles"
326 "ResourceLoaderSources": {
328 "description": "ResourceLoader sources to register"
330 "ResourceLoaderLESSVars": {
332 "description": "ResourceLoader LESS variables"
336 "description": "Registry of factory functions to create Config objects"
338 "SessionProviders": {
340 "description": "Session providers"
342 "AuthManagerAutoConfig": {
344 "description": "AuthManager auto-configuration",
345 "additionalProperties": false,
349 "description": "Pre-authentication providers"
353 "description": "Primary authentication providers"
357 "description": "Secondary authentication providers"
361 "CentralIdLookupProviders": {
363 "description": "Central ID lookup providers"
367 "description": "Method to add extra namespaces",
399 "defaultcontentmodel": {
403 "type": ["string", "array"],
404 "description": "Userright(s) required to edit in this namespace"
406 "capitallinkoverride": {
408 "description": "Set $wgCapitalLinks on a per-namespace basis"
412 "description": "Whether the namespace is conditional upon configuration and should not be registered (requires separate registration via a hook)",
416 "required": ["id", "constant", "name"]
419 "TrackingCategories": {
421 "description": "Tracking category message keys",
426 "DefaultUserOptions": {
428 "description": "Default values of user options"
432 "description": "Preferences users cannot set",
437 "GroupPermissions": {
439 "description": "Default permissions to give to user groups",
440 "patternProperties": {
443 "patternProperties": {
451 "RevokePermissions": {
453 "description": "Default permissions to revoke from user groups",
454 "patternProperties": {
457 "patternProperties": {
465 "GrantPermissions": {
467 "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
468 "patternProperties": {
471 "patternProperties": {
479 "GrantPermissionGroups": {
481 "description": "Map of grants to their UI grouping",
482 "patternProperties": {
490 "description": "Implicit groups"
494 "description": "Groups a user can add to themselves"
496 "GroupsRemoveFromSelf": {
498 "description": "Groups a user can remove from themselves"
502 "description": "Groups a user can add to users"
506 "description": "Groups a user can remove from users"
510 "description": "User rights added by the extension",
517 "description": "Mapping of model ID to class name",
518 "patternProperties": {
526 "description": "Rate limits"
528 "RecentChangesFlags": {
530 "description": "Flags (letter symbols) shown on RecentChanges pages"
534 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
536 "ExtensionFunctions": {
541 "description": "Function to call after setup has finished",
546 "ExtensionMessagesFiles": {
548 "description": "File paths containing PHP internationalization data"
552 "description": "Directory paths containing JSON internationalization data"
554 "ExtensionEntryPointListFiles": {
559 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
565 "type": [ "string", "object" ],
566 "description": "Hooks this extension uses (mapping of hook name to callback)"
570 "description": "Job types this extension implements (mapping of job type to class name)"
574 "description": "List of new log types this extension uses"
582 "ActionFilteredLogs": {
584 "description": "List of log types which can be filtered by log actions",
585 "patternProperties": {
588 "patternProperties": {
608 "LogActionsHandlers": {
617 "APIFormatModules": {
634 "description": "Available feeds objects"
641 "description": "Password policies"
645 "description": "Preferred file extensions for uploading",
655 "description": "A function to be called right after MediaWiki processes this file"
659 "description": "Configuration options for this extension",
664 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
667 "patternProperties": {
668 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
673 "array_merge_recursive",
674 "array_replace_recursive",
679 "default": "array_merge"
687 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
689 "ServiceWiringFiles": {
691 "description": "List of service wiring files to be loaded by the default instance of MediaWikiServices"
693 "load_composer_autoloader": {
695 "description": "Load the composer autoloader for this extension, if one is present"