Page MenuHomePhabricator

Automatically changing Wikipedia logo
Closed, DeclinedPublic

Description

Author: servien

Description:
In Dutch Low Saxon there are various dialects, in these dialects the phrase on the logo "The free encyclopedia" can differ from "De vrieje encyclopedie" till "De vraie enzyklopedie". I was wondering if it was possible to have a Wikipedia logo which changes for example every month (i.e. the one mond you have Wiki-gos.png [Gronings] as logo, the next Wiki-stl.png [Stellingwerfs] as logo). This way the logo's wouldn't have to be changed by hand every time, if we'd decide to do that.

I hope you understand my question, it's a bit difficult explaining it.

Servien


Version: unspecified
Severity: enhancement
URL: http://nds-nl.wikipedia.org

Details

Reference
bz10075

Event Timeline

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

ayg wrote:

It's not possible in the software without some kind of custom script. Get an adminbot to do it, perhaps.

Well, in fact it is possible:
$wgLogo = "Wiki-" . date("M") . ".png"; To have from Wiki-Jan.png to Wiki-Dec.png

Having it uploaded by Mediawiki makes it only slightly more complicated:
$hash = md5($wgLogo);
$wgLogo = "http://upload.wikimedia.org/wikipedia/nds-nl/" . substr($hash, 0, 1) . "/" . substr($hash, 0, 2) . "/" . $wgLogo;

servien wrote:

Hi thanks for the comments. Could you give a description of what should be done to get this up and running? Servien

Convince someone with shell access to add the above code to nds-nl LocalSettings

servien wrote:

Okay. So should I upload the logos "Wiki-Jan.png, Wiki-Feb.png..." etc. on the nds-nl-wiki and protect them (and most important to know is should the abbreviations for the month be the English abbreviations Jan, Feb, Mar, Apr, Jun, Jul, Aug, Sep, Oct, Nov, Dec?)

Servien

jeluf wrote:

This will not work with the system that we use for configuration of our wikifarm and will not refresh caches - you'd have lots of different logos due to page caching.

Please use a bot instead.

servien wrote:

Thanks for the tip! :D