Template:AttribSVG

From Wikimedia Commons, the free media repository
Jump to: navigation, search
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= |2
by= }}

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

Template parameters

Parameter Description Default Status
1 name of the SVG image were elements are taken from empty required
2
by
name of the user who created that image (will be checked for existence) empty optional
category
cat
3
name of a category (to be used instead of the standard category) empty optional
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
SVG optional
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.
empty optional
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.
empty optional
topic
t
7
it is possible to specify here the short code of a topic
(see the template Igen/top for the defined short codes);
it will be displayed instead of the type (e.g. vector image or file)
type 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

Example

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

renders as:

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

See also

Localization

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