This page is semi-protected against editing.

Template:Derived from

From Wikimedia Commons, the free media repository
(Redirected from Template:DF)
Jump to navigation Jump to search

This file was derived from:

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Derived from/doc.

If your file is a derivative work of another file on Commons, use this template to link it.

The template automatically sets the following categories: Derivative versions

Usage

{{Derived from |1= }}

A namespace prefix (like "File:") does not disturb.

Examples

{{ Derived fromExample.jpgby = {{u|example|'''original''' author}} }} gives
This file was derived from: Example.jpg by original author


{{ Derived fromExample.jpgBeispiel.pngdisplay = 16 }} gives
This file was derived from:

{{ Derived fromExample.jpg..s.gdisplay = 16opt = l }} ("l" for "left") gives
This file was derived from:


This template complements {{Derivative versions}}.

Template parameters

ParameterDescriptionDefaultStatus
1File name of the image (with or without namespace).0optional
2, 3, ..., nnames of more files; for each empty parameter, the name of parameter 1 is usedemptyoptional
labFFF or l
0l1 ... ln
(Global display label for files) normally not useful if more than 1 file
individual parameter(s)
emptyoptional
disFFF or dl
0d1 ... dn
Global pixel size value, to display the image
individual size parameter{s}
emptyoptional
optFFF or o
0o1 ... on
Global additional option for {{F}}, like "l" (left) or "b" (bordered)
individual option(s)
emptyoptional
par4FF or ql
0q1 ... qn
Global 4th parameter for {{F}}, like "n" (nolink) or "+" or "-"
individual more parameter(s)
emptyoptional
par5FF or rl
0r1 ... rn
Global 5th parameter for {{F}}
individual more parameter(s)
emptyoptional
wikiFF or kl
0k1 ... kn
Global ISO 639-1 code for a Wikipedia sister project
individual code parameter(s)
emptyoptional
interF or il
0i1 ... in
Global ISO 639-1 code for SVG switch internationalization
individual code parameter(s)
emptyoptional
pfxFFF or xl
0x1 ... pn
Global code prefixing the file
individual prefix parameter(s)
emptyoptional
byFFFF or bl
0b1 ... bn
Global author name
individual author name(s)
emptyoptional
modFFF or ml
0m1 ... mn
Global code for modification of the user link(s)
individual modifications (as t, w, wt)
emptyoptional
galleryset to "yes" for a gallery layout: parametersemptyoptional

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

Consider also using the following specific derivation templates, for retouching and extracting or cropping:

The counterpart:

For mere conversions to SVG:

  • {{AutVec}} - ("authors of vectorized raster graphic")

by User

The file specified with parameter 1, or each file specified with parameters 1 to n, can also be linked with the name of its author.
A value given with the parameter "by=" will be assigned to each file which does not have an individual author assignment with byn.
An individual author assignment can either specify an author, or with no value byn= that no "by" should exist for that file n.
The 'global' parameter "by=user" is for all files that neither get an own author name byn=user, nor are excluded byn=.

Abbrevition :

In simple cases the |by= can be abbreviated with "/":
{{ Derived fromExample.jpg/Exampleexample.svg/Extra }}
renders as
This file was derived from:

Colon

The template finishes its display with a new line; when the template is used just to display the text, like
{{ Derived from }} - This file was derived from: which will not be appropriate if continuation in the same line is required; the new line can be avoided by using a colon instead of the missing user name, e.g.
{{ Derived fromby = : }}{{ FExample.svg }}{{ Byexample }}<br /> - This file was derived from:Example.svg by example
without inbetween spaces; a final new line can be forced manually, as shown, or by passing "br" as a second parameter to {{By}}.

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)