Jump to content
Wikimedia Commons

Template:Valid SVG

From Wikimedia Commons, the free media repository
 W3C-validity not checked.
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Valid SVG/doc.
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.

Afterwards, changes can initially be done at and tested with Template:Valid SVG/sandbox.

  • Editing a template causes all pages that use the template to be re-rendered. If the template is used often, this can put a lot of load on the servers since it fills up the job queue.
  • Keep in mind that templates that are used on file description pages also show up on other wikis.
  • This page is template-protected from editing to prevent vandalism. Only template editors and administrators can edit it. Get their attention by placing {{Edit protected}} at the talk page.
This template is deprecated.
Instead of tagging with this template, the script-supported SVG check should be performed.

This template is used for marking SVGs to be valid. This can be checked with the validator of the W3C.

The template automatically sets the following categories:

(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

Template parameters

ParameterDescriptionDefaultStatus
cat
category
different possibilities for categorizing, e.g.
  • standard: not using this parameter, default is Valid SVG
  • suppression of categorizing: cat= or category=
  • for any category or categories, Valid SVG or another one or others, with or without subcategorizing and/or sorting options[clarification needed ]:
    • cat=[[Category:any text]]
    (complete category definition(s) with the brackets)
Any additional text (before or after the category-brackets) will follow the Valid SVG-tag.
emptyoptional
opt
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))
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)
emptyoptional
1=oshorthand notation: generates the option "opt=&ss=1#source"
The link is highlighted with green background color
emptyoptional
urlthe complete URL address of another file, eg. another than the current version[clarification needed ] (categorization is switched off in this case, but can be set with the parameter cat)emptyoptional
widthwidth unification[clarification needed ], e.g. width=40em or width=50%emptyoptional
styleto set or overwrite other CSS style properties for the box; "fl"="float:left" or "none" for the less salient smaller layout which floatsemptyoptional
subtext for sub-categorizing, e.g. sub= by user XYZemptyoptional
moreany additional textemptyoptional

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

Localization

العربية  беларуская (тарашкевіца)  български  বাংলা  català  čeština  Deutsch  Zazaki  Ελληνικά  English  español  euskara  فارسی  suomi  français  galego  עברית  हिन्दी  hrvatski  magyar  հայերեն  italiano  日本語  ქართული  한국어  lietuvių  македонски  മലയാളം  မြန်မာဘာသာ  norsk bokmål  Plattdüütsch  Nederlands  norsk nynorsk  polski  português  português do Brasil  română  русский  sicilianu  slovenščina  svenska  ไทย  Türkçe  українська  中文  中文(中国大陆)  中文(简体)  中文(繁體)

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}}}|>| ... }}

AltStyle によって変換されたページ (->オリジナル) /