Template:Cdata/doc
This template adds a warning that file is very large because its creator kept the superfluous Adobe PGF or other CDATA garbage
The template automatically sets the following categories:
Usage
{{Cdata}}
Removing can be done
- With Adobe Illustator: export the SVG with the option “Minify” and disable “preserve illustrator editing capability” (this line has to be proved by someone with Adobe Illustrator)
- If you know how to edit a SVG file with a text editor: see User:Quibik/Cleaning_up_SVG_files_manually#Removing_unnecessary_content
- If you know how to use a terminal : there are three common SVG optimizers
- For users that want/need a grafical userinterface Inkscape (free software) saving as “Optimized SVG”, see Help:Inkscape#Inkscape_SVG_vs._Plain_SVG
- For everyone who does not install anything and don't know how to use a text editor: https://jakearchibald.github.io/svgomg/
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
2 logo | Logo | replaces the logo | Cdata icon.svg | optional |
3 iconsize | Icon size | sets the size of the icon in pixels | empty | optional |
4 more | More | adds content at the end of the text | empty | optional |
5 width | Width | sets the width of the warning box | auto | optional |
6 style | Style | adds style information for the warning box | empty | optional |
7 bad | bad SVG | replaces “This Adobe SVG” with “This bad Adobe SVG”, if value is “also” | empty | optional |
8 user | User | replaces “its creator” with the given value | empty | optional |
9 sub | Sub | replaces “its creator” with “its creator TUBS”, if value is “: TUBS” | empty | optional |
10 topic | topic | replaces “file” with a topic from Template talk:Igen/top | empty | 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 adds a warning that file is very large because its creator kept the superfluous Adobe PGF or other CDATA garbage
|
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Examples
{{Cdata|}}
renders as:
{{Cdata|logo=Line chart icon Noun 70892 cc.svg |iconsize=10 |more=, and there is more |width=75% |style=border-radius:10px; |bad=also |user={{U|John Doe}} |topic=ed}}
renders as:
Localization
العربية ∙ Deutsch ∙ English ∙ македонски ∙ polski ∙ русский ∙ slovenščina ∙ தமிழ்
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:Cdata/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.