Open main menu
SVG in SVG.svg This vector image includes elements that have been taken or adapted from this: SVG in SVG.svg SVG in SVG.svg.

Documentation icon Documentation [view] [edit] [history] [purge]


This documentation is transcluded from Template:Attrib/doc

This template is to be used on SVG images that make use of elements from other SVG images available on Commons.

It provides an easy way to attribute the author of work requiring such attribution.
In future it can allow for tracking of how free images are being used and derived from.

The template automatically sets the following categories: Category:Vector images using elements from other vector images

Usage

{{Attrib |1= }}

Or use the shorthand {{AttribSVG |… parameters as described …}}

Template parameters

ParameterDescriptionDefaultStatus
1name of the SVG image where elements are taken fromemptyrequired
by
2
name of the user who created that image; used as an argument for the template U
(will be checked for existence) except when it starts with either "&", "<", "[" or "{" — then
it will be used as-it-is, e.g. wikilinks; other user name templates like {{Ut}}, {{Uw}}
emptyoptional
category
cat
3
name of a category (to be used instead of the standard category)
may be specified completely "[[Category:xxxx]]" or just "xxxx"
specify cat=- to suppress the standard categorization
emptyoptional
type
4
file type specification ("SVG", "file"; for SVG files the default is "SVG")
specify 4=none to display parameter 1 as plain text instead of a picture
SVGoptional
user
u
5
user(s) who created that image. This information will be displayed as-it-is:
It can be passed in linkable format as e.g. {{U|user}} or as plain text.
When provided the other parameter #2 is ignored and no existence check is performed.
emptyoptional
U
6
name of the user who created that image (without existence check)
When provided the parameters #2 and #5 are ignored and no existence check is performed.
emptyoptional
topic
t
7
it is possible to specify here the short code of the topic (of the new file)
(see the template Igen/top for the defined short codes);
it will be displayed instead of the type (e.g. vector image or file)
typeoptional
from
f
8
topic short code, or free other text
it is possible to specify here the short code of the "from" topic;
it will be displayed at the "from" file
parm. 7optional

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

Example

{{Attrib|1=test.svg|U=Jimbo Wales|t=c|8=example}}

renders as:

Replacement filing cabinet.svg This ATTRIBSVG coat of arms includes elements that have been taken or adapted from this example: Test.svg Test.svg (by Jimbo Wales).

See also

  • parameter 1, 3, 5, ..., 19
  • parameter 2, 4, 6, ..., 20 - or
parameter u1, u2, u3, ..., u10
  • parameter "t"
  • parameter "f" with optional individuality f1, f1, ..., f10
  • parameter "cat"
  • parameter "type"

When there are more than 10 Attrib (File:German Empire states map gd.svg has 24) after a maximum of 10 Attrib a new Attribs is necessary.

Localization

For layout and localizing templates see Template:Attrib#Localization — autotranslation maintainance can be performed only there!