mediawiki-extensions-Templa.../extension.json
2023-12-14 14:48:49 +01:00

66 lines
1.9 KiB
JSON

{
"name": "TemplateStylesExtender",
"version": "1.2.0",
"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",
"services": [
"PermissionManager",
"UserFactory"
]
}
},
"Hooks": {
"TemplateStylesPropertySanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\PropertySanitizerHook::onSanitize",
"TemplateStylesStylesheetSanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\StylesheetSanitizerHook::onSanitize",
"ParserFirstCallInit": "MainHooks",
"EditPage::attemptSave": "MainHooks"
},
"manifest_version": 2
}