Template talk:Copy to Wikimedia Commons in/Archive 1

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Change to categorize as not eligible for Commons

If someone adds a {{Do not move to Commons}} the file ends up in Category:Media not suitable for Commons. I suggest that this templates add the files in the same category or in a sub category to make it easier to locate all files that is not ok for Commons (yet). We could either add {{Do not move to Commons}} or just the category. --MGA73 (talk) 21:23, 27 June 2012 (UTC)

Just adding [[Category:Media not suitable for Commons]] on line 7 (in between the }} and | lines) would work perfectly. Facing the Sky (talk) 11:21, 6 April 2014 (UTC)
Not done, as categories should be added to the documentation page, unless you can provide a convincing reason to add it here. Kevin Rutherford (talk) 00:45, 8 April 2014 (UTC)
It's a property of the file that it's added on—not the template itself—which are not suitable for transfer to Commons because they're not out of copyright in their source countries. It's also not the case that every file this template is transcluded on is unsuitable for Commons, since the copyright may have already expired or expired between the present and when the template was added. This is useful specifically for tooling (in particular, category intersection with catscan). Facing the Sky (talk) 08:42, 8 April 2014 (UTC)
Done Jackmcbarn (talk) 18:50, 8 April 2014 (UTC)

PD where?

The documentation here talks about PD, unspecified, while the template text talks about "home country". Which is it supposed to mean? Should both PD year of home country and PD year of USA be noted? URAA restored images are often out of copyright in the home country, as are works published late in the authors life (for countries with 70 years pma). --LPfi (talk) 07:30, 24 October 2012 (UTC)

Suppress Commons message.

Can someone check the sandbox code, to allow the Commons suggestions to be suppressed? and if the logic is acceptable, swap into the main template. 17:25, 20 December 2016 (UTC) — Preceding unsigned comment added by Sfan00 IMG (talkcontribs)

@Sfan00 IMG: I've disabled this editprotected request for the moment, pending further discussion and correction. You can test changes to a template's /sandbox page at its /testcases page. I've done so here, Template:Out of copyright in/testcases, and it's throwing an error. Even aside from that, the conditional you've used does not seem to be the desirable approach to me. The default behavior of the template is to show the Commons material, so we would expect |suppress=y (or any other value of |suppress=) to suppress that, not for "unsuppression" to have to be specified with (and only with) the exact construction |suppress=no. The approach to take would appear to be: {{#if:{{{suppress|}}}|<!-- nothing -->|[the current Commons output here]}}, unless I'm missing something, like a consensus discussion somewhere concluding to suppress the Commons material by default.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  18:44, 20 December 2016 (UTC)
Not understanding the error, as it should currently be a DIRECT copy of the main template, but IT'S still throwing the error, I added a sanity check in the testcases as well. Sfan00 IMG (talk) 18:54, 20 December 2016 (UTC)
Found the error, {{{1}}} is not optional. Sfan00 IMG (talk) 19:17, 20 December 2016 (UTC)
But I'm not sure how to amend the template to make it handle an absence gracefully!

Sfan00 IMG (talk) 19:22, 20 December 2016 (UTC)

Logic has been updated per your suggestions, and works as desired in the test cases.

However, There doesn't seem to be an error check when {{{1}}} isn't present.! Sfan00 IMG (talk) 19:28, 20 December 2016 (UTC)

@Sfan00 IMG: I believe it is all patched up now in sandbox. I fixed a few other things, like the wrong imbox type, and added support for |date= as equivalent to |1=, since many people will expect that, stopped suppressing display of the template on its own page, stopped generating invalid categorization, and added option to suppress categorization, e.g. in documentation, plus put the evaluation tests in the canonical order (parameter first, value second). See extended testcases. The docs will need to be updated with instructions that the date is mandatory or an error will be thrown, but that the special value |0 (a.k.a. |1=0 or |date=0) will display the alternative text, and what that alternative text says. I have a suspicion that, really, people should be using a different template in such a case, and that we should strip out the tests for date being 0, and the special case handling for this. If the actual intent was that a missing value should be interpreted as "0" and that the alt. text should be displayed, I think that's a no-go, since it will cause an affirmative statement about the copyright status to be posted, which is highly unlikely to be true, any time someone just forgets to include the date by accident. It is safer to just trap the condition and throw a big red error message. Docs will also need to be updated to explain |suppress= and why it might be used (e.g. because the file in question doesn't qualify for Commons for some other reason, and ...? Is there some other scenario? If there is not, I would suggest that the short message in the main template box that is suppressed, along with the secondary box, should be changed to say that the file does not qualify to be moved to Commons.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  03:53, 29 December 2016 (UTC)

Thank you for patching this up, Should be good to swap in, but I will wait for further feedback. And yes update of the documentation would be advised.

Next query would be as to which templates transclude this one so that they can be updated to pass on the supression of the Commons message accordingly.Sfan00 IMG (talk) 10:02, 29 December 2016 (UTC)

The only two appropriate templates that I know of that transclude this template are {{Do not move to Commons}} (which you updated ten days ago) and {{PD-US-1923-abroad}}. —RP88 (talk) 01:59, 30 December 2016 (UTC)
Done I have synchronized the sandbox. — Martin (MSGJ · talk) 12:55, 3 January 2017 (UTC)

alternative template: {{copy to Wikimedia Commons in}}

It's my understanding that this template is only for files that are public domain in the U.S. but not their home countries. I don't think we have a template that indicates when a work will be out of copyright in both countries, and so have decided to make one. Hope people find it useful. Ixfd64 (talk) 21:17, 28 September 2021 (UTC)

Edit request to complete TfD nomination

Template:Out of copyright in has been listed at Templates for discussion (nomination), but it was protected, so it could not be tagged. Please add:

<noinclude>{{subst:tfm|help=off|1=Copy to Wikimedia Commons in}}</noinclude>

to the top of the page to complete the nomination. Thank you. Xeroctic (talk) 14:07, 21 January 2024 (UTC)

 Completed. P.I. Ellsworth , ed. put'er there 15:22, 21 January 2024 (UTC)

Template-protected edit request on 30 January 2024

I just closed a TfD as "merge" and would like the appropriate template to be updated; particularly the tag that the template is now in the holding cell. Please update this. {{being deleted|2024 January 21|merge=Copy to Wikimedia Commons in}} Awesome Aasim 06:22, 30 January 2024 (UTC)

 Completed. P.I. Ellsworth , ed. put'er there 16:17, 30 January 2024 (UTC)