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": "Short identifier for the license under which the extension is released.",
80 "BSD-2-Clause-FreeBSD",
81 "BSD-2-Clause-NetBSD",
93 "CNRI-Python-GPL-Compatible",
152 "GPL-2.0-with-autoconf-exception",
153 "GPL-2.0-with-bison-exception",
154 "GPL-2.0-with-classpath-exception",
155 "GPL-2.0-with-font-exception",
156 "GPL-2.0-with-GCC-exception",
159 "GPL-3.0-with-autoconf-exception",
160 "GPL-3.0-with-GCC-exception",
193 "MPL-2.0-no-copyleft-exception",
275 "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.",
279 "description": "Version constraint string against MediaWiki core."
283 "ResourceFileModulePaths": {
285 "description": "Default paths to use for all ResourceLoader file modules",
286 "additionalProperties": false,
290 "description": "Base path to prepend to all local paths, relative to current directory"
294 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
298 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
304 "description": "ResourceLoader modules to register",
305 "additionalProperties": false,
306 "patternProperties": {
307 "^[a-zA-Z0-9-\\.]+$": {
309 "description": "A single ResourceLoader module descriptor",
313 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
317 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
321 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
324 "type": ["string", "array"],
325 "description": "Scripts to always include (array of file paths)",
332 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
333 "patternProperties": {
334 "^[a-zA-Z0-9-]{2,}$": {
347 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
348 "patternProperties": {
361 "type": ["string", "array"],
362 "description": "Scripts to include in debug contexts",
368 "type": ["string", "array"],
369 "description": "Scripts to include in the startup module",
375 "type": ["string", "array"],
376 "description": "Modules which must be loaded before this module",
382 "type": ["string", "array", "object"],
383 "description": "Styles to always load",
390 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
391 "patternProperties": {
404 "type": ["string", "array"],
405 "description": "Messages to always load",
412 "description": "Group which this module should be loaded together with"
416 "description": "Position on the page to load this module at",
424 "description": "Templates to be loaded for client-side usage"
430 "ResourceModuleSkinStyles": {
432 "description": "ResourceLoader modules for custom skin styles"
434 "ResourceLoaderSources": {
436 "description": "ResourceLoader sources to register"
438 "ResourceLoaderLESSVars": {
440 "description": "ResourceLoader LESS variables"
442 "ResourceLoaderLESSFunctions": {
444 "description": "ResourceLoader LESS functions"
446 "ResourceLoaderLESSImportPaths": {
448 "description": "ResourceLoader import paths"
452 "description": "Registry of factory functions to create Config objects"
456 "description": "Method to add extra namespaces",
488 "defaultcontentmodel": {
492 "type": ["string", "array"],
493 "description": "Userright(s) required to edit in this namespace"
495 "capitallinkoverride": {
497 "description": "Set $wgCapitalLinks on a per-namespace basis"
500 "required": ["id", "constant", "name"]
503 "TrackingCategories": {
505 "description": "Tracking category message keys"
507 "DefaultUserOptions": {
509 "description": "Default values of user options"
513 "description": "Preferences users cannot set"
515 "GroupPermissions": {
517 "description": "Default permissions to give to user groups"
519 "RevokePermissions": {
521 "description": "Default permissions to revoke from user groups"
525 "description": "Implicit groups"
529 "description": "Groups a user can add to themselves"
531 "GroupsRemoveFromSelf": {
533 "description": "Groups a user can remove from themselves"
537 "description": "Groups a user can add to users"
541 "description": "Groups a user can remove from users"
545 "description": "User rights added by the extension"
549 "description": "Mapping of model ID to class name"
553 "description": "Rate limits"
555 "RecentChangesFlags": {
557 "description": "Flags (letter symbols) shown on RecentChanges pages"
561 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
563 "ExtensionFunctions": {
568 "description": "Function to call after setup has finished"
570 "ExtensionMessagesFiles": {
572 "description": "File paths containing PHP internationalization data"
576 "description": "Directory paths containing JSON internationalization data"
578 "ExtensionEntryPointListFiles": {
583 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
590 "description": "Hooks this extension uses (mapping of hook name to callback)"
594 "description": "Job types this extension implements (mapping of job type to class name)"
598 "description": "List of new log types this extension uses"
615 "LogActionsHandlers": {
624 "APIFormatModules": {
647 "description": "A function to be called right after MediaWiki processes this file"
651 "description": "Configuration options for this extension",
652 "patternProperties": {
653 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
654 "type": ["object", "array", "string", "integer", "null", "boolean"],
659 "array_merge_recursive",
664 "default": "array_merge"
672 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"