Page MenuHomePhabricator

[M] Unknown author added in wrong place
Closed, ResolvedPublic

Description

It looks like the {{Author|Unknown}} template is being added just above the categories, rather than in the Information template's |author= field. For example, see this file, but I've noticed this on a few files lately when using the new unknown-author checkbox in UploadWizard.

(First reported here.)

Event Timeline

Let's make sure to check why this template was added in the first place, and that removing/changing that doesn't unexpectedly break something else.

Checked in commons betalabs and also looked at the history of the file referred in the task description: https://commons.wikimedia.org/w/index.php?title=File:1895_Galbraith_%26_Co_receipt_to_WS_Hall.tif&diff=next&oldid=836620901.
Note when the Author field is filled in, everything works as expected.

  1. a file uploaded via Special:UploadWizard with the following options selected:
    • select not-own work option - "This is someone else's work and is free to share"
    • you may leave the author's name blank or select "I do not know who the author is"
  2. When a file is published - see this example on commons beta.
    Screen Shot 2024-01-10 at 2.29.34 PM.png (1×2 px, 405 KB)
=={{int:filedesc}}==
{{Information
|description={{en|1=geological exhibit iridescent test1}}
|date=2014-12-14 03:29:30
|source=testsite123.org
|author=
|permission=
|other versions=
}}

=={{int:license-header}}==
{{cc-zero}}

{{Author|Unknown}}

{{Uncategorized|year=2024|month=January|day=10}}

|author= is empty and {{Author|Unknown}} is placed above the Categories section.

  1. correcting manually, i.e. moving {{Author|Unknown}} to |author=, fixes the UI.
MarkTraceur renamed this task from Unknown author added in wrong place to [M] Unknown author added in wrong place.Jan 11 2024, 7:17 PM

Change 990687 had a related patch set uploaded (by Cparle; author: Cparle):

[mediawiki/extensions/UploadWizard@master] For unknown author add "unknown" to information template rather than using {{Author|Unknown}}

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

Change 990687 merged by jenkins-bot:

[mediawiki/extensions/UploadWizard@master] For unknown author add {{Unknown}} to information template rather than using {{Author|Unknown}}

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

Tested on commons beta - the templace {{Unknown|author}} is added to the information template, e.g. this file on commons beta

Note the current testing (commonswiki wmf.14)for adding files without author's information resulted in this file revision:

Screen Shot 2024-01-19 at 4.28.09 PM.png (834×2 px, 148 KB)

Checked the recent uploads in commons wmf.15 - e.g. https://commons.wikimedia.org/wiki/File:TEFA.NATIONALTEAM.LOGO.png. {{Unknown|author}} template is added the Information template correctly.