Template:Derived from/doc: Difference between revisions
More actions
m save expansion |
|||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d=file derived from (up to | |1d=file derived from (up to 25 unnamed parameters can be used, for 25 files) | ||
|1def= | |1def= | ||
|1stat=required | |1stat=required | ||
|2=display | |2=display | ||
|2d=size in pixels of thumbnail of files derived from. If not provided, no thumbnail is shown. | |2d=size in pixels of thumbnail of files derived from. If not provided, no thumbnail is shown. | ||
|2stat=optional | |2stat=optional- | ||
|name= | |3=opt | ||
|3d-en=an additional option for {{Tl|F}}, either "l" (left) or "b" (bordered) | |||
|3stat=optional- | |||
|name={{BASEPAGENAME}} | |||
|desc= | |desc= | ||
If your file is a derivative work of another file on Commons, use this template to link it. | If your file is a derivative work of another file on Commons, use this template to link it. | ||
| Line 13: | Line 17: | ||
'''Examples:''' | '''Examples:''' | ||
'''{{Tlf|Derived from|Example.jpg|Beispiel.png | '''{{Tlf|Derived from|Example.jpg}}''' gives: | ||
{{Derived from|Example.jpg|Beispiel.png}} | {{Derived from|Example.jpg}} | ||
{{Tlf|Derived from|Example.jpg|Beispiel.png|6='''display=16'''}} gives: | |||
{{Derived from|Example.jpg|Beispiel.png|Sample.svg|display=16}} | {{Derived from|Example.jpg|Beispiel.png|display=16}} | ||
{{Tlf|Derived from|Example.jpg|Beispiel.png|Sample.svg|6=display=16|7='''opt=l'''}} gives: | |||
{{Derived from|Example.jpg|Beispiel.png|Sample.svg|display=16|opt=l}} | |||
This template complements {{tl|Derivative versions}}. | This template complements {{tl|Derivative versions}}. | ||
You can add up to | You can add up to 25 images. (Capability for more can be added in the template code) | ||
|namespace=File | |namespace=File | ||
|usergroup=all | |usergroup=all | ||
| Line 41: | Line 47: | ||
|relieson= | |relieson= | ||
}} | }} | ||
<includeonly>[[Category:Marker templates|{{PAGENAME}}]]<includeonly> | |||
<!-- exp saved | |||
{{LangSwitch | |||
|bn=এই ফাইলটি যেখান থেকে নেওয়া হয়েছে: | |||
|cs=Tento soubor byl odvozen z: | |||
|de=Diese Datei wurde von diesen Werken abgeleitet: | |||
|en=This file was derived from: | |||
|es=Este archivo se derivó de: | |||
|et=See fail on tuletatud järgmistest teostest: | |||
|fa=این پرونده مشتق شدهاست از: | |||
|fr=Ce fichier est dérivé de : | |||
|gl=Este ficheiro derivou de: | |||
|hu=Ez a fájl ebből származik: | |||
|it=Questo file deriva da: | |||
|ja=このファイルの派生元: | |||
|ml=ഈ പ്രമാണം ഇതിൽ/ഇവയിൽ നിന്ന് സൃഷ്ടിച്ചതാണ്: | |||
|pl=Ten plik jest pochodną pracy: | |||
|sl=Ta datoteka je izpeljana iz: | |||
|ru=Этот файл является производной работой от: | |||
|uk=Цей файл є похідною роботою від: | |||
|zh-cn=此档案源起于以下档案或由以下档案加以编辑而成: | |||
|zh-hans=此档案源起于以下档案或由以下档案加以编辑而成: | |||
|zh-hant=此檔案起源於以下檔案或由以下檔案加以編輯而成: | |||
|zh-hk=此檔案起源於以下檔案或由以下檔案加以編輯而成: | |||
|zh-mo=此檔案起源於以下檔案或由以下檔案加以編輯而成: | |||
|zh-my=此档案源起于以下档案或由以下档案加以编辑而成: | |||
|zh-sg=此档案源起于以下档案或由以下档案加以编辑而成: | |||
|zh-tw=此檔案起源於以下檔案或由以下檔案加以編輯而成: | |||
}}{{#ifexist:Media:{{{1|}}}| | |||
*{{F|{{{1|}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{2|}}}| | |||
*{{F|{{{2}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{3|}}}| | |||
*{{F|{{{3}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{4|}}}| | |||
*{{F|{{{4}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{5|}}}| | |||
*{{F|{{{5}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{6|}}}| | |||
*{{F|{{{6}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{7|}}}| | |||
*{{F|{{{7}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{8|}}}| | |||
*{{F|{{{8}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{9|}}}| | |||
*{{F|{{{9}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{10|}}}| | |||
*{{F|{{{10}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{11|}}}| | |||
*{{F|{{{11}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{12|}}}| | |||
*{{F|{{{12}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{13|}}}| | |||
*{{F|{{{13}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{14|}}}| | |||
*{{F|{{{14}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{15|}}}| | |||
*{{F|{{{15}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{16|}}}| | |||
*{{F|{{{16}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{17|}}}| | |||
*{{F|{{{17}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{18|}}}| | |||
*{{F|{{{18}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{19|}}}| | |||
*{{F|{{{19}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{20|}}}| | |||
*{{F|{{{20}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{21|}}}| | |||
*{{F|{{{21}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{22|}}}| | |||
*{{F|{{{22}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{23|}}}| | |||
*{{F|{{{23}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{24|}}}| | |||
*{{F|{{{24}}}|3={{{display|}}}|4={{{opt|}}}}}}}{{#ifexist:Media:{{{25|}}}| | |||
*{{F|{{{25}}}|3={{{display|}}}|4={{{opt|}}}}}}}<br><noinclude> | |||
{{doc-if}} | |||
</noinclude> | |||
--> | |||
Revision as of 17:05, 25 November 2014
If your file is a derivative work of another file on Commons, use this template to link it.
Examples:
{{Derived from|Example.jpg}} gives:
This file was derived from: Example.jpg
{{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}} gives:
This file was derived from:
This template complements {{Derivative versions}}.
You can add up to 25 images. (Capability for more can be added in the template code)
Usage
{{Derived from |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | file derived from (up to 25 unnamed parameters can be used, for 25 files) | empty | required | |
display | size in pixels of thumbnail of files derived from. If not provided, no thumbnail is shown. | empty | optional | |
opt | an additional option for {{F}}, either "l" (left) or "b" (bordered) | 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:
The counterpart:
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)