2016-04-07 13:08:44 +00:00
{
"name" : "TemplateStyles" ,
2017-02-20 04:33:24 +00:00
"version" : "1.0" ,
2016-04-07 13:08:44 +00:00
"author" : [
2017-02-20 04:33:24 +00:00
"Brad Jorsch" ,
2016-04-07 13:08:44 +00:00
"Marc A. Pelletier"
] ,
"url" : "https://www.mediawiki.org/wiki/Extension:TemplateStyles" ,
2016-04-10 20:48:38 +00:00
"namemsg" : "templatestyles" ,
"descriptionmsg" : "templatestyles-desc" ,
2018-03-02 23:43:40 +00:00
"license-name" : "GPL-2.0-or-later" ,
2017-02-20 04:33:24 +00:00
"type" : "parserhook" ,
2018-10-16 15:25:52 +00:00
"manifest_version" : 2 ,
2017-02-20 04:33:24 +00:00
"load_composer_autoloader" : true ,
2018-02-11 15:11:44 +00:00
"requires" : {
2023-08-19 06:09:22 +00:00
"MediaWiki" : ">= 1.41"
2018-02-11 15:11:44 +00:00
} ,
2016-04-21 20:27:30 +00:00
"MessagesDirs" : {
2016-04-07 13:08:44 +00:00
"TemplateStyles" : [
"i18n"
]
} ,
2022-02-06 14:39:49 +00:00
"AutoloadNamespaces" : {
"MediaWiki\\Extension\\TemplateStyles\\" : "includes/"
2016-04-07 13:08:44 +00:00
} ,
2017-02-20 04:33:24 +00:00
"ContentHandlers" : {
2022-02-06 14:39:49 +00:00
"sanitized-css" : "MediaWiki\\Extension\\TemplateStyles\\TemplateStylesContentHandler"
2017-02-20 04:33:24 +00:00
} ,
2018-05-26 21:45:34 +00:00
"TrackingCategories" : [
"templatestyles-stylesheet-error-category" ,
"templatestyles-page-error-category"
] ,
2018-10-16 15:25:52 +00:00
"attributes" : {
"SyntaxHighlight" : {
"Models" : {
"sanitized-css" : "css"
}
2018-10-18 13:32:49 +00:00
} ,
"TemplateStyles" : {
"Namespaces" : [ ]
2021-06-07 17:37:55 +00:00
} ,
"TemplateSandbox" : {
"EditContentModels" : [
"sanitized-css"
]
2018-10-16 15:25:52 +00:00
}
2017-02-20 04:33:24 +00:00
} ,
2022-02-06 14:39:49 +00:00
"callback" : "MediaWiki\\Extension\\TemplateStyles\\Hooks::onRegistration" ,
2016-04-07 13:08:44 +00:00
"Hooks" : {
"ParserFirstCallInit" : [
2022-02-06 14:39:49 +00:00
"MediaWiki\\Extension\\TemplateStyles\\Hooks::onParserFirstCallInit"
2016-04-07 13:08:44 +00:00
] ,
2017-11-30 18:52:30 +00:00
"ParserClearState" : [
2022-02-06 14:39:49 +00:00
"MediaWiki\\Extension\\TemplateStyles\\Hooks::onParserClearState"
2017-11-30 18:52:30 +00:00
] ,
2017-02-20 04:33:24 +00:00
"ContentHandlerDefaultModelFor" : [
2022-02-06 14:39:49 +00:00
"MediaWiki\\Extension\\TemplateStyles\\Hooks::onContentHandlerDefaultModelFor"
2017-02-20 04:33:24 +00:00
] ,
"CodeEditorGetPageLanguage" : [
2022-02-06 14:39:49 +00:00
"MediaWiki\\Extension\\TemplateStyles\\Hooks::onCodeEditorGetPageLanguage"
2016-04-07 13:08:44 +00:00
]
2016-04-10 13:46:47 +00:00
} ,
"config" : {
2018-10-16 15:25:52 +00:00
"TemplateStylesDisable" : {
"description" : "When set to true, no styles are output. This flag is for development and will be removed." ,
"value" : false
} ,
2017-02-20 04:33:24 +00:00
"TemplateStylesAllowedUrls" : {
2018-10-16 15:25:52 +00:00
"description" : "PCRE regexes to match allowed URLs for various types of external references. Known types are:\n; audio: Sound files\n; image: Images\n; svg: SVGs for the Filter and Masking modules\n; font: External fonts\n; namespace: @namespace declarations\n; css: @import declarations\nIf you want to allow an entire domain, be sure to include a trailing '/', e.g. \"<^https://allowed\\.example\\.org/>\" rather than \"<^https://allowed\\.example\\.org>\", so people can't bypass your filter by creating a subdomain like \"https://allowed.example.org.evil.com\"." ,
"value" : {
"audio" : [
"<^https://upload\\.wikimedia\\.org/wikipedia/commons/>"
] ,
"image" : [
"<^https://upload\\.wikimedia\\.org/wikipedia/commons/>"
] ,
"svg" : [
"<^https://upload\\.wikimedia\\.org/wikipedia/commons/[^?#]*\\.svg(?:[?#]|$)>"
] ,
"font" : [ ] ,
"namespace" : [
"<.>"
] ,
"css" : [ ]
}
2017-02-20 04:33:24 +00:00
} ,
2016-04-10 13:46:47 +00:00
"TemplateStylesNamespaces" : {
2018-10-16 15:25:52 +00:00
"description" : "Namespaces to default the content model to CSS on .css subpages." ,
"value" : {
"10" : true
} ,
"merge_strategy" : "array_plus"
} ,
2021-03-20 05:12:36 +00:00
"TemplateStylesDisallowedProperties" : {
"description" : "Disallowed style properties that would otherwise be allowed. See also the TemplateStylesPropertySanitizer hook, which allows for finer-grained control." ,
"value" : [ ]
} ,
"TemplateStylesDisallowedAtRules" : {
"description" : "Disallowed at-rules that would otherwise be allowed. Include the '@' in the name. See also the TemplateStylesStylesheetSanitizer hook, which allows for finer-grained control." ,
2018-10-16 15:25:52 +00:00
"value" : [ ]
} ,
"TemplateStylesUseCodeEditor" : {
"description" : "Use CodeEditor when editing TemplateStyles CSS pages." ,
"value" : true
} ,
"TemplateStylesAutoParseContent" : {
"description" : "Set this false if you want to manage an entry for 'sanitized-css' in $wgTextModelsToParse manually. If true, an entry will be added to $wgTextModelsToParse automatically if CONTENT_MODEL_CSS is in the array." ,
"value" : true
2016-04-10 13:46:47 +00:00
} ,
2018-10-16 15:25:52 +00:00
"TemplateStylesMaxStylesheetSize" : {
"description" : "The maximum size of a stylesheet, in bytes. Set null if you don't want to impose a limit." ,
"value" : 102400
2021-09-03 00:55:55 +00:00
} ,
"TemplateStylesDefaultNamespace" : {
"description" : "The default namespace for the src attribute of the <templatestyles> tag. The value 10 corresponds to NS_TEMPLATE." ,
"value" : 10
2018-10-16 15:25:52 +00:00
}
2016-04-10 13:46:47 +00:00
} ,
"ConfigRegistry" : {
2016-04-21 20:26:00 +00:00
"templatestyles" : "GlobalVarConfig::newInstance"
2016-04-07 13:08:44 +00:00
}
}