mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-25 00:36:38 +00:00
f7bf5a4e23
The wrapper attribute may contain an extra CSS simple selector to include when prefixing. For example, including a template as <templatestyles src="..." wrapper="div.my-template"/> would transform .foo .bar { color:red; } into .mw-parser-output div.my-template .foo .bar{color:red} This can allow particular templates to opt in to the "styles are scoped to the template itself" model that was desired by some when TemplateStyles was being designed; the driving use case in the linked task is doing so for the benefit of side-by-side comparisons of the current and sandboxed versions of a template. Bug: T200441 Change-Id: If49d4c5be31feca95abd21452238fd10ab1916b1
73 lines
12 KiB
JSON
73 lines
12 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"Brad Jorsch",
|
|
"Marc A. Pelletier",
|
|
"Amire80",
|
|
"Umherirrender"
|
|
]
|
|
},
|
|
"templatestyles": "{{name}}",
|
|
"templatestyles-desc": "{{desc|name=TemplateStyles|url=https://www.mediawiki.org/wiki/Extension:TemplateStyles}}",
|
|
"templatestyles-missing-src": "Error message displayed when the <code>src</code> attribute is not present on <code><nowiki><templatestyles></nowiki></code>.",
|
|
"templatestyles-invalid-src": "Error message displayed when the <code>src</code> attribute is not a valid title.",
|
|
"templatestyles-invalid-wrapper": "Error message displayed when the <code>wrapper</code> attribute is not valid.",
|
|
"templatestyles-bad-src-missing": "Error message displayed when the title specified has no content. Parameters:\n* $1 - The title specified.\n* $2 - The title with wikitext escaped.",
|
|
"templatestyles-bad-src": "Error message displayed when the title specified is not a usable stylesheet. Parameters:\n* $1 - The title specified.\n* $2 - The title with wikitext escaped.\n* $3 - Current content model of the page in question.",
|
|
"templatestyles-errorcomment": "Formatting for the comment used to display TemplateStyles errors encountered during the parse. Parameters:\n* $1 - Source stylesheet.\n* $2 - Revision of the stylesheet.\n* $3 - Errors.",
|
|
"templatestyles-size-exceeded": "Error returned when the stylesheet is more than $wgTemplateStylesMaxStylesheetSize bytes. Parameters:\n* $1 - Maximum size in bytes\n* $2 - Maximum size in \"human units\" (i.e. KB, MB, GB, etc).",
|
|
"templatestyles-end-tag-injection": "Error returned when the stylesheet contains <code></style</code>, which is likely an attempt at HTML injection.",
|
|
"content-model-sanitized-css": "Name for TemplateStyles sanitized-css content model.",
|
|
"templatestyles-stylesheet-error-category": "Tracking category for TemplateStyles stylesheets with errors.",
|
|
"templatestyles-stylesheet-error-category-desc": "Description on [[Special:TrackingCategories]] for the {{msg-mw|templatestyles-stylesheet-error-category}} tracking category.",
|
|
"templatestyles-page-error-category": "Tracking category for pages with errors from <code><nowiki><templatestyles/></nowiki></code>.",
|
|
"templatestyles-page-error-category-desc": "Description on [[Special:TrackingCategories]] for the {{msg-mw|templatestyles-page-error-category}} tracking category.",
|
|
"templatestyles-error-at-rule-block-not-allowed": "Error in CSS validation. Note \"block\" in this message refers to the part of CSS syntax inside the <code>{ ... }</code>. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.\n* $3 - Name of the at-rule in question.",
|
|
"templatestyles-error-at-rule-block-required": "Error in CSS validation. Note \"block\" in this message refers to the part of CSS syntax inside the <code>{ ... }</code>. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.\n* $3 - Name of the at-rule in question.",
|
|
"templatestyles-error-bad-character-in-url": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-bad-escape": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-bad-value-for-property": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.\n* $3 - Name of the property in question.",
|
|
"templatestyles-error-expected-at-rule": "Error in CSS validation. If this message is used, it probably indicates an error in the code. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.\n* $3 - Name of the at-rule that was expected.",
|
|
"templatestyles-error-expected-colon": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-expected-declaration": "Error in CSS validation. If this message is used, it probably indicates an error in the code. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-expected-declaration-list": "Error in CSS validation. If this message is used, it probably indicates an error in the code. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-expected-eof": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-expected-ident": "Error in CSS parsing. Note \"identifier\" in this message refers to a keyword such as a class name, property name, property value, or the like. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-expected-page-margin-at-rule": "Error in CSS validation. If this message is used, it probably indicates an error in the code. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-expected-qualified-rule": "Error in CSS validation. If this message is used, it probably indicates an error in the code. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-expected-stylesheet": "Error in CSS validation. If this message is used, it probably indicates an error in the code. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-font-face-at-rule": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-font-feature-value": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.\n* $3 - Name of the specific feature value at-rule in question.",
|
|
"templatestyles-error-invalid-font-feature-value-declaration": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-font-feature-values-font-list": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-import-value": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-keyframe-name": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-media-query": "Error in CSS validation. Note \"media query\" in this message refers to the syntax described at https://www.w3.org/TR/css3-mediaqueries/. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-namespace-value": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-page-margin-at-rule": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.\n* $3 - Name of the specific page margin at-rule in question.",
|
|
"templatestyles-error-invalid-page-rule-content": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-page-selector": "Error in CSS validation. Note \"page selector\" refers to the syntax used to specify a page in the <code>@page</code> rule, e.g. the <code>:left</code> in <code>@page :left { ... }</code>. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-selector-list": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-invalid-supports-condition": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-misordered-rule": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-missing-font-feature-values-font-list": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-missing-import-source": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-missing-keyframe-name": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-missing-namespace-value": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-missing-selector-list": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-missing-supports-condition": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-missing-value-for-property": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.\n* $3 - Name of the property in question.",
|
|
"templatestyles-error-newline-in-string": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-recursion-depth-exceeded": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unclosed-comment": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unclosed-string": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unclosed-url": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unexpected-eof": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unexpected-eof-in-block": "Error in CSS parsing. Note \"block\" in this message refers to the part of CSS syntax inside <code>{ ... }</code>, <code>[ ... ]</code>, or <code>( ... )</code>. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unexpected-eof-in-function": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unexpected-eof-in-rule": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unexpected-token-in-declaration-list": "Error in CSS parsing. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unrecognized-property": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line.",
|
|
"templatestyles-error-unrecognized-rule": "Error in CSS validation. Parameters:\n* $1 - Line number of the error.\n* $2 - Location of the error within the line."
|
|
}
|