Template:Derived from/doc: Difference between revisions
More actions
m iterate |
m new parm |
||
| Line 14: | Line 14: | ||
|4d-en=user-name of the original author, displayed by {{T2|by||}} <!-- <br>when it starts with either a "{" or "[", then it will be used as it is,<br> otherwise --> as parameter for {{T2|U}}<br>''or'' a colon ":" - see [[#Colon]] | |4d-en=user-name of the original author, displayed by {{T2|by||}} <!-- <br>when it starts with either a "{" or "[", then it will be used as it is,<br> otherwise --> as parameter for {{T2|U}}<br>''or'' a colon ":" - see [[#Colon]] | ||
|4stat=optional- | |4stat=optional- | ||
|5=by{{sub|1}} ... by{{sub|∞}} | |||
|5d-en=either the user-name of the original author of file{{sub|n}}, or suppression with <tt>by{{sub|n}}=-</tt> | |||
|5stat=optional- | |||
|name=Derived from | |name=Derived from | ||
| Line 76: | Line 79: | ||
{{LangSwitch|de=Für lediglich [[Template talk:AutVec|Konvertierung zu SVG]]:|en=For mere [[Template talk:AutVec|conversions to SVG]]:}} | {{LangSwitch|de=Für lediglich [[Template talk:AutVec|Konvertierung zu SVG]]:|en=For mere [[Template talk:AutVec|conversions to SVG]]:}} | ||
* {{Tl|AutVec}} - ("<u>aut</u>hors of <u>vec</u>torized raster graphic") | * {{Tl|AutVec}} - ("<u>aut</u>hors of <u>vec</u>torized raster graphic") | ||
== ''by'' User == | |||
The file specified with parameter 1, or each file specified with parametrs 1 to n, can alo be linked with the name of its author.<br> | |||
A value given with the parameter "by=" will be assigned to each file which does not have an individual author assignement with by{{sub|n}}.<br> | |||
An individual author assigment can either specify an author, or with the value <code>by{{sub|n}}=-</code> that no "by" should exist for that file <tt>n</tt>.<br> | |||
The 'global' parameter "by=''user''" is for all files that neither get an own author name <code>by{{sub|n}}=''user''</code>, nor are excluded <code>by{{sub|n}}=-</code>. | |||
== Colon == | == Colon == | ||
Revision as of 13:11, 28 January 2020
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 ... ∞= }}
Examples
{{ Derived from | Example.jpg | by = {{u|example|'''original''' author}} }} gives
This file was derived from: Example.jpg by original author
{{ Derived from | Example.jpg | Beispiel.png | display = 16 }} gives
This file was derived from:
{{ Derived from | Example.jpg | Beispiel.png | Sample.svg | display = 16 | opt = l }} ("l" for "left") gives
This file was derived from:
You can add up to 40 images. (Capability for more can easily be added in the template code)
This template complements {{Derivative versions}}.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 ... ∞ | file derived from (unnamed parameters up to an unlimited number of file names) | empty | required | |
display or d | size in pixels of thumbnail of files derived from. If not provided, no thumbnail is shown. | empty | optional | |
opt or o | an additional option for displaying the file, e.g. "l" (display left) or "b" (bordered) | empty | optional | |
by | user-name of the original author, displayed by {{By}} as parameter for {{U}} or a colon ":" - see #Colon | empty | optional | |
by1 ... by∞ | either the user-name of the original author of filen, or suppression with byn=- | empty | 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
See also
Consider also using the following specific derivation templates, for retouching and extracting or cropping:
- {{Retouched picture}}
- {{Extracted from}}/{{Image extracted}}
- {{Attrib}} or the deprecated version {{AttribSVG}}
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 parametrs 1 to n, can alo 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 assignement with byn.
An individual author assigment can either specify an author, or with the 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=-.
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 from | by = : }}{{ F | Example.svg }}{{ By | example }}<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)