Page MenuHomePhabricator

Set $wgUploadNavigationUrl on it.wikivoyage
Closed, ResolvedPublic

Description

Please set $wgUploadNavigationUrl = '//commons.wikimedia.org/wiki/Special:UploadWizard';

in order to eliminate the following code:
$(function(){

mw.util.addPortletLink('p-tb', '//commons.wikimedia.org/wiki/Special:UploadWizard',
          'Carica su Commons', 't-uploadcommons', 'Carica file multimediali su Commons', 'm', '#t-specialpages');

});
$(document).ready(function () {

$("#t-upload").css("display","none");
$("#t-uploadcommons a").text("Carica un file");

});

from https://it.wikivoyage.org/wiki/MediaWiki:Common.js.

Possibly keeping the same label ("Carica un file") and tooltip ('Carica file multimediali su Commons') as currently shown in https://it.wikivoyage.org pages.


Version: unspecified
Severity: enhancement
URL: https://it.wikivoyage.org/wiki/MediaWiki:Common.js

Details

Reference
bz73439

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:59 AM
bzimport set Reference to bz73439.

(In reply to Andyrom75 from comment #0)

Please set $wgUploadNavigationUrl =
'//commons.wikimedia.org/wiki/Special:UploadWizard';

Where and for what? In the MediaWiki codebase?
Or for some Wikimedia site and its server settings?

[Moving to "Wikimedia" product as I assume that this request is about settings / configuration of the website, not about the codebase of MediaWiki itself.]

Change 173480 had a related patch set uploaded by Dereckson:
Set $wgUploadNavigationUrl on it.wikivoyage

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

I think that you have already understood it correctly (according to Gerrit), however, just to avoid any future doubt, I was referring to the configuration of https://it.wikivoyage.org

Change 173480 merged by jenkins-bot:
Set $wgUploadNavigationUrl on it.wikivoyage

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

Yes we figured it were well about it.wikivoyage, per comment 1.

Change merged by Reedy.

alt + shift + u shorcut works, but link is hidden by the $("#t-upload").css("display","none"); instruction, pending the elimination planned in comment 1.