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",
273 "ResourceFileModulePaths": {
275 "description": "Default paths to use for all ResourceLoader file modules",
276 "additionalProperties": false,
280 "description": "Base path to prepend to all local paths, relative to current directory"
284 "description": "Base path to prepend to all remote paths, relative to $wgExtensionAssetsPath"
288 "description": "Base path to prepend to all remote paths, relative to $wgStylePath"
294 "description": "ResourceLoader modules to register",
295 "additionalProperties": false,
296 "patternProperties": {
297 "^[a-zA-Z0-9-\\.]+$": {
299 "description": "A single ResourceLoader module descriptor",
303 "description": "Base path to prepend to all local paths in $options. Defaults to $IP"
307 "description": "Base path to prepend to all remote paths in $options. Defaults to $wgScriptPath"
311 "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath"
314 "type": ["string", "array"],
315 "description": "Scripts to always include (array of file paths)",
322 "description": "Scripts to include in specific language contexts (mapping of language code to file path(s))",
323 "patternProperties": {
324 "^[a-zA-Z0-9-]{2,}$": {
337 "description": "Scripts to include in specific skin contexts (mapping of skin name to script(s)",
338 "patternProperties": {
351 "type": ["string", "array"],
352 "description": "Scripts to include in debug contexts",
358 "type": ["string", "array"],
359 "description": "Scripts to include in the startup module",
365 "type": ["string", "array"],
366 "description": "Modules which must be loaded before this module",
372 "type": ["string", "array", "object"],
373 "description": "Styles to always load",
380 "description": "Styles to include in specific skin contexts (mapping of skin name to style(s))",
381 "patternProperties": {
394 "type": ["string", "array"],
395 "description": "Messages to always load",
402 "description": "Group which this module should be loaded together with"
406 "description": "Position on the page to load this module at",
414 "description": "Templates to be loaded for client-side usage"
420 "ResourceModuleSkinStyles": {
422 "description": "ResourceLoader modules for custom skin styles"
424 "ResourceLoaderSources": {
426 "description": "ResourceLoader sources to register"
428 "ResourceLoaderLESSVars": {
430 "description": "ResourceLoader LESS variables"
432 "ResourceLoaderLESSFunctions": {
434 "description": "ResourceLoader LESS functions"
436 "ResourceLoaderLESSImportPaths": {
438 "description": "ResourceLoader import paths"
442 "description": "Registry of factory functions to create Config objects"
446 "description": "Method to add extra namespaces",
478 "defaultcontentmodel": {
482 "type": ["string", "array"],
483 "description": "Userright(s) required to edit in this namespace"
485 "capitallinkoverride": {
487 "description": "Set $wgCapitalLinks on a per-namespace basis"
490 "required": ["id", "constant", "name"]
493 "TrackingCategories": {
495 "description": "Tracking category message keys"
497 "DefaultUserOptions": {
499 "description": "Default values of user options"
503 "description": "Preferences users cannot set"
505 "GroupPermissions": {
507 "description": "Default permissions to give to user groups"
509 "RevokePermissions": {
511 "description": "Default permissions to revoke from user groups"
515 "description": "Implicit groups"
519 "description": "Groups a user can add to themselves"
521 "GroupsRemoveFromSelf": {
523 "description": "Groups a user can remove from themselves"
527 "description": "Groups a user can add to users"
531 "description": "Groups a user can remove from users"
535 "description": "User rights added by the extension"
539 "description": "Mapping of model ID to class name"
543 "description": "Rate limits"
545 "RecentChangesFlags": {
547 "description": "Flags (letter symbols) shown on RecentChanges pages"
551 "description": "Plugins for media file type handling. Each entry in the array maps a MIME type to a PHP class name."
553 "ExtensionFunctions": {
558 "description": "Function to call after setup has finished"
560 "ExtensionMessagesFiles": {
562 "description": "File paths containing PHP internationalization data"
566 "description": "Directory paths containing JSON internationalization data"
568 "ExtensionEntryPointListFiles": {
573 "description": "SpecialPages implemented in this extension (mapping of page name to class name)"
580 "description": "Hooks this extension uses (mapping of hook name to callback)"
584 "description": "Job types this extension implements (mapping of job type to class name)"
588 "description": "List of new log types this extension uses"
605 "LogActionsHandlers": {
614 "APIFormatModules": {
637 "description": "A function to be called right after MediaWiki processes this file"
641 "description": "Configuration options for this extension",
642 "patternProperties": {
643 "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": {
644 "type": ["object", "array", "string", "integer", "null", "boolean"],
649 "array_merge_recursive",
654 "default": "array_merge"
662 "description": "Parser test suite files to be run by parserTests.php when no specific filename is passed to it"