Community Wishlist Survey 2021/Multimedia and Commons/Upload to current category
Appearance
Upload to current category
- Problem: When you find the correct category for your images, you have to upload it and then type the category. There are lots of images that could be better categorized directly if uploaded to that category.
- Who would benefit: Everyone who uses Commons, both newbies (I want to upload something to this category) and experienced users (who are good with categories)
- Proposed solution: Add an "Upload to this category" button to every Commons category in the top. This should have a prefilled category when uploading.
- More comments:
- Phabricator tickets:
- Proposer: Theklan (talk) 09:37, 20 November 2020 (UTC)
Discussion
The following snippet in your commons:Special:MyPage/common.js
if (mw.config.get('wgNamespaceNumber') === 14) {
$(function () {
// upload in cat
mw.util.addPortletLink('p-cactions', '//commons.wikimedia.org/w/index.php?title=Special:UploadWizard&categories=' + encodeURIComponent(mw.config.get('wgTitle')), 'Upload to this category', 'UW');
$("#contentSub").prepend(
'<a href="//commons.wikimedia.org/w/index.php?title=Special:UploadWizard&categories=' + encodeURIComponent(mw.config.get('wgTitle')) +
'" title="Upload to this category">' +
'<img alt="Upload to this category" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Camera-photo_Upload.svg/30px-Camera-photo_Upload.svg.png"' +
' style="vertical-align:sub" height="30" width="30">' +
'</a>');
});
}
does the magic. Could be added to the global config to allow for all users. --Herzi Pinki (talk) 19:00, 20 November 2020 (UTC)
- @Theklan: There's a link to do this in the infobox in the Commons categories. Thanks. Mike Peel (talk) 20:54, 20 November 2020 (UTC)
- @Mike Peel: Not all categories have the infobox. I have checked now the featured picture, for example, and it doesnt: c:Category:Point_Reyes_headlands. When looking to a category with the template, indeed, the link is there, but it wans't obvious that the link would upload an image to that category, because the text is not explicit (this has a really easy solution).
- @Theklan: It's present in around 50% of categories now. It could easily be added to the rest, but we've been trying to add it at the same time as the Wikidata sitelinks - although the unlinked version still displays the upload link. The text is commons:MediaWiki:Cx-contributions-upload, if there's a better ux string that can be used while keeping things multilingual, I'm happy to change it! Thanks. Mike Peel (talk) 13:55, 3 December 2020 (UTC)
- @Mike Peel: Not all categories have the infobox. I have checked now the featured picture, for example, and it doesnt: c:Category:Point_Reyes_headlands. When looking to a category with the template, indeed, the link is there, but it wans't obvious that the link would upload an image to that category, because the text is not explicit (this has a really easy solution).
- @Theklan: Do the above solutions fix this for you? —SWilson (WMF) (talk) 03:13, 3 December 2020 (UTC)
- @SWilson (WMF): It's not about me, it is about new users who are not used to our tricks (snippets, special codes...). -Theklan (talk) 09:36, 3 December 2020 (UTC)
- @Theklan: Good point. Let's have this proceed to voting then. It'd be great to make Commons more newcomer-friendly. —SWilson (WMF) (talk) 09:58, 3 December 2020 (UTC)
- @SWilson (WMF): It's not about me, it is about new users who are not used to our tricks (snippets, special codes...). -Theklan (talk) 09:36, 3 December 2020 (UTC)
- This feature would be great for campaign organizers that seek attract new collaborators. I know that there are other tools for campaigns, but this button is helpful for understand that you are participating in a campaign by adding the file to a category. Many new users that want collaborate in a specific campaign aren't aware of categories.--Señoritaleona (talk) 00:25, 19 December 2020 (UTC)
Voting
- Support JopkeB (talk) 05:35, 9 December 2020 (UTC)
- Support — putnik 19:03, 9 December 2020 (UTC)
- Support JAn Dudík (talk) 20:04, 9 December 2020 (UTC)
- Support Iñaki LL (talk) 20:16, 9 December 2020 (UTC)
- Support Ciao • Bestoernesto • ✉ 03:23, 10 December 2020 (UTC)
- Support ManfredK 13:41, 10 December 2020 (UTC)
- Support Libcub (talk) 20:09, 10 December 2020 (UTC)
- Support BugWarp (talk) 13:09, 11 December 2020 (UTC)
- Support FabianHorst (talk) 17:38, 11 December 2020 (UTC)
- Support Strong support. Good idea. It improves usability and easiness. BoldLuis (talk) 17:55, 11 December 2020 (UTC)
- Support Wikibenchris (talk) 08:54, 13 December 2020 (UTC)
- Support ThomasLendt (talk) 15:15, 13 December 2020 (UTC)
- Support ♥Ainali talkcontributions 21:07, 13 December 2020 (UTC)
- Support seems easier Medea7 (talk) 22:24, 14 December 2020 (UTC)
- Support Per Theklan, this feature would be used mainly by newcomers. — Draceane talkcontrib. 13:26, 15 December 2020 (UTC)
- Support Stephan Hense (talk) 23:07, 16 December 2020 (UTC)
- Support Kku (talk) 07:29, 17 December 2020 (UTC)
- Support Señoritaleona (talk) 00:25, 19 December 2020 (UTC)
- Support Golmore (talk) 12:34, 21 December 2020 (UTC)