Options we have so far:
- page ID
- file name
- numeric ID
Options we have so far:
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T115858 Design improvements for mw.ForeignStructuredUpload.BookletLayout | |||
| Open | None | T115865 Insert image in content immediately after it's uploaded, skipping the "General settings" step | |||
| Duplicate | None | T115864 Figure out if the description of the image can be used as the caption on-wiki | |||
| Open | Feature | None | T53032 When inserting an image, set its caption by default to be the Commons image description | ||
| Open | Feature | None | T39534 Wikimedia Commons should support searching by color | ||
| Duplicate | None | T39535 Wikimedia Commons should support filtering by color | |||
| Resolved | None | T19503 Provide metadata support on Wikimedia Commons | |||
| Resolved | None | T51662 VisualEditor: Use Multimedia/Wikidata's proposed rich structured meta-data in the image insertion dialog | |||
| Resolved | None | T68108 [Epic] Store media information for files on Wikimedia Commons as structured data | |||
| Resolved | Lydia_Pintscher | T125826 [Task] Decide on structure of entity ID for media info entity type |
Arguments for the ongoing filenames vs. IDs discussion:
Overall: What will cause less trouble, for all users combined?
I just want to throw in the room that file names will become more and more irrelevant when we have labels for images. The only place users will actually notice them is in the Wikitext source code but everywhere else the label will be the thing displayed and used for searching. Also, with the increasing popularity of Visual Editor also the file names in the source codes will get less important imo.
I'd prefer to introduce our own id system like on Wikidata with incremental ids created automatically when a new entity gets created. This way we do not have to adjust our code too much (eg. we aren't blocked on the prefixed id issue) and we have something stable that doesn't depend on MediaWiki internals which I think is much more desirable than using something from the "deep dark side" of mediawiki. I think it's correct that your proposal is a "dirty hack"... ;-)
We discussed this in yesterday's story time. The result is: We will use m+pageID of the file page.
Clarification of Lydia's comment: we will use M+pageId of the corresponding image description page, once we have integration with image description pages. For the baseline version without integration with file pages, we will use M+incrementalId, just like we do for items and properties.
Using the M+pageId approach, it will be simple to find the file description page for an entity, and find the media info entity "connected" to a given file description page.
We also discussed using the file name as the identifier for the media info. However, files can be renamed, so the name is not a stable identifier. The page ID is stable against page moves and, apparently since recently, also against delete and restore (but we should verify that).