Page MenuHomePhabricator

wpDestFile option from local projects to commoms
Closed, ResolvedPublic

Description

Author: wikipedia01

Description:
As you click red link for image on the page of a local project,
the upload page will open, and it puts the file name in "Destination filename:"
text box.
Then as you click the link to the upload page of commons on the page,
the file name will be lost.
It will be very useful if the upload page of commons puts the file name
after the link from local upload page.


Version: 1.10.x
Severity: normal
OS: Mac OS X 10.0
Platform: Macintosh

Details

Reference
bz8671

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:32 PM
bzimport set Reference to bz8671.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

As of r19527, parameter $1 passed to "uploadtext" will be equivalent to whatever
"wpDestFile" was, if specified. Use this in combination with ParserFunctions to
beef up the links, e.g.

Is this image suitable for
[http://commons.wikimedia.org/{{#if:$1|w/index.php?title=Special:Upload&wpDestFile=$1|wiki/Special:Upload}}
uploading to the Wikimedia Commons]?

wikipedia01 wrote:

Thank you. I tested it on JA:WN, but it was r19401.

wikipedia01 wrote:

Thank you. I tested and it runs.
Could you enable to use this parameter also on MediaWiki:Uploaddisabledtext?

robchur wrote:

(In reply to comment #3)

Could you enable to use this parameter also on MediaWiki:Uploaddisabledtext?

Filed as bug 8818.