Difference between revisions of "Template:Derivative versions/doc"
Mediawiki>Sarangbot m (format) |
m (1 revision imported) |
Latest revision as of 15:43, 24 January 2022
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template is used to display [a list of] derivative works of a file.
The template automatically sets the following categories: Files with derivative versions
Usage
{{Derivative versions |1= }}
30px | This template uses Lua: |
You can add as many images as you like. A namespace prefix (like "File:") does not disturb.
Aliasnames:
Examples
This file has no description, and may be lacking other information.
Files should have a summary to inform others of its function. If you know or have access to such information, please add it as appropriate to this page. Notify the creator with: {{subst:add-desc-F|1=Derivative versions/doc}} |
- {{ Derivative versions | File:Example.jpg | by = username }} Template:I18n/or {{ Derivative versions | 1 = File:Example.jpg | by = username }}
gives:
Template:Box-2
- {{ Derivative versions | Example.jpg | Query-road.png | SVG example7.svg | display = 16 }}
gives:
Template:Box-2
- {{ Derivative versions | Example.jpg | Query-road.png | SVG example7.svg | display = 24 | opt = b }}
gives:
Template:Box-2
- {{ Derivative versions | One.svg | Nr02 blue.svg | Nr03 red.svg | 4 icon.svg | Circle-ye-5.svg | d = 24 | o = Z | o1 = l | l1 = first item }}
gives: Template:Box-2
For gallery style examples, see the talk page.
This template complements {{Derived from}}. For comparison see the counter-part:
{{ Derivative works | Example.jpg | Query-road.png | SVG example7.svg | display = 16 | opt = l }}
{{ Derived from | Example.jpg | Query-road.png | SVG example7.svg | display = 16 | opt = l }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Name(s) of the image (with or without namespace). | empty | required | |
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 display labels for each files | empty | optional | |
dis or d | Global pixel size value to display the image individual pixel size value(s) for each images | empty | optional | |
opt or o | Global additional option for {{F}}, like "l" (left), "b" (bordered) or "Z" (no displayed file names) individual additional option for {{F}} for each file, like "l", "b" or "Z" | empty | optional | |
par4 or q | Global 4th parameter for {{F}}, like "n" (nolink) or "+" or "-" individual 4th parameter(s) for {{F}} for each file, like "n" or "+" or "-" | empty | optional | |
par5 or r | Global 5th parameter for {{F}} individual 5th parameter(s) for {{F}} for each file | empty | optional | |
wiki or k | Global ISO 639-1 language code for a Wikipedia individual ISO 639-1 language codes for each file | empty | optional | |
inter or i | Global ISO 639-1 language code for multilanguage SVGs (internationalization) individual ISO 639-1 language codes for each multilanguage SVG | empty | optional | |
pfx or x | Global code prefixing the file(s) individual code prefix for each file | empty | optional | |
by or b | Global author name(s) individual author name(s) for each file | 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: see {{G}} for gallery 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
⧼Seealso⧽
- {{Derivative}} – credits author
The counter-part — nominate pictures where that picture is made (inspired, influenced, uses parts or technique) from:
- {{Derived from}}
- {{AutVec}} for mere conversions to SVG - ("authors of vectorized raster graphic")
- {{Retouched}}
- {{Extracted}}
- {{Attrib}} – credits author
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 byTemplate:Sub.
An individual author assignment can either specify an author, or with no value byTemplate:Sub=
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 byTemplate:Sub=user
, nor are excluded byTemplate:Sub=
.
Localization
English ∙
This template makes use of {{Autotranslate}} and the translate extension.