Page MenuHomePhabricator

Investigation: Possibility to insert the uploaded (German) WLM image into the gap in the monuments list
Closed, ResolvedPublic3 Estimated Story Points

Description

This concerns the following user story:

As a WLM contester I would like the tool to insert the uploaded image in the gap in the monuments list where I uploaded it so that it doesn’t have to be done manually and I can see it immediately in the list.

For details see T103701

Event Timeline

KasiaWMDE raised the priority of this task from to Medium.
KasiaWMDE updated the task description. (Show Details)
KasiaWMDE set Security to None.
KasiaWMDE edited a custom field.
KasiaWMDE moved this task from Incoming to Sprint Ready on the archived--TCB-Team board.
KasiaWMDE renamed this task from Investigation: Possibility to insert the uploaded (German) WLM image into the gaop in the monuments list to Investigation: Possibility to insert the uploaded (German) WLM image into the gap in the monuments list.Jun 25 2015, 8:37 AM
KasiaWMDE raised the priority of this task from Medium to High.Jun 29 2015, 1:25 PM

Due to the fact that the identifiers used in the lists aren't consistent, we need to collaborate with authors to either agree on a consistent format or figure out what the different formats are. At least, it seems that there is a consistent format per German state. Also some entries contain more than one subentry. For instance, if an entry refers to a compound, there may be a subentry for each structure on it. During the preparation of the mass update of all the lists, we should be able to figure out, what patterns and exceptions there are.

In order to update the corresponding entry in the list after uploading a file to commons, references need to be passed to the file description page. Based on the the assumption, that an entry can be identified by at most two IDs, we'd need the following parameters:

  • Page ID of the list
  • ID of the entry
  • ID of the subentry

The definition of custom fields for a campaign also includes the option 'wikitext'. Its value can be a template which can take the given value as a parameter. Multiple parameters for the same template (i. e. for id, sub id, and page id) are not supported. To achieve the desired behaviour, we need to either extend Extension:UploadWizard or introduce new custom fields for these values. Just adding more form fields results in using one template for each of them, so I'd suggest the former. Currently the Template:Kulturdenkmal is being used to hold a manually given list id.

A bot can then look for new pages including that template (based on recentchanges and templatelinks), read the relevant values and finally edit the table by adding the image to the list on the given page.