Template:AttribFile

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Replacement filing cabinet.svg This file includes elements that have been taken or adapted from this: Replacement filing cabinet.svg Replacement filing cabinet.svg.

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


This documentation is transcluded from Template:Attrib/doc

This template is to be used on all files except SVG Images that make use of elements from other files 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:Derivative files

Usage

{{Attrib |1= }}

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

Template parameters

ParameterDescriptionDefaultStatus
1name of the file where elements are taken fromemptyrequired
2
by
name of the user who created that image (will be checked for existence)emptyoptional
category
cat
3
name of a category (to be used instead of the standard category)
specify cat=- to suppress 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
fileoptional
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 ATTRIBFILE 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 in cases where the template U is not useful
  • parameter "t"
  • parameter "f" with optional individuality f1, f1, ..., f10
  • parameter "cat"
  • parameter "type"

Localization

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