Template:InvalidSVG
This template is used for marking SVGs to be invalid. This can be checked with the validator of the W3C.
Note: Even when transcluded from the file’s talk page, the validator will check the file.
The template automatically sets the following categories:
- Category:Invalid SVG (hidden)
- (when used by SVG created with ... templates the simple categorization is switched off,
- in favour to the Invalid SVG created with … where the files are sorted in descending error count.
Usage
{{InvalidSVG}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
cat category | categorizing | For any category (one or more), Invalid SVG or another one, with or without subcategorizing and/or sorting options: cat=[[Category:any text]] (complete category definition(s) with the brackets).Any additional text (before and/or after the category-brackets, or instead of) will appear following the Invalid SVG-tag.[clarification needed] Use cat=<nowiki/> to suppress any categorization | Invalid SVG | optional |
opt option | validator option | Any text string of options can be passed to the W3C Validator, e.g. "opt=&ss=1 " for "show source input" (complete option(s) with the ampersand(s)). Any option colors the background of the invalid–link.To avoid the standard/default option setting, specify either "opt=n" (=no) or "opt=>" (for large SVG files) | &ss=1 | optional |
err errors | number of errors | Number of errors detected from validation; or any text explaining why it’s invalid the option is set[clarification needed] If this error count is explicitly set to zero " err=0 ", {{Valid SVG}} will be generatedIf this error count is explicitly set to «-1» " err=-1 ", the W3C-uncheckability of the code is assumed[clarification needed] | empty | optional |
url fullurl | URL | The complete URL address of another file, e.g. another than the current version (categorization is switched off in this case, but can be set by cat= ) | empty | optional |
sub subcat | subcategory | Postfix for a category diffusion within Invalid SVG[clarification needed] | empty | optional |
width | width | Width unification[clarification needed], e.g. 40em or 50% | empty | optional |
style | style | More style attributes, e.g. style=fl for float:left (or style=none ) for the less salient smaller layout:[clarification needed] | empty | optional |
more | additional text | Any additional text, replaces the final full stop | . | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template is used for marking SVGs to be invalid. This can be checked with the validator of the W3C. Note: Even when transcluded from the file’s talk page, the validator will check the file.
|
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
See also
- {{HandSVG}}
- {{SimplSVG}}
- {{Inkscape-hand}} and others
Localization
беларуская (тарашкевіца) ∙ български ∙ বাংলা ∙ català ∙ čeština ∙ Deutsch ∙ Ελληνικά ∙ English ∙ español ∙ فارسی ∙ suomi ∙ français ∙ עברית ∙ hrvatski ∙ magyar ∙ italiano ∙ 日本語 ∙ 한국어 ∙ македонски ∙ മലയാളം ∙ Plattdüütsch ∙ Nederlands ∙ polski ∙ português ∙ русский ∙ sicilianu ∙ slovenščina ∙ svenska ∙ ไทย ∙ Türkçe ∙ українська ∙ Tiếng Việt ∙ 中文 ∙ 中文(简体) ∙ 中文(繁體) ∙ 中文(臺灣)
This template is localized through {{Autotranslate}}.
To add your language to the list of languages supported by this template, please copy the code of Template:InvalidSVG/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang
from en
(or whatever language you are translating) to the language code of your language.