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 "patternProperties": {
306 "^[a-zA-Z0-9-\\.]+$": {
310 "description": "A ResourceLoaderFileModule definition",
311 "additionalProperties": false,
315 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
319 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
323 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
326 "type": ["string", "array"],
327 "description": "Scripts to always include (array of file paths)",
334 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
335 "patternProperties": {
336 "^[a-zA-Z0-9-]{2,}$": {
349 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
350 "patternProperties": {
363 "type": ["string", "array"],
364 "description": "Scripts to include in debug contexts",
370 "type": ["string", "array"],
371 "description": "Scripts to include in the startup module",
377 "type": ["string", "array"],
378 "description": "Modules which must be loaded before this module",
384 "type": ["string", "array", "object"],
385 "description": "Styles to always load",
392 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
393 "patternProperties": {
406 "type": ["string", "array"],
407 "description": "Messages to always load",
414 "description": "Group which this module should be loaded together with"
418 "description": "Position on the page to load this module at",
426 "description": "Templates to be loaded for client-side usage"
429 "type": ["string", "array"],
430 "description": "ResourceLoader target the module can run on",
438 "description": "A ResourceLoaderImageModule definition",
439 "additionalProperties": false,
442 "enum": ["ResourceLoaderImageModule"]
453 "selectorWithoutVariant": {
456 "selectorWithVariant": {
474 "description": "An arbitrary ResourceLoaderModule definition",
478 "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
481 "required": ["class"]
487 "ResourceModuleSkinStyles": {
489 "description": "ResourceLoader modules for custom skin styles"
491 "ResourceLoaderSources": {
493 "description": "ResourceLoader sources to register"
495 "ResourceLoaderLESSVars": {
497 "description": "ResourceLoader LESS variables"
499 "ResourceLoaderLESSImportPaths": {
501 "description": "ResourceLoader import paths"
505 "description": "Registry of factory functions to create Config objects"
509 "description": "Method to add extra namespaces",
541 "defaultcontentmodel": {
545 "type": ["string", "array"],
546 "description": "Userright(s) required to edit in this namespace"
548 "capitallinkoverride": {
550 "description": "Set $wgCapitalLinks on a per-namespace basis"
553 "required": ["id", "constant", "name"]
556 "TrackingCategories": {
558 "description": "Tracking category message keys"
560 "DefaultUserOptions": {
562 "description": "Default values of user options"
566 "description": "Preferences users cannot set"
568 "GroupPermissions": {
570 "description": "Default permissions to give to user groups"
572 "RevokePermissions": {
574 "description": "Default permissions to revoke from user groups"
578 "description": "Implicit groups"
582 "description": "Groups a user can add to themselves"
584 "GroupsRemoveFromSelf": {
586 "description": "Groups a user can remove from themselves"
590 "description": "Groups a user can add to users"
594 "description": "Groups a user can remove from users"
598 "description": "User rights added by the extension"
602 "description": "Mapping of model ID to class name"
606 "description": "Rate limits"
608 "RecentChangesFlags": {
610 "description": "Flags (letter symbols) shown on RecentChanges pages"
614 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
616 "ExtensionFunctions": {
621 "description": "Function to call after setup has finished"
623 "ExtensionMessagesFiles": {
625 "description": "File paths containing PHP internationalization data"
629 "description": "Directory paths containing JSON internationalization data"
631 "ExtensionEntryPointListFiles": {
636 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
643 "description": "Hooks this extension uses (mapping of hook name to callback)"
647 "description": "Job types this extension implements (mapping of job type to class name)"
651 "description": "List of new log types this extension uses"
668 "LogActionsHandlers": {
677 "APIFormatModules": {
700 "description": "A function to be called right after MediaWiki processes this file"
704 "description": "Configuration options for this extension",
709 "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS"
712 "patternProperties": {
713 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
718 "array_merge_recursive",
723 "default": "array_merge"
731 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"
733 "load_composer_autoloader": {
735 "description": "Load the composer autoloader for this extension, if one is present"