2021-03-19 20:00:11 +00:00
|
|
|
{
|
|
|
|
"name": "TemplateStylesExtender",
|
2024-06-30 09:55:52 +00:00
|
|
|
"version": "1.2.2",
|
2021-03-19 20:00:11 +00:00
|
|
|
"author": [
|
2023-01-14 20:23:07 +00:00
|
|
|
"[https://www.mediawiki.org/wiki/User:Octfx Octfx]"
|
2021-03-19 20:00:11 +00:00
|
|
|
],
|
|
|
|
"url": "https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender",
|
|
|
|
"descriptionmsg": "ext-templatestylesextender-desc",
|
|
|
|
"license-name": "GPL-2.0-or-later",
|
2021-03-23 19:16:00 +00:00
|
|
|
"type": "parserhook",
|
2021-03-19 20:00:11 +00:00
|
|
|
"requires": {
|
2023-01-14 20:23:07 +00:00
|
|
|
"MediaWiki": ">= 1.39.0",
|
2021-03-19 20:00:11 +00:00
|
|
|
"platform": {
|
2023-08-15 10:49:04 +00:00
|
|
|
"php": ">=8.0"
|
2021-03-19 20:00:11 +00:00
|
|
|
},
|
|
|
|
"extensions": {
|
|
|
|
"TemplateStyles": ">= 1.0"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"config": {
|
2021-03-19 21:48:47 +00:00
|
|
|
"TemplateStylesExtenderEnablePrefersColorScheme": {
|
|
|
|
"description": "Enable the prefers-color-scheme media query. WARNING this can break things if TemplateStyles was updated upstream",
|
|
|
|
"value": true
|
2021-05-21 19:51:31 +00:00
|
|
|
},
|
|
|
|
"TemplateStylesExtenderEnableCssVars": {
|
|
|
|
"description": "Enable the matcher for css variables",
|
|
|
|
"value": true
|
2023-02-10 10:15:07 +00:00
|
|
|
},
|
|
|
|
"TemplateStylesExtenderEnableUnscopingSupport": {
|
|
|
|
"description": "Allow to unscope css by changing '.mw-parser-output' to a custom class",
|
|
|
|
"value": false
|
2023-04-06 18:52:07 +00:00
|
|
|
},
|
|
|
|
"TemplateStylesExtenderUnscopingPermission": {
|
|
|
|
"description": "Speficy the permission a user must have to use unscoping. Defaults to 'editinterface'.",
|
|
|
|
"value": "editinterface"
|
2021-03-19 21:48:47 +00:00
|
|
|
}
|
2021-03-19 20:00:11 +00:00
|
|
|
},
|
2023-04-06 18:52:07 +00:00
|
|
|
"ConfigRegistry": {
|
|
|
|
"TemplateStylesExtender": "GlobalVarConfig::newInstance"
|
|
|
|
},
|
2021-03-19 20:00:11 +00:00
|
|
|
"MessagesDirs": {
|
|
|
|
"TemplateStylesExtender": [
|
|
|
|
"i18n"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"AutoloadNamespaces": {
|
|
|
|
"MediaWiki\\Extension\\TemplateStylesExtender\\": "includes/"
|
|
|
|
},
|
2023-02-10 10:15:07 +00:00
|
|
|
"HookHandlers": {
|
|
|
|
"MainHooks": {
|
2024-03-31 18:31:55 +00:00
|
|
|
"class": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\MainHooks"
|
2023-02-10 10:15:07 +00:00
|
|
|
}
|
|
|
|
},
|
2021-03-19 20:00:11 +00:00
|
|
|
"Hooks": {
|
|
|
|
"TemplateStylesPropertySanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\PropertySanitizerHook::onSanitize",
|
2023-02-10 10:15:07 +00:00
|
|
|
"TemplateStylesStylesheetSanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\StylesheetSanitizerHook::onSanitize",
|
2024-03-31 18:31:55 +00:00
|
|
|
"ParserFirstCallInit": "MainHooks"
|
2021-03-19 20:00:11 +00:00
|
|
|
},
|
|
|
|
"manifest_version": 2
|
|
|
|
}
|