Template:Derived from/doc: Difference between revisions
More actions
mNo edit summary |
m 56 revisions imported |
||
| (9 intermediate revisions by 6 users not shown) | |||
| Line 5: | Line 5: | ||
|1d-es=Nombre de la imágen (sin o con el espacio de nombres) | |1d-es=Nombre de la imágen (sin o con el espacio de nombres) | ||
|1d-fr=Nom de l'image (sans ou avec l’espace de noms) | |1d-fr=Nom de l'image (sans ou avec l’espace de noms) | ||
|1d-ja= | |1d-ja=画像名(名前空間不問) | ||
|1d-ko=이미지 파일 이름 (이름 공간 없음) | |1d-ko=이미지 파일 이름 (이름 공간 없음) | ||
|1d-pt=Nome da imagem (sem ou com espaços de nomes) | |1d-pt=Nome da imagem (sem ou com espaços de nomes) | ||
|1d-de=Name des Bildes. | |1d-de=Name des Bildes. | ||
|1d-zh=图像的文件名(包含或不包含名字空间名称皆可) | |1d-zh=图像的文件名(包含或不包含名字空间名称皆可) | ||
|1d-td=File name | |||
|1d-td-en=File name of the image | |||
|1def={{0}} | |1def={{0}} | ||
|1stat=requested | |1stat=requested | ||
|2=2, 3, ... n | |2=2, 3, ..., n | ||
|2d-en=names of more files; for each empty parameter, the name of parameter 1 is used | |2d-en=names of more files; for each empty parameter, the name of parameter 1 is used | ||
|2d-de=Namen weiterer Dateien; leere Prameter werden durch den Namen der ersten Datei ersetzt | |2d-de=Namen weiterer Dateien; leere Prameter werden durch den Namen der ersten Datei ersetzt | ||
| Line 20: | Line 22: | ||
|2stat=optional- | |2stat=optional- | ||
|3=lab</code>{{0|FFF}} ''or'' <code>l<br>{{0}} | |3=lab</code>{{0|FFF}} ''or'' <code>l<br />{{0}}l1 ... ln | ||
|3d-en=(Global display <u>label</u> for files) normally not useful if more than 1 file<br>individual parameter(s) | |3d-en=(Global display <u>label</u> for files) normally not useful if more than 1 file<br />individual parameter(s) | ||
|3d-de=individuelle Namen, die statt des Dateinamens angezeigt werden<br>individuelle Parameter | |3d-de=individuelle Namen, die statt des Dateinamens angezeigt werden<br />individuelle Parameter | ||
|3d-zh=文件的全域显示标签,多于1个文件时通常没有用<br>特定参数 | |3d-zh=文件的全域显示标签,多于1个文件时通常没有用<br />特定参数 | ||
|3stat=optional- | |3stat=optional- | ||
|4=dis{{0|FFF}}</code> ''or'' <code>d{{0|l}}<br>{{0}} | |4=dis{{0|FFF}}</code> ''or'' <code>d{{0|l}}<br />{{0}}d1 ... dn | ||
|4d-en=Global pixel size value, to <u>display</u> the image<br>individual size parameter{s} | |4d-en=Global pixel size value, to <u>display</u> the image<br />individual size parameter{s} | ||
|4d-de=Pixelwert für die darzustellende Bildgröße <br>individuelle Größenwerte | |4d-de=Pixelwert für die darzustellende Bildgröße <br />individuelle Größenwerte | ||
|4d-zh=全域像素大小值,从而显示图像<br>特定尺寸参数 | |4d-zh=全域像素大小值,从而显示图像<br />特定尺寸参数 | ||
|4stat=optional- | |4stat=optional- | ||
|5=opt</code>{{0|FFF}} ''or'' <code>o<br>{{0}} | |5=opt</code>{{0|FFF}} ''or'' <code>o<br />{{0}}o1 ... on | ||
|5d-en=Global additional <u>option</u> for {{Tl|F}}, like "l" (left) or "b" (bordered)<br>individual option(s) | |5d-en=Global additional <u>option</u> for {{Tl|F}}, like "l" (left) or "b" (bordered)<br />individual option(s) | ||
|5d-de=zusätzliche Option für {{Tl|F}}, wie "l" (links) or "b" (umrahmt)<br>individuelle Optionen | |5d-de=zusätzliche Option für {{Tl|F}}, wie "l" (links) or "b" (umrahmt)<br />individuelle Optionen | ||
|5stat=optional- | |5stat=optional- | ||
|6=par4</code>{{0|FF}} ''or'' <code>q{{0|l}}<br>{{0}} | |6=par4</code>{{0|FF}} ''or'' <code>q{{0|l}}<br />{{0}}q1 ... qn | ||
|6d-en=Global 4{{exp|th}} <u>par</u>ameter for {{Tl|F}}, like "n" (nolink) or "+" or "-"<br>individual more parameter(s) | |6d-en=Global 4{{exp|th}} <u>par</u>ameter for {{Tl|F}}, like "n" (nolink) or "+" or "-"<br />individual more parameter(s) | ||
|6d-de=globaler 4. Parameter für {{Tl|F}}<br>individuelle weitere Optionsparameter | |6d-de=globaler 4. Parameter für {{Tl|F}}<br />individuelle weitere Optionsparameter | ||
|6stat=optional- | |6stat=optional- | ||
|7=par5</code>{{0|FF}} ''or'' <code>r{{0|l}}<br>{{0}} | |7=par5</code>{{0|FF}} ''or'' <code>r{{0|l}}<br />{{0}}r1 ... rn | ||
|7d-en=Global 5{{exp|th}} <u>par</u>ameter for {{Tl|F}}<br>individual more parameter(s) | |7d-en=Global 5{{exp|th}} <u>par</u>ameter for {{Tl|F}}<br />individual more parameter(s) | ||
|7d-de=globaler 5. Parameter für {{Tl|F}}<br>individuelle weitere Optionsparameter | |7d-de=globaler 5. Parameter für {{Tl|F}}<br />individuelle weitere Optionsparameter | ||
|7stat=optional- | |7stat=optional- | ||
<!-- | <!-- | ||
|8=<s>par6</s></code>{{0|FF}} ''or'' <code>v{{0|l}}<br>{{0}} | |8=<s>par6</s></code>{{0|FF}} ''or'' <code>v{{0|l}}<br />{{0}}v1 ... vn | ||
|8d-en=Global 6{{exp|th}} parameter for {{Tl|F}}<br>individual more parameter(s) | |8d-en=Global 6{{exp|th}} parameter for {{Tl|F}}<br />individual more parameter(s) | ||
|8d-de=globaler 6. Parameter für {{Tl|F}}<br>individuelle weitere Parameter | |8d-de=globaler 6. Parameter für {{Tl|F}}<br />individuelle weitere Parameter | ||
|8stat=optional- | |8stat=optional- | ||
--> | --> | ||
|10=wiki</code>{{0|FF}} ''or'' <code>k{{0|l}}<br>{{0}} | |10=wiki</code>{{0|FF}} ''or'' <code>k{{0|l}}<br />{{0}}k1 ... kn | ||
|10d-en=Global {{w|List of ISO 639-1 codes|ISO 639-1}} code for a <u>Wi'''k'''i</u>pedia sister project <br>individual code parameter(s) | |10d-en=Global {{w|List of ISO 639-1 codes|ISO 639-1}} code for a <u>Wi'''k'''i</u>pedia sister project <br />individual code parameter(s) | ||
|10d-ko=위키백과(<u>Wi'''k'''i</u>pedia) 자매 프로젝트의 글로벌 {{w말|ISO 639-1 코드 목록|ISO 639-1}} 코드<br>개별 코드 매개변수 | |10d-ko=위키백과(<u>Wi'''k'''i</u>pedia) 자매 프로젝트의 글로벌 {{w말|ISO 639-1 코드 목록|ISO 639-1}} 코드<br />개별 코드 매개변수 | ||
|10d-de=globaler {{w|List of ISO 639-1 codes|ISO 639-1}} Code für <u>Wi'''k'''i</u>pedia Schwesterprojekt-Code<br>individuelle ISO codes | |10d-de=globaler {{w|List of ISO 639-1 codes|ISO 639-1}} Code für <u>Wi'''k'''i</u>pedia Schwesterprojekt-Code<br />individuelle ISO codes | ||
|10d-zh=维基姐妹项目的全域 {{w|ISO 639-1代码表|ISO 639-1|zh}} 代码<br>特定 ISO 代码参数 | |10d-zh=维基姐妹项目的全域 {{w|ISO 639-1代码表|ISO 639-1|zh}} 代码<br />特定 ISO 代码参数 | ||
|10stat=optional- | |10stat=optional- | ||
|11=inter</code>{{0|F}} ''or'' <code>i{{0|l}}<br>{{0}} | |11=inter</code>{{0|F}} ''or'' <code>i{{0|l}}<br />{{0}}i1 ... in | ||
|11d-en=Global {{w|List of ISO 639-1 codes|ISO 639-1}} code for SVG switch <u>inter</u>nationalization<br>individual code parameter(s) | |11d-en=Global {{w|List of ISO 639-1 codes|ISO 639-1}} code for SVG switch <u>inter</u>nationalization<br />individual code parameter(s) | ||
|11d-de=globaler Code einer mehrsprachigen Datei<br><u>indiv</u>iduelle Sprachcodes | |11d-de=globaler Code einer mehrsprachigen Datei<br /><u>indiv</u>iduelle Sprachcodes | ||
|11stat=optional- | |11stat=optional- | ||
|12=pfx</code>{{0|FFF}} ''or'' <code>x{{0|l}}<br>{{0}} | |12=pfx</code>{{0|FFF}} ''or'' <code>x{{0|l}}<br />{{0}}x1 ... pn | ||
|12d-en=Global code <u>prefi'''x'''</u>ing the file<br>individual prefix parameter(s) | |12d-en=Global code <u>prefi'''x'''</u>ing the file<br />individual prefix parameter(s) | ||
|12d-de=globaler <u>Prefi'''x'''</u> vor der Dateiausgabe ist<br>individuelle Prefixes | |12d-de=globaler <u>Prefi'''x'''</u> vor der Dateiausgabe ist<br />individuelle Prefixes | ||
|12d-zh=前缀于文件的全域代码<br>特定前缀参数 | |12d-zh=前缀于文件的全域代码<br />特定前缀参数 | ||
|12stat=optional- | |12stat=optional- | ||
|13=by</code>{{0|FFFF}} ''or'' <code>b{{0|l}}<br>{{0}} | |13=by</code>{{0|FFFF}} ''or'' <code>b{{0|l}}<br />{{0}}b1 ... bn | ||
|13d-en=Global author name<br>individual author name(s) | |13d-en=Global author name<br />individual author name(s) | ||
|13d-de=globaler Benutzername (Datei-Autor) <br>individuelle Benutzernamen | |13d-de=globaler Benutzername (Datei-Autor) <br />individuelle Benutzernamen | ||
|13d-zh=全域作者名<br>特定作者名 | |13d-zh=全域作者名<br />特定作者名 | ||
|13stat=optional- | |13stat=optional- | ||
|14=mod</code>{{0|FFF}} ''or'' <code>m{{0|l}}<br />{{0}}m1 ... mn | |||
|14d-en=Global code for modification of the user link(s)<br />individual modifications (as <code>t</code>, <code>w</code>, <code>wt</code>) | |||
|14d-de=globale Benutzernamen-Modifikation ,<br />individuelle Modifikationen (wie <code>t</code>, <code>w</code>, <code>wt</code>) | |||
|14stat=optional- | |||
<!-- galllery NOT with "Derived from" ??? for this templatem d\gallery is not useful ! --> | <!-- galllery NOT with "Derived from" ??? for this templatem d\gallery is not useful ! --> | ||
| Line 97: | Line 99: | ||
|usergroup=all | |usergroup=all | ||
|placement= | |placement= | ||
|usage-notes={{Lua|Module:Iteration}}{{LangSwitch | |usage-notes={{#if:{{{v|}}}||{{Lua|Module:Iteration}}}}{{LangSwitch | ||
|de= | |de= | ||
Ein eventueller Namensraum-Vorsatz (wie "File:") ist unbedenklich. | Ein eventueller Namensraum-Vorsatz (wie "File:") ist unbedenklich. | ||
| Line 112: | Line 114: | ||
|de=ergibt | |de=ergibt | ||
|en=gives | |en=gives | ||
}}<br> | }}<br /> | ||
{{Derived from|Example.jpg|by={{u|example|'''original''' author}}}} | {{Derived from|Example.jpg|by={{u|example|'''original''' author}}}} | ||
| Line 119: | Line 121: | ||
|de=ergibt | |de=ergibt | ||
|en=gives | |en=gives | ||
}}<br> | }}<br /> | ||
{{Derived from|Example.jpg|User talk:Beispiel.png|display=16}} <!-- example for namespace prefix "User talk:" --> | {{Derived from|Example.jpg|User talk:Beispiel.png|display=16}} <!-- example for namespace prefix "User talk:" --> | ||
{{Tle|t=Derived from|Example.jpg|.|.s| | {{Tle|t=Derived from|Example.jpg|.|.s|.g|p5=display|16|p6='''opt'''|'''l'''}} {{LangSwitch | ||
|de=("< | |de=("<code>l</code>" für "links") ergibt | ||
|en=("< | |en=("<code>l</code>" for "left") gives | ||
}}<br> | }}<br /> | ||
{{Derived from|Example.jpg|.|.s|display=16|opt=l}} <!-- example for "same filename" --> | {{Derived from|Example.jpg|.|.s|.g|display=16|opt=l}} <!-- example for "same filename" --> | ||
<!-- the following is outdated - no limnit anymore | <!-- the following is outdated - no limnit anymore | ||
| Line 160: | Line 162: | ||
== ''by'' User == | == ''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.<br> | 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.<br /> | ||
A value given with the parameter "by=" will be assigned to each file which does not have an individual author assignment with | A value given with the parameter "by=" will be assigned to each file which does not have an individual author assignment with by1, by2, ... .<br /> | ||
An individual author assignment can either specify an author, or with no value <code>by{{sub|n}}=</code> that no "by" should exist for that file < | An individual author assignment can either specify an author, or with no value <code>by{{sub|n}}=</code> that no "by" should exist for that file <code>n</code>.<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>. | 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>. | ||
;Abbrevition :: | |||
In simple cases the <code><nowiki>|by=</nowiki></code> can be abbreviated with "/":<br /> | |||
{{Tle|T={{BASEPAGENAME}}|Example.jpg/Example|example.svg/Extra}} <br /> | |||
renders as <br /> | |||
{{{{BASEPAGENAME}}|Example.jpg/Example|example.svg/Extra}} | |||
== Colon == | == Colon == | ||
The template finishes its display with a < | The template finishes its display with a <code>new line</code>; when the template is used just to display the text, like<br /> | ||
{{Tle|t=Derived from}} - {{Derived from}} which will not be appropriate if continuation in the same line is required; | {{Tle|t=Derived from}} - {{Derived from}} which will not be appropriate if continuation in the same line is required; | ||
the < | the <code>new line</code> can be avoided by using a colon instead of the missing user name, e.g.<br /> | ||
{{Tle|t=Derived from|p1=by|:}}{{Tle|t=F|Example.svg}}{{Tle|T=by|example}}<nowiki><br></nowiki> - {{Derived from|by=:}}{{F|Example.svg}}{{by|example|br}} without inbetween spaces; a final < | {{Tle|t=Derived from|p1=by|:}}{{Tle|t=F|Example.svg}}{{Tle|T=by|example}}<nowiki><br /></nowiki> - {{Derived from|by=:}}{{F|Example.svg}}{{by|example|br}} without inbetween spaces; a final <code>new line</code> can be forced manually, as shown, or by passing "br" as a second parameter to {{T|By}}. | ||
|setscats={{C|Derivative versions}} | |setscats={{C|Derivative versions}} | ||
Latest revision as of 16:43, 12 August 2026
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 | . | .s | .g | display = 16 | opt = l }} ("l" for "left") gives
This file was derived from:
This template complements {{Derivative versions}}.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | File name of the image (with or without namespace). | optional | ||
2, 3, ..., n | names of more files; for each empty parameter, the name of parameter 1 is used | empty | optional | |
lab or l | (Global display label for files) normally not useful if more than 1 file individual parameter(s) | empty | optional | |
dis or d | Global pixel size value, to display the image individual size parameter{s} | empty | optional | |
opt or o | Global additional option for {{F}}, like "l" (left) or "b" (bordered) individual option(s) | empty | optional | |
par4 or q | Global 4th parameter for {{F}}, like "n" (nolink) or "+" or "-" individual more parameter(s) | empty | optional | |
par5 or r | Global 5th parameter for {{F}} individual more parameter(s) | empty | optional | |
wiki or k | Global ISO 639-1 code for a Wikipedia sister project individual code parameter(s) | empty | optional | |
inter or i | Global ISO 639-1 code for SVG switch internationalization individual code parameter(s) | empty | optional | |
pfx or x | Global code prefixing the file individual prefix parameter(s) | empty | optional | |
by or b | Global author name individual author name(s) | empty | optional | |
mod or m | Global code for modification of the user link(s) individual modifications (as t, w, wt) | empty | optional | |
gallery | set to "yes" for a gallery layout: parameters | 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}}
- {{Own based}}
- {{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 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 by1, by2, ... .
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 from | Example.jpg/Example | example.svg/Extra }}
renders as
This file was derived from:
- Example.jpg by Example
- Example.svg by Extra
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)