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 "ResourceLoaderLESSImportPaths": {
444 "description": "ResourceLoader import paths"
448 "description": "Registry of factory functions to create Config objects"
452 "description": "Method to add extra namespaces",
484 "defaultcontentmodel": {
488 "type": ["string", "array"],
489 "description": "Userright(s) required to edit in this namespace"
491 "capitallinkoverride": {
493 "description": "Set $wgCapitalLinks on a per-namespace basis"
496 "required": ["id", "constant", "name"]
499 "TrackingCategories": {
501 "description": "Tracking category message keys"
503 "DefaultUserOptions": {
505 "description": "Default values of user options"
509 "description": "Preferences users cannot set"
511 "GroupPermissions": {
513 "description": "Default permissions to give to user groups"
515 "RevokePermissions": {
517 "description": "Default permissions to revoke from user groups"
521 "description": "Implicit groups"
525 "description": "Groups a user can add to themselves"
527 "GroupsRemoveFromSelf": {
529 "description": "Groups a user can remove from themselves"
533 "description": "Groups a user can add to users"
537 "description": "Groups a user can remove from users"
541 "description": "User rights added by the extension"
545 "description": "Mapping of model ID to class name"
549 "description": "Rate limits"
551 "RecentChangesFlags": {
553 "description": "Flags (letter symbols) shown on RecentChanges pages"
557 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
559 "ExtensionFunctions": {
564 "description": "Function to call after setup has finished"
566 "ExtensionMessagesFiles": {
568 "description": "File paths containing PHP internationalization data"
572 "description": "Directory paths containing JSON internationalization data"
574 "ExtensionEntryPointListFiles": {
579 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
586 "description": "Hooks this extension uses (mapping of hook name to callback)"
590 "description": "Job types this extension implements (mapping of job type to class name)"
594 "description": "List of new log types this extension uses"
611 "LogActionsHandlers": {
620 "APIFormatModules": {
643 "description": "A function to be called right after MediaWiki processes this file"
647 "description": "Configuration options for this extension",
652 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
655 "patternProperties": {
656 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
657 "type": ["object", "array", "string", "integer", "null", "boolean"],
662 "array_merge_recursive",
667 "default": "array_merge"
675 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"