Page MenuHomePhabricator

Parse wikicode-categories in the Categories-field
Open, LowPublic

Description

When an user uploads an image via InstantCommons, then you see a Category picker:

Screenshot_20210708_125651.png (759×121 px, 10 KB)

Lot of users copy the categories from an already existing file. These categories are in this format:

[[Category:Files from Norwegian Air Shuttle]]
[[Category:Files uploaded by Josve05a (misc)|unuseful stuff‎]]
[[Category:Files uploaded by Josve05a (cleanup)|other stuff]]
[[Category:Aviation files (check needed)|other unuseful stuff]]
[[Category:Files from mynewsdesk.com]]

Then users are tempted to paste this wikitext into the Category picker, but it does not work and they have to manually write each category, one at time.

I would like to paste that wikitext into the Category picker. UploadWizard should convert the wikitext and I don't want to have to add each category individually, and I do not want to "append the blurb of categories" either, I want to be able to paste this in the categories-field.

Event Timeline

Josve05a raised the priority of this task from to Needs Triage.
Josve05a updated the task description. (Show Details)
Josve05a subscribed.
Restricted Application added subscribers: StudiesWorld, Steinsplitter, Aklapper. · View Herald Transcript
Josve05a set Security to None.

As a current workaround, you could probably drop that text into the other information field - it doesn't go into a template, I think, it just gets appended to the description page.

Change 277447 had a related patch set uploaded (by Eileen):
Add CiviCRM activity to put against the deleted contact

https://gerrit.wikimedia.org/r/277447

Change 277447 merged by jenkins-bot:
Add CiviCRM activity to put against the deleted contact

https://gerrit.wikimedia.org/r/277447

Change 280337 had a related patch set uploaded (by Eileen):
Also add 'Contact Deleted by Merge' on new installs

https://gerrit.wikimedia.org/r/280337

Change 280607 had a related patch set uploaded (by Eileen):
Set filter = 2 on Contact Deleted By Merge activity type

https://gerrit.wikimedia.org/r/280607

Change 280607 merged by Ejegg:
Set filter = 1 on Contact Deleted By Merge activity type

https://gerrit.wikimedia.org/r/280607

Jdforrester-WMF lowered the priority of this task from Medium to Low.Jul 7 2016, 2:08 PM
Jdforrester-WMF removed a project: Patch-For-Review.

(The changes above are not related, I think they were meant to be tagged against task T119426.)

Whoa! This would be a very useful feature. I tried to give more context in the Task description in the meanwhile.

Change #1350329 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/UploadWizard@master] Add categories from pasted wikitext

https://gerrit.wikimedia.org/r/1350329