Difference between revisions of "Template:Valid SVG/doc"
Mediawiki>Sarang m (+explanation) |
m (1 revision imported) |
Latest revision as of 15:48, 24 January 2022
Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please discuss proposed changes on the talk page first.
|
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
The template automatically sets the following categories:
- Category:Valid SVG (hidden)
- (when used by SVG created with ... templates the simple categorization is switched off, in favour of the Valid SVG created with …)
Usage
{{Valid SVG}}
Or use the shorthand {{ValidSVG}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
cat | different possibilities for categorizing, e.g.
| empty | optional | |
opt | 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)) If any option is specified, the link is highlighted with lightgreen background color To avoid the standard/default option setting, specify either "opt=n" (=no) or "opt=>" (for large SVG files) | empty | optional | |
1=o | shorthand notation: generates the option "opt=&ss=1#source "The link is highlighted with green background color | empty | optional | |
url | the complete URL address of another file, eg. another than the current version
(categorization is switched off in this case, but can be set with the parameter cat ) | empty | optional | |
width | width unification, e.g. width=40em or width=50% | empty | optional | |
style | to set or overwrite other style attributes for the box; "fl"="float:left" or "none" for the less salient smaller layout: The SVG code is valid. instead of | empty | optional | |
sub | text for sub-categorizing, e.g. sub= by user XYZ | empty | optional | |
more | any additional text | empty | optional |
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
⧼Seealso⧽
- {{HandSVG}}
- {{SimplSVG}}
- {{Inkscape-hand}} and others via {{Igen}}
Localization
English ∙
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:Valid SVG/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.
for large SVG files, check with {{#ifeq:{{{opt}}}|>| ... }}