mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-27 17:50:29 +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
72 lines
6.5 KiB
JSON
72 lines
6.5 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"Brad Jorsch",
|
|
"Marc A. Pelletier"
|
|
]
|
|
},
|
|
"templatestyles": "TemplateStyles",
|
|
"templatestyles-desc": "Implement per-template style sheets",
|
|
"templatestyles-missing-src": "TemplateStyles' <code>src</code> attribute must not be empty.",
|
|
"templatestyles-invalid-src": "Invalid title for TemplateStyles' <code>src</code> attribute.",
|
|
"templatestyles-invalid-wrapper": "Invalid value for TemplateStyles' <code>wrapper</code> attribute.",
|
|
"templatestyles-bad-src-missing": "Page [[:$1|$2]] has no content.",
|
|
"templatestyles-bad-src": "Page [[:$1|$2]] must have content model \"{{int:content-model-sanitized-css}}\" for TemplateStyles (current model is \"$3\").",
|
|
"templatestyles-errorcomment": "Errors processing stylesheet [[:$1]] (rev $2):\n$3",
|
|
"templatestyles-size-exceeded": "The stylesheet is larger than the maximum size of $2.",
|
|
"templatestyles-end-tag-injection": "The supplied stylesheet contains <code></style</code>, which is not allowed.",
|
|
"content-model-sanitized-css": "Sanitized CSS",
|
|
"templatestyles-stylesheet-error-category": "TemplateStyles stylesheets with errors",
|
|
"templatestyles-stylesheet-error-category-desc": "The TemplateStyles stylesheet has an error.",
|
|
"templatestyles-page-error-category": "Pages with TemplateStyles errors",
|
|
"templatestyles-page-error-category-desc": "There was an error when processing a <code><nowiki><templatestyles/></nowiki></code> tag on the page.",
|
|
|
|
"templatestyles-error-at-rule-block-not-allowed": "Block not allowed for <code>@$3</code> at line $1 character $2.",
|
|
"templatestyles-error-at-rule-block-required": "Block required for <code>@$3</code> at line $1 character $2.",
|
|
"templatestyles-error-bad-character-in-url": "Invalid character in URL at line $1 character $2.",
|
|
"templatestyles-error-bad-escape": "Invalid character in escape at line $1 character $2.",
|
|
"templatestyles-error-bad-value-for-property": "Invalid or unsupported value for property <code>$3</code> at line $1 character $2.",
|
|
"templatestyles-error-expected-at-rule": "Expected <code>@$3</code> at line $1 character $2.",
|
|
"templatestyles-error-expected-colon": "Expected a colon at line $1 character $2.",
|
|
"templatestyles-error-expected-declaration": "Expected a declaration at line $1 character $2.",
|
|
"templatestyles-error-expected-declaration-list": "Expected a declaration list at line $1 character $2.",
|
|
"templatestyles-error-expected-eof": "Expected the end of the stylesheet at line $1 character $2.",
|
|
"templatestyles-error-expected-ident": "Expected an identifier a line $1 character $2.",
|
|
"templatestyles-error-expected-page-margin-at-rule": "Expected a <code>@page</code> margin at-rule at line $1 character $2.",
|
|
"templatestyles-error-expected-qualified-rule": "Expected a style rule at line $1 character $2.",
|
|
"templatestyles-error-expected-stylesheet": "Expected a stylesheet at line $1 character $2.",
|
|
"templatestyles-error-invalid-font-face-at-rule": "<code>@font-face</code> does not allow anything before the block at line $1 character $2.",
|
|
"templatestyles-error-invalid-font-feature-value": "<code>@$3</code> does not allow anything before the block at line $1 character $2.",
|
|
"templatestyles-error-invalid-font-feature-value-declaration": "Invalid value for font feature value property at line $1 character $2.",
|
|
"templatestyles-error-invalid-font-feature-values-font-list": "Invalid font list for <code>@font-feature-values</code> at line $1 character $2.",
|
|
"templatestyles-error-invalid-import-value": "Invalid value for <code>@import</code> at line $1 character $2.",
|
|
"templatestyles-error-invalid-keyframe-name": "Invalid keyframe name at line $1 character $2.",
|
|
"templatestyles-error-invalid-media-query": "Invalid media query at line $1 character $2.",
|
|
"templatestyles-error-invalid-namespace-value": "Invalid value for <code>@namespace</code> at line $1 character $2.",
|
|
"templatestyles-error-invalid-page-margin-at-rule": "<code>@$3</code> does not allow anything before the block at line $1 character $2.",
|
|
"templatestyles-error-invalid-page-rule-content": "Invalid content for <code>@page</code> at line $1 character $2.",
|
|
"templatestyles-error-invalid-page-selector": "Invalid page selector at line $1 character $2.",
|
|
"templatestyles-error-invalid-selector-list": "Invalid selector list at line $1 character $2.",
|
|
"templatestyles-error-invalid-supports-condition": "Invalid condition for <code>@supports</code> at line $1 character $2.",
|
|
"templatestyles-error-misordered-rule": "Misordered rule at line $1 character $2.",
|
|
"templatestyles-error-missing-font-feature-values-font-list": "Missing font list for <code>@font-feature-values</code> at line $1 character $2.",
|
|
"templatestyles-error-missing-import-source": "Missing source for <code>@import</code> at line $1 character $2.",
|
|
"templatestyles-error-missing-keyframe-name": "Missing name for <code>@keyframes</code> at line $1 character $2.",
|
|
"templatestyles-error-missing-namespace-value": "Missing value for <code>@namespace</code> at line $1 character $2.",
|
|
"templatestyles-error-missing-selector-list": "Missing selector list at line $1 character $2.",
|
|
"templatestyles-error-missing-supports-condition": "Missing condition for <code>@supports</code> at line $1 character $2.",
|
|
"templatestyles-error-missing-value-for-property": "Missing value for property <code>$3</code> at line $1 character $2.",
|
|
"templatestyles-error-newline-in-string": "Invalid newline in string at line $1 character $2.",
|
|
"templatestyles-error-recursion-depth-exceeded": "Too many nested blocks and/or functions at line $1 character $2.",
|
|
"templatestyles-error-unclosed-comment": "Unclosed comment starting at line $1 character $2.",
|
|
"templatestyles-error-unclosed-string": "Unclosed string starting at line $1 character $2.",
|
|
"templatestyles-error-unclosed-url": "Unclosed URL at line $1 character $2.",
|
|
"templatestyles-error-unexpected-eof": "Unexpected end of stylesheet at line $1 character $2.",
|
|
"templatestyles-error-unexpected-eof-in-block": "Unexpected end of stylesheet in block at line $1 character $2.",
|
|
"templatestyles-error-unexpected-eof-in-function": "Unexpected end of stylesheet in function at line $1 character $2.",
|
|
"templatestyles-error-unexpected-eof-in-rule": "Unexpected end of stylesheet in rule at line $1 character $2.",
|
|
"templatestyles-error-unexpected-token-in-declaration-list": "Unexpected token in declaration list at line $1 character $2.",
|
|
"templatestyles-error-unrecognized-property": "Unrecognized or unsupported property at line $1 character $2.",
|
|
"templatestyles-error-unrecognized-rule": "Unrecognized or unsupported rule at line $1 character $2."
|
|
}
|