mediawiki-extensions-Scribunto/extension.json
DannyS712 cd885e83cb Use WikiPage::doUserEditContent() instead of ::doEditContent()
::doUserEditContent() is available since 1.36 as a replacement
for ::doEditContent(), which has been deprecated. Bump the
required version of MediaWiki to 1.36 accordingly.

Results in passing a user where previously the fallback
to $wgUser was being used.

Bug: T255507
Change-Id: I11e4a305e66935ea1d1b4692561fb5d49871a729
2021-06-24 05:58:13 +00:00

210 lines
8.4 KiB
JSON

{
"name": "Scribunto",
"author": [
"Victor Vasiliev",
"Tim Starling",
"Brad Jorsch"
],
"url": "https://www.mediawiki.org/wiki/Extension:Scribunto",
"descriptionmsg": "scribunto-desc",
"license-name": "GPL-2.0-or-later AND MIT",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.36.0"
},
"APIModules": {
"scribunto-console": "ApiScribuntoConsole"
},
"ContentHandlers": {
"Scribunto": "ScribuntoContentHandler"
},
"TrackingCategories": [
"scribunto-common-error-category",
"scribunto-module-with-errors-category"
],
"MessagesDirs": {
"Scribunto": [
"i18n",
"i18n/api"
]
},
"ExtensionMessagesFiles": {
"ScribuntoMagic": "Scribunto.magic.php",
"ScribuntoNamespaces": "Scribunto.namespaces.php"
},
"AutoloadClasses": {
"ScribuntoEngineBase": "includes/common/ScribuntoEngineBase.php",
"ScribuntoModuleBase": "includes/common/ScribuntoModuleBase.php",
"ScribuntoHooks": "includes/common/Hooks.php",
"ScribuntoException": "includes/common/ScribuntoException.php",
"Scribunto": "includes/common/Scribunto.php",
"ApiScribuntoConsole": "includes/common/ApiScribuntoConsole.php",
"ScribuntoContentHandler": "includes/common/ScribuntoContentHandler.php",
"ScribuntoContent": "includes/common/ScribuntoContent.php",
"Scribunto_LuaError": "includes/engines/LuaCommon/LuaError.php",
"Scribunto_LuaInterpreterNotFoundError": "includes/engines/LuaCommon/LuaInterpreterNotFoundError.php",
"Scribunto_LuaInterpreterBadVersionError": "includes/engines/LuaCommon/LuaInterpreterBadVersionError.php",
"Scribunto_LuaSandboxInterpreter": "includes/engines/LuaSandbox/LuaSandboxInterpreter.php",
"Scribunto_LuaSandboxCallback": "includes/engines/LuaSandbox/LuaSandboxCallback.php",
"Scribunto_LuaStandaloneInterpreterFunction": "includes/engines/LuaStandalone/LuaStandaloneInterpreterFunction.php",
"Scribunto_LuaEngine": "includes/engines/LuaCommon/LuaEngine.php",
"Scribunto_LuaModule": "includes/engines/LuaCommon/LuaModule.php",
"Scribunto_LuaInterpreter": "includes/engines/LuaCommon/LuaInterpreter.php",
"Scribunto_LuaSandboxEngine": "includes/engines/LuaSandbox/LuaSandboxEngine.php",
"Scribunto_LuaStandaloneEngine": "includes/engines/LuaStandalone/LuaStandaloneEngine.php",
"Scribunto_LuaStandaloneInterpreter": "includes/engines/LuaStandalone/LuaStandaloneInterpreter.php",
"Scribunto_LuaLibraryBase": "includes/engines/LuaCommon/LibraryBase.php",
"Scribunto_LuaSiteLibrary": "includes/engines/LuaCommon/SiteLibrary.php",
"Scribunto_LuaUriLibrary": "includes/engines/LuaCommon/UriLibrary.php",
"Scribunto_LuaUstringLibrary": "includes/engines/LuaCommon/UstringLibrary.php",
"Scribunto_LuaLanguageLibrary": "includes/engines/LuaCommon/LanguageLibrary.php",
"Scribunto_LuaMessageLibrary": "includes/engines/LuaCommon/MessageLibrary.php",
"Scribunto_LuaTitleLibrary": "includes/engines/LuaCommon/TitleLibrary.php",
"Scribunto_LuaTextLibrary": "includes/engines/LuaCommon/TextLibrary.php",
"Scribunto_LuaHtmlLibrary": "includes/engines/LuaCommon/HtmlLibrary.php",
"Scribunto_LuaHashLibrary": "includes/engines/LuaCommon/HashLibrary.php"
},
"TestAutoloadClasses": {
"Scribunto_LuaCommonTestsFailLibrary": "tests/phpunit/engines/LuaCommon/LuaCommonTestsFailLibrary.php",
"Scribunto_LuaCommonTestsLibrary": "tests/phpunit/engines/LuaCommon/LuaCommonTestsLibrary.php",
"Scribunto_LuaDataProvider": "tests/phpunit/engines/LuaCommon/LuaDataProvider.php",
"Scribunto_LuaEngineTestBase": "tests/phpunit/engines/LuaCommon/LuaEngineTestBase.php",
"Scribunto_LuaEngineTestHelper": "tests/phpunit/engines/LuaCommon/LuaEngineTestHelper.php",
"Scribunto_LuaEngineTestSkip": "tests/phpunit/engines/LuaCommon/LuaEngineTestSkip.php",
"Scribunto_LuaEngineUnitTestBase": "tests/phpunit/engines/LuaCommon/LuaEngineUnitTestBase.php",
"UstringLibraryNormalizationTestProvider": "tests/phpunit/engines/LuaCommon/UstringLibraryNormalizationTestProvider.php"
},
"ResourceModules": {
"ext.scribunto.errors": {
"scripts": "ext.scribunto.errors.js",
"styles": "ext.scribunto.errors.css",
"dependencies": [
"jquery.ui"
],
"messages": [
"scribunto-parser-dialog-title"
]
},
"ext.scribunto.logs": {
"styles": "ext.scribunto.logs.css"
},
"ext.scribunto.edit": {
"scripts": "ext.scribunto.edit.js",
"styles": "ext.scribunto.edit.css",
"dependencies": [
"mediawiki.api",
"jquery.spinner"
],
"messages": [
"scribunto-console-title",
"scribunto-console-intro",
"scribunto-console-clear",
"scribunto-console-cleared",
"scribunto-console-cleared-session-lost"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "Scribunto/modules"
},
"Hooks": {
"SoftwareInfo": "ScribuntoHooks::getSoftwareInfo",
"ParserFirstCallInit": "ScribuntoHooks::setupParserHook",
"ParserLimitReportPrepare": "ScribuntoHooks::reportLimitData",
"ParserLimitReportFormat": "ScribuntoHooks::formatLimitData",
"ParserClearState": "ScribuntoHooks::clearState",
"ParserCloned": "ScribuntoHooks::parserCloned",
"CodeEditorGetPageLanguage": "ScribuntoHooks::getCodeLanguage",
"EditPage::showStandardInputs:options": "ScribuntoHooks::showStandardInputsOptions",
"EditPage::showReadOnlyForm:initial": "ScribuntoHooks::showReadOnlyFormInitial",
"EditPageBeforeEditButtons": "ScribuntoHooks::beforeEditButtons",
"EditFilterMergedContent": "ScribuntoHooks::validateScript",
"ArticleViewHeader": "ScribuntoHooks::showDocPageHeader",
"ContentHandlerDefaultModelFor": "ScribuntoHooks::contentHandlerDefaultModelFor"
},
"namespaces": [
{
"id": 828,
"constant": "NS_MODULE",
"name": "Module",
"subpages": true
},
{
"id": 829,
"constant": "NS_MODULE_TALK",
"name": "Module_talk",
"subpages": true
}
],
"callback": "ScribuntoHooks::onRegistration",
"config": {
"ScribuntoDefaultEngine": {
"description": "The name of the default script engine",
"value": "luaautodetect"
},
"ScribuntoEngineConf": {
"description": [
"Configuration for each script engine. Parameters:",
" * profilerPeriod - The profiler sample period, or false to disable the profiler",
" * allowEnvFuncs - Set this to true to allow setfenv() and getfenv() in user code. Note that these functions have been removed in Lua 5.2. Scribunto does not yet support Lua 5.2, but we expect support will be implemented in the future, and there is no guarantee that a simulation of setfenv() and getfenv() will be provided",
" * maxLangCacheSize - The maximum number of languages about which data can be requested. The cost is about 1.5MB of memory usage per language on default installations (during recache), but if recaching is disabled with `$wgLocalisationCacheConf['manualRecache'] = false;` then memory usage is perhaps 10x smaller",
" * errorFile - A filename to act as the destination for stderr from the Lua binary. This may provide useful error information if Lua fails to run. Set this to null to discard stderr output",
" * luaPath - The location of the Lua binary, or null to use the bundled binary"
],
"value": {
"luasandbox": {
"class": "Scribunto_LuaSandboxEngine",
"memoryLimit": 52428800,
"cpuLimit": 7,
"profilerPeriod": 0.02,
"allowEnvFuncs": false,
"maxLangCacheSize": 30
},
"luastandalone": {
"class": "Scribunto_LuaStandaloneEngine",
"errorFile": null,
"luaPath": null,
"memoryLimit": 52428800,
"cpuLimit": 7,
"allowEnvFuncs": false,
"maxLangCacheSize": 30
},
"luaautodetect": {
"factory": "Scribunto_LuaEngine::newAutodetectEngine"
}
},
"merge_strategy": "array_plus_2d"
},
"ScribuntoUseGeSHi": {
"description": "Set to true to enable the SyntaxHighlight_GeSHi extension integration",
"value": true
},
"ScribuntoUseCodeEditor": {
"description": "Set to true to enable the CodeEditor extension integration",
"value": true
},
"ScribuntoGatherFunctionStats": {
"description": "Set to true to enable gathering and reporting of performance data for slow function invocations.",
"value": false
},
"ScribuntoSlowFunctionThreshold": {
"description": "If $wgScribuntoGatherFunctionStats is true, this variable specifies the percentile threshold for slow function invocations. Should be a value between 0 and 1 (exclusive).",
"value": 0.9
}
},
"attributes": {
"TemplateSandbox": {
"EditNamespaces": [
828
]
},
"TemplateStyles": {
"Namespaces": [
828
]
}
},
"manifest_version": 2
}