Template talk:Own based

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Source works need to be free too[edit]

It seems to me that the {{Own based}} template simply tags a lot of images as derivative versions of some other work, perhaps under the mis-apprehension that if something is created from scratch the new author owns copyright and owes nothing to the original author. This is of course a mistake, see Commons:Derivative works --Tony Wills (talk) 09:16, 26 March 2012 (UTC)[reply]

This is just your POV. And this is of course not correct, see POV. --79.37.146.85 12:16, 26 March 2012 (UTC)[reply]
However, in the future, the files that could be with wrong license, will be deleted individually, following regular deletion requests. --79.37.146.85 12:39, 26 March 2012 (UTC)[reply]
This template really looks as though it is a good marker for dubious files, users of it are strongly recomended to study Commons:Derivative works carefully. Looking at the first 21 images linked to this template I find:
File:Druckregler.jpg appears to be a simple copy of an image from the source, which probably looks like this [1] - need to show the source is free
File:Bsd distributions usage.svg is fine if it is based on the data, not another image
File:Color icon orange.png is fine, but probably PD-ineligible anyway
File:Hungaroring.svg looks marginal, if the map is derived from co-ordinates (eg walk around the track with GPS), or from aerial photographs (but not just traced from the photo) it is fine even if it looks a bit like another map. But something that is just extracted, rotated, and slightly changed is clearly a derivative work.
File:Wbar blue left.jpg looks fine
All of the following appear to be derivatives of the cited source, they need to show that the original images are freely licensed (perhaps PD as works of the government if that applies) or cite descriptions on which these emblems are based rather than images that they are derived from. (see source for list)
Shall I continue? --Tony Wills (talk) 05:56, 28 March 2012 (UTC)[reply]
Some of these works are not properly derivative works, they only take inspiration from the source images. --79.22.195.4 11:45, 28 March 2012 (UTC)[reply]

Enhancement[edit]

Since the expansion of te template it can still be used to display the text "Own work based on:" in many languages;
but now it is also possible to display the link to the file(s) where the own work is based on.
In addition, the image(s) itself can be shown in any required size, with some options;
also a user, as the creator of the file, can be specified.

Instead of writing e.g.

|source=Own work, based on: [[:image:Recycling symbol, white on blue.svg|Recycling symbol, white on blue.svg]] by [[:user:Jimbo Wales|Jimbo Wales]]ky and others.

it can be expressed much shorter with

|source={{Own based|Recycling symbol, white on blue.svg|by=Jimbo Wales}}ky and others.

which will give in both cases

|source=Own work based on: Recycling symbol, white on blue.svg by Jimbo Walesky and others.

with the advantageous difference that the text generated by the template will be translated into the prevalent language - you may test this example.
With the parameter display= (short: d=) the file can be displayed inline; other options can be passed with the parameter opt= (short: o=),
see the description of many possible options. Example (like above, with d=24 and o=l and :=):

|source=Own work based on Recycling symbol, white on blue.svg by Jimbo Wales.

sarang사랑 16:14, 3 July 2018 (UTC)[reply]

Using Lua iteration[edit]

Own based can be used without parameters, to generate only the translated text.
Very few times more than one file is specified: normally a file is based on another one, complex drawings can mention their Attributes.
In only some rare cases two or three files are the base; it seems not useful to specify more than three files, and it had been impossible until now.
There will be sure no need to specify an unlimited number of files, but nevertheless it is made possible, because Lua provides other advantages.
As a consequence, options can be specified without restrictions.

Own work based on  Augsburg Tram 1.svg, Augsburg Tram 2.svg, Augsburg Tram 3.svg, Augsburg Tram 4.svg, Augsburg Tram 5.svg and Augsburg Tram 6.svg

Description of the Lua local function "samefile"[edit]

It needs five parameters, of which three are passed by the invokation

  1. string:0 a file name, or an extension, or empty
  2. integer: current number >= 1
  3. string:0 a file name, or an extension, or empty
  4. integer: nsnumber, mw.title.getCurrentTitle().namespace
  5. string:0 pagename, mw.title.getCurrentTitle().text e.g. a file name when invoked from the FILE namespace


  • When the str(1) is neither empty, nor starts with a ".",
then str(1) will be returned.


  • Otherwise, when str(1) is empty,
when int(2) = 1
and int(4) is 6 or 7
then str(5) will be returned
otherwise "Example.svg" will be returned;
when int(2) ≠ 1
and str(3) is neither empty, nor starts with a ".",
then str(3) will be returned;
otherwise str(3) is ignored and the same processing occurs as above for int(2) = 1.


  • When the str(1) starts with a ".",
and int(4) is 6 or 7
then str(5) is assumed to be a valid filename
and str(5) with the extension changed by str(1) will be returned.
When int(4) is neither 6 nor 7
a filename "Example" with the extension str(1) will be returned.


Str(1) starting with a "." can be either a valid extension, or an abbreviation where

  • ".p" stands for ".png" (can also be abbreviated with only a ".")
  • ".j" stands for ".jpg"
  • ".g" stands for ".gif"
  • ".s" stands for ".svg"

sarang사랑 09:23, 17 July 2020 (UTC)[reply]

Can somebody make this work for external URLs?[edit]

{{Edit request}}

{{own based|https://music.apple.com/us/album/good-evil/1111778836}} returns Own work based on: Https:.

Can this template work with external URLs? --QuickQuokka [⁠talkcontribs] 21:24, 15 June 2023 (UTC)[reply]

This template is intended to indicate files based on images on Wikimedia Commons. If you want to indicate files from external links, I suggest that you create an another template by yourself. --TKsdik8900 (talk) 04:14, 17 June 2023 (UTC)[reply]
@QuickQuokka: Try {{own based}}{{url|https://etc}}.
Daniele Fisichella 05:38, 19 November 2023 (UTC)[reply]

Display image and author[edit]

{{Based|Cartography of Europe (blue).svg/Authorname}} returns:

Own work based on: Cartography of Europe (blue).svg by Authorname

{{Based|Cartography of Europe (blue).svg|d=100}} returns:

Own work based on: Cartography of Europe (blue).svg

But
{{Based|Cartography of Europe (blue).svg/Authorname|d=100}} doesn't work; it ignores the image. Why?

{{Derived from}} doesn't have this issue. Can anyone fix it? Est. 2021 (talk) 04:17, 17 June 2023 (UTC)[reply]

HI translation[edit]

It is requested that an edit or modification be made to this protected page.
Administrators/template editors: Please apply <nowiki> or {{Tl}} to the tag after the request is fulfilled.

Saurmandal

इसपर आधारित अपना कार्य

~ Saur (talkcontribs) 03:19, 6 February 2024 (UTC)[reply]