Page MenuHomePhabricator

Add deletion log link to file-deleted-duplicate message
Open, Needs TriagePublic

Description

Commons would like to modify the system message, https://commons.wikimedia.org/wiki/MediaWiki:File-deleted-duplicate, to include a link to the deletion log for the file in question. However, certain files require the parser {{urlencode:...} to function properly. When added to the parser does not render and the system message breaks. Testing on the beta cluster, the message renders as:

A file identical to this file ([[:$1]]) has previously been deleted. You should check that file's [https://commons.wikimedia.beta.wmflabs.org/wiki/Special:Log/delete?type=delete&page={{urlencode:$1}} deletion history] before proceeding to re-upload it.

If the parser could be fixed so we can update the system message to include the link it would be appreciated. We could also add the link from inside MediaWiki itself, so all wikis would benefit :)

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Majora created this task.Jul 23 2018, 12:48 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 23 2018, 12:48 AM
Legoktm renamed this task from {{urlencode}} parser breaks system messages to Add deletion log link to file-deleted-duplicate message.Jul 23 2018, 12:50 AM
Legoktm updated the task description. (Show Details)
Legoktm added a subscriber: Legoktm.
Guanaco added a subscriber: Guanaco.

This issue is only within UploadWizard. <div>, {{parser:function}}, and {{template|argument}} syntax all work fine in Special:Upload and ordinary MediaWiki system messages.

Restricted Application added a project: Multimedia. · View Herald TranscriptJul 24 2018, 1:07 AM
RP88 added a subscriber: RP88.Jul 31 2018, 1:01 PM