2017-06-24 00:53:28 +00:00
{
"name" : "Scribunto" ,
"author" : [
"Victor Vasiliev" ,
"Tim Starling" ,
"Brad Jorsch"
] ,
"url" : "https://www.mediawiki.org/wiki/Extension:Scribunto" ,
"descriptionmsg" : "scribunto-desc" ,
2018-01-29 05:59:21 +00:00
"license-name" : "GPL-2.0-or-later AND MIT" ,
2017-06-24 00:53:28 +00:00
"type" : "parserhook" ,
"requires" : {
2024-08-22 22:16:48 +00:00
"MediaWiki" : ">= 1.43"
2017-06-24 00:53:28 +00:00
} ,
"APIModules" : {
2024-03-10 13:34:21 +00:00
"scribunto-console" : {
"class" : "MediaWiki\\Extension\\Scribunto\\ApiScribuntoConsole" ,
"services" : [
2024-10-26 20:39:00 +00:00
"ObjectCacheFactory" ,
2024-03-10 13:34:21 +00:00
"ParserFactory"
]
}
2017-06-24 00:53:28 +00:00
} ,
"ContentHandlers" : {
2022-04-07 23:12:32 +00:00
"Scribunto" : "MediaWiki\\Extension\\Scribunto\\ScribuntoContentHandler"
2017-06-24 00:53:28 +00:00
} ,
"TrackingCategories" : [
"scribunto-common-error-category" ,
"scribunto-module-with-errors-category"
] ,
"MessagesDirs" : {
"Scribunto" : [
2018-11-21 11:38:54 +00:00
"i18n" ,
"i18n/api"
2017-06-24 00:53:28 +00:00
]
} ,
"ExtensionMessagesFiles" : {
"ScribuntoMagic" : "Scribunto.magic.php" ,
"ScribuntoNamespaces" : "Scribunto.namespaces.php"
} ,
"AutoloadClasses" : {
2022-07-30 22:31:00 +00:00
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LibraryBase" : "includes/Engines/LuaCommon/LibraryBase.php" ,
2022-09-30 01:54:23 +00:00
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LuaEngine" : "includes/Engines/LuaCommon/LuaEngine.php" ,
2022-07-30 22:31:00 +00:00
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LuaError" : "includes/Engines/LuaCommon/LuaError.php" ,
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaStandalone\\LuaStandaloneInterpreterFunction" : "includes/Engines/LuaStandalone/LuaStandaloneInterpreterFunction.php" ,
2022-09-30 01:54:23 +00:00
"Scribunto_LuaEngine" : "includes/Engines/LuaCommon/LuaEngine.php" ,
2022-07-30 22:31:00 +00:00
"Scribunto_LuaError" : "includes/Engines/LuaCommon/LuaError.php" ,
"Scribunto_LuaLibraryBase" : "includes/Engines/LuaCommon/LibraryBase.php" ,
"Scribunto_LuaStandaloneInterpreterFunction" : "includes/Engines/LuaStandalone/LuaStandaloneInterpreterFunction.php"
2017-06-24 00:53:28 +00:00
} ,
2022-04-07 23:12:32 +00:00
"AutoloadNamespaces" : {
2022-07-30 22:31:00 +00:00
"MediaWiki\\Extension\\Scribunto\\" : "includes/"
2022-04-07 23:12:32 +00:00
} ,
2019-12-18 20:12:45 +00:00
"TestAutoloadClasses" : {
2022-07-30 22:43:58 +00:00
"MediaWiki\\Extension\\Scribunto\\Tests\\Engines\\LuaCommon\\LuaEngineTestBase" : "tests/phpunit/Engines/LuaCommon/LuaEngineTestBase.php" ,
"Scribunto_LuaEngineTestBase" : "tests/phpunit/Engines/LuaCommon/LuaEngineTestBase.php"
} ,
"TestAutoloadNamespaces" : {
"MediaWiki\\Extension\\Scribunto\\Tests\\" : "tests/phpunit/"
2019-12-18 20:12:45 +00:00
} ,
2017-06-24 00:53:28 +00:00
"ResourceModules" : {
"ext.scribunto.errors" : {
"scripts" : "ext.scribunto.errors.js" ,
"styles" : "ext.scribunto.errors.css" ,
"dependencies" : [
2022-10-05 00:19:08 +00:00
"oojs-ui-widgets"
2017-06-24 00:53:28 +00:00
] ,
"messages" : [
"scribunto-parser-dialog-title"
]
} ,
"ext.scribunto.logs" : {
2018-02-03 16:23:40 +00:00
"styles" : "ext.scribunto.logs.css"
2017-06-24 00:53:28 +00:00
} ,
"ext.scribunto.edit" : {
"scripts" : "ext.scribunto.edit.js" ,
2024-09-30 16:38:19 +00:00
"styles" : "ext.scribunto.edit.less" ,
2017-06-24 00:53:28 +00:00
"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" : {
2023-08-15 11:33:26 +00:00
"SoftwareInfo" : "main" ,
"ParserFirstCallInit" : "main" ,
"ParserLimitReportPrepare" : "main" ,
"ParserLimitReportFormat" : "main" ,
"ParserClearState" : "main" ,
"ParserCloned" : "main" ,
2023-08-15 11:42:58 +00:00
"CodeEditorGetPageLanguage" : "codeeditor" ,
2023-08-15 11:33:26 +00:00
"EditPage::showStandardInputs:options" : "main" ,
"EditPage::showReadOnlyForm:initial" : "main" ,
"EditPageBeforeEditButtons" : "main" ,
"EditFilterMergedContent" : "main" ,
"ArticleViewHeader" : "main" ,
"ContentHandlerDefaultModelFor" : "main"
} ,
"HookHandlers" : {
"main" : {
2024-03-10 13:34:21 +00:00
"class" : "MediaWiki\\Extension\\Scribunto\\Hooks" ,
"services" : [
2024-10-26 20:39:00 +00:00
"MainConfig" ,
"ContentHandlerFactory" ,
"ObjectCacheFactory" ,
"StatsFactory"
2024-03-10 13:34:21 +00:00
]
2023-08-15 11:42:58 +00:00
} ,
"codeeditor" : {
2024-03-10 13:34:21 +00:00
"class" : "MediaWiki\\Extension\\Scribunto\\CodeEditorHooks" ,
"services" : [
"MainConfig"
]
2023-08-15 11:33:26 +00:00
}
2017-06-24 00:53:28 +00:00
} ,
"namespaces" : [
{
"id" : 828 ,
"constant" : "NS_MODULE" ,
"name" : "Module" ,
"subpages" : true
} ,
{
"id" : 829 ,
"constant" : "NS_MODULE_TALK" ,
"name" : "Module_talk" ,
"subpages" : true
}
] ,
2022-04-07 23:12:32 +00:00
"callback" : "MediaWiki\\Extension\\Scribunto\\Hooks::onRegistration" ,
2017-06-24 00:53:28 +00:00
"config" : {
2019-06-10 19:42:04 +00:00
"ScribuntoDefaultEngine" : {
2019-06-20 23:46:06 +00:00
"description" : "The name of the default script engine" ,
2019-06-10 19:42:04 +00:00
"value" : "luaautodetect"
} ,
2017-06-24 00:53:28 +00:00
"ScribuntoEngineConf" : {
2019-06-20 23:46:06 +00:00
"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"
] ,
2019-06-10 19:42:04 +00:00
"value" : {
"luasandbox" : {
2022-07-30 18:22:25 +00:00
"class" : "MediaWiki\\Extension\\Scribunto\\Engines\\LuaSandbox\\LuaSandboxEngine" ,
2019-06-10 19:42:04 +00:00
"memoryLimit" : 52428800 ,
"cpuLimit" : 7 ,
"profilerPeriod" : 0.02 ,
"allowEnvFuncs" : false ,
"maxLangCacheSize" : 30
} ,
"luastandalone" : {
2022-07-30 18:52:37 +00:00
"class" : "MediaWiki\\Extension\\Scribunto\\Engines\\LuaStandalone\\LuaStandaloneEngine" ,
2019-06-10 19:42:04 +00:00
"errorFile" : null ,
"luaPath" : null ,
"memoryLimit" : 52428800 ,
"cpuLimit" : 7 ,
"allowEnvFuncs" : false ,
"maxLangCacheSize" : 30
} ,
"luaautodetect" : {
2022-08-03 12:31:15 +00:00
"factory" : "MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LuaEngine::newAutodetectEngine"
2019-06-10 19:42:04 +00:00
}
2017-06-24 00:53:28 +00:00
} ,
2019-06-10 19:42:04 +00:00
"merge_strategy" : "array_plus_2d"
} ,
"ScribuntoUseGeSHi" : {
2019-06-20 23:46:06 +00:00
"description" : "Set to true to enable the SyntaxHighlight_GeSHi extension integration" ,
2019-06-10 19:42:04 +00:00
"value" : true
} ,
"ScribuntoUseCodeEditor" : {
2019-06-20 23:46:06 +00:00
"description" : "Set to true to enable the CodeEditor extension integration" ,
2019-06-10 19:42:04 +00:00
"value" : true
} ,
"ScribuntoGatherFunctionStats" : {
2019-06-20 23:46:06 +00:00
"description" : "Set to true to enable gathering and reporting of performance data for slow function invocations." ,
2019-06-10 19:42:04 +00:00
"value" : false
} ,
"ScribuntoSlowFunctionThreshold" : {
2019-06-20 23:46:06 +00:00
"description" : "If $wgScribuntoGatherFunctionStats is true, this variable specifies the percentile threshold for slow function invocations. Should be a value between 0 and 1 (exclusive)." ,
2019-06-10 19:42:04 +00:00
"value" : 0.9
}
} ,
"attributes" : {
"TemplateSandbox" : {
"EditNamespaces" : [
828
]
2017-06-24 00:53:28 +00:00
} ,
2019-06-10 19:42:04 +00:00
"TemplateStyles" : {
"Namespaces" : [
828
]
}
2017-06-24 00:53:28 +00:00
} ,
2019-06-10 19:42:04 +00:00
"manifest_version" : 2
2017-06-24 00:53:28 +00:00
}