Template:Attrib

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
 
This image includes elements that have been taken or adapted from this file:
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 images that make use of elements from other 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:Derivative works

Usage

{{Attrib |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1name of the image where elements are taken from   (may be with the namespace)emptyrequired
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=- or cat= to suppress the standard categorization
emptyoptional
type
4
file type specification ("SVG", "file"; for SVG files the default is "SVG")
specify 4=- or 4= to display parameter 1 as plain text instead of a picture
emptyoptional
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 parameters #2 and #6 are ignored and no existence check is performed.
emptyoptional
U
6
name of the user who created that image (without existence check)
When provided the parameter #2 is 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
part
p
9
specification of the part or element which is used
displayed as-it-is, may be multilingul (e.g. Langswitch) specified
emptyoptional
sstyle: with s=s a shortened text will be didplayedemptyoptional
mpossible {{U}} modification code (e.g. t, w, wt) for parameter U or 6emptyoptional

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|m=t}}

renders as:

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

See also

  • parameter 1, 3, 5, ...
  • parameter 2, 4, 6, ...
  • parameter "by" or parameter "U" or parameter "u" for empty parameters 2, 4, 6, ...
  • parameter "t" 00 "to"-topic
  • parameter "f" 00 "from" topic, general
  • parameter "p" 00 used "part", general
  • parameter "cat"
  • parameter "type"
  • parameters f1, f2, f3 ... individual 'from'-topics for files {parameter 1, 3, 5, ...}
  • parameters p1, p2, p3 ... individual parts of the files {parameter 1, 3, 5, ...}
  • parameters m1, m2, m3 ... individual modifications for users {parameter 2, 4, 6, ...}

Lua: can perform an unlimited number of Attrib transclusions.

Localization

العربية  беларуская (тарашкевіца)  বাংলা  Deutsch  English  español  eesti  français  galego  hrvatski  magyar  italiano  日本語  македонски  മലയാളം  norsk bokmål  Nederlands  polski  português  русский  sicilianu  slovenščina  svenska  ślůnski  简体中文  繁體中文  +/−

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Attrib/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:Attrib/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.