mediawiki-extensions-Templa.../extension.json
2024-06-30 11:55:52 +02:00

61 lines
1.8 KiB
JSON

{
"name": "TemplateStylesExtender",
"version": "1.2.2",
"author": [
"[https://www.mediawiki.org/wiki/User:Octfx Octfx]"
],
"url": "https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender",
"descriptionmsg": "ext-templatestylesextender-desc",
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.39.0",
"platform": {
"php": ">=8.0"
},
"extensions": {
"TemplateStyles": ">= 1.0"
}
},
"config": {
"TemplateStylesExtenderEnablePrefersColorScheme": {
"description": "Enable the prefers-color-scheme media query. WARNING this can break things if TemplateStyles was updated upstream",
"value": true
},
"TemplateStylesExtenderEnableCssVars": {
"description": "Enable the matcher for css variables",
"value": true
},
"TemplateStylesExtenderEnableUnscopingSupport": {
"description": "Allow to unscope css by changing '.mw-parser-output' to a custom class",
"value": false
},
"TemplateStylesExtenderUnscopingPermission": {
"description": "Speficy the permission a user must have to use unscoping. Defaults to 'editinterface'.",
"value": "editinterface"
}
},
"ConfigRegistry": {
"TemplateStylesExtender": "GlobalVarConfig::newInstance"
},
"MessagesDirs": {
"TemplateStylesExtender": [
"i18n"
]
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\TemplateStylesExtender\\": "includes/"
},
"HookHandlers": {
"MainHooks": {
"class": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\MainHooks"
}
},
"Hooks": {
"TemplateStylesPropertySanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\PropertySanitizerHook::onSanitize",
"TemplateStylesStylesheetSanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\StylesheetSanitizerHook::onSanitize",
"ParserFirstCallInit": "MainHooks"
},
"manifest_version": 2
}