feat: "Me (Username)" quick-select in Author field
Summary
- Author cell editor surfaces a one-click "Me (Username)" quick-select that fills the canonical Commons own-work form
[[User:<username>|<username>]]. - Same quick-insert button is wired into the column-defaults UI (Columns modal row + per-header default popover), so a whole batch can be auto-populated.
- At publish time, an Author whose value matches the canonical self-author wikitext (or the bare username) also emits the matching SDC
creator (P170)claim —somevaluemainsnak with qualifiers P2093 (author name string), P4174 (Wikimedia username), P2699 (URL to the user page). Free-text authors stay wikitext-only.
Phabricator
- T425874 — own-work author = uploader
Forms verified against current Commons docs and real recent own-work uploads (M28633332 Tuxyso / M154373445 JJ Harrison). Research notes posted as a comment on the task.
Test plan
- Logged-in user opens an Author cell, sees a "Me (Username)" pill below the input
-
Click → cell value becomes
[[User:<your-username>|<your-username>]] -
After publishing such an item, the resulting
{{Information |author=...}}matches what Commons expects -
After publishing, the file's M-entity has a P170 somevalue claim with P2093/P4174/P2699 qualifiers (verifiable via
Special:EntityData/M<pageid>.json) -
Columns modal Author row shows the "Me" button next to the default-value input; click → default value is set to
[[User:X|X]] - Per-header default popover (cog icon on Author column) also shows the "Me" button
- If the Author field already shows the canonical self form, the quick-select pill is hidden (no redundant suggestion)
- Free-text Author values (e.g. "Acme Co.") publish without a P170 claim — only the wikitext