Motivation
When a file is moved to Commons, most of the time it should be deleted from the source wiki. Reasons are:
- We don’t want to have two copies of the same file.
- Changes should be made to the version on Commons, and the files should not develop differently
- As long as the file on the source wiki is not deleted, it is shown, and not the one on Commons.
We should support this as well as possible.
e.g. see: {{Now Commons|1=Crow-Hassan Park Reserve 030527.jpg|2=no|date=2010-07-01|reviewer=SomeUser}}
Acceptance Criteria
- Change the text below the success message to: Please return to the original file and add a template to declare that the file is now on <target wiki name>.
- For files coming from wikis where we can guess the correct template, use this text:: Please return to the original file and add the following template to declare that the file is now on <target wiki name>: {{Now Commons| ... }} ( with fitting parameters pre filled )
- Use the wikidata item to find the appropriate template for the source wiki
- When there is no usable Wikidata source configured to retrieve a usable template, show the current generic message as a fallback
Note
- Part of the job is to take a look at the Now Commons template and figure out what's useful and needed for this story
Findings
I've thumbed through a few wikis with the NowCommons template, linked by this wikidata item:
*wiki* | *in use* | *translated* | *filename* | *other useful params* |
afwiki | yes | yes | yes | no |
alswiki | no | yes | yes | no |
amwiki | no | yes | yes | date |
arwiki | yes | yes | yes | no |
aswiki | yes | no | yes | date, bot |
ptwikisource | no | yes | yes | no |
plwikisource | no | yes | yes | no |
frwikisource | no | yes | yes | no |
enwikisource | no | yes | yes | no |
ruwikibooks | no | yes | yes | no |
plwikibooks | no | yes | yes | no |
nlwikibooks | no | yes | yes | no |
jawikibooks | no | yes | yes | no |
itwikibooks | yes | yes | yes | no |
metawiki | no | yes | yes | no |
My conclusion is that the templates are not widely used, but users have in fact gone through the trouble of providing translations. In almost every case, only the file name parameter is supported so there's not much point in us trying to integrate with the bot parameter. In the next task, where we make the edits automatically, we should decide on a change tag, username, or edit summary method for marking the edits as ours, since we can't count on the template to support inclusion of the bot name in text.
Demo
Run a successful import either on the beta cluster or on test.wikipedia.org.