Template:SVG created with/doc/sandbox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This unified template documentation can be controlled by some parameters, e.g.

desc= any description of the template, if different from default
addinf= additional information
shortkey= sort key, e.g. template name without "Created with"
Default is the value of shorthand
shorthand= 0 any redirects to the template
shorttext= 0 any additional text to shorthand
igen= 0 abbreviation used by the template {{Image generation}}
catnam= if category names differ from template name
cattext= 0 any additional text following categories
n= (=yes) if category "PNG created with ..." should exist
sub= text or (=n) if no subcategorization should be possible
vopttext= 0 (=yes) or any additional text to vopt
vdef= value for parameter #2 to preset default (e.g. "n" or "v")
vstyle= value for parameter vstyle to preset default (e.g. "fl")
code= (1, 2 or 3) if the file description should display source code(s)
codetext= any additional text when code
inval= e.g. "no" when no categories for W3C-invalid code are needed
I= (Upper case "i"): some description for parameter IMPORTANT
w1= width for left table column of example; default=37
w2= width for right table column of example; default=63
I18dot= e.g. "yes": uses internationalization subtemplates from "Created with ..."

◾ ◾ ◾ ◾ End of the documentations documentation ◾ ◾ ◾ ◾


}}}|...}}</includeonly>

English: Used to mark files sVG created with/doc

Usage

{{SVG created with/doc ... |err= |topic= }}

Unified description for the SVG created with ... templates

Template parameters

ParameterDescriptionDefaultStatus
1name of user or author (for display); may as well be a link
coded e.g. with {{U}}, {{Uc}}, {{Ud}}, {{Ut}}, {{Ult}} or otherwise.
emptyoptional
2lowercase letter "v": generates the {{ValidSVG}} tag
This "v" may as well be given with parameter#1 if no user name is specified
emptyoptional
err
errors
errnum
number of errors from W3C validator, generates {{InvalidSVG}}
Mutually exclusive with "v"; should be a numeric value
err=0 is equivalent to 2=v
emptyoptional
moreoptional additional text.optional
widthto set another width for the grey boxautooptional
styleto set or overwrite other style attributes for the boxemptyoptional
cat
category
name of category/categories, complete with the brackets
replaces the category "Category:SVG created with/doc" set by default
emptyoptional
sub
subcat
subcategory
for category diffusion: specify a suffix to the category name
Select the best fitting subcategory, or create an appropriate new one
To insert an inbetween space, use understroke _ or &nbsp; and not <nowiki/>
emptyoptional
key
sort
sortkey
Sortkey option within the category

default value is the file name, will be preceded by the sortkey if any is given)

If an error number is specified, it is always the first sort key, in descending order.
emptyoptional
topicto specify the short code (e.g. "f" for "flag, "i" for "icon", "m" for map) of a topicemptyoptional
vwidth
vw
to set another width for the box of ValidSVG/InvalidSVGwidthoptional
vstyle
vs
to set or overwrite other style attributes for the box of ValidSVG/InvalidSVG
e.g. vstyle=float:left or short vs=fl
styleoptional
vtext
vtxt
vt
optional additional text for ValidSVG/InvalidSVG.optional
vopt
vo
opt
to set or overwrite the display source option for ValidSVG/InvalidSVG
(set vo=<nowiki/> to suppress, e.g. when files are too large for validation)
Suppress the display of the validation box with vopt=none (abbr: vo=n)
emptyoptional

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