Page MenuHomePhabricator

add WikiLove extension in ptwikinews
Closed, ResolvedPublic

Description

Add WikiLove extension to Portuguese Wikinews

local discussion, thanks

Event Timeline

Change 816316 had a related patch set uploaded (by Stang; author: Stang):

[operations/mediawiki-config@master] ptwikinews: Install WikiLove extension

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

Mentioned in SAL (#wikimedia-operations) [2022-07-25T13:31:58Z] <Lucas_WMDE> lucaswerkmeister-wmde@mwmaint1002:~$ mwscript extensions/WikimediaMaintenance/createExtensionTables.php ptwikinews wikilove # T313173

Change 816316 merged by jenkins-bot:

[operations/mediawiki-config@master] ptwikinews: Install WikiLove extension

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

Mentioned in SAL (#wikimedia-operations) [2022-07-25T13:42:14Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:816316|ptwikinews: Install WikiLove extension (T313173)]] (duration: 03m 19s)

This isn’t working properly – the icons are broken:

image.png (377×809 px, 50 KB)

The image HTML just looks like this: <img src="/w/extensions">

full markup
<ul id="mw-wikilove-types"><li><a href="#"><img src="/w/extensions"><span>Medalhas</span></a></li><li><a href="#"><img src="/w/extensions"><span>Festividades</span></a></li><li><a href="#"><img src="/w/extensions"><span>Presentes</span></a></li><li><a href="#"><img src="/w/extensions"><span>Crie o seu</span></a></li></ul>

It looks fine under safemode, seems https://pt.wikinews.org/wiki/MediaWiki:WikiLove.js break it:

09:46:41 <Lucas_WMDE> this, I guess https://pt.wikinews.org/wiki/MediaWiki:WikiLove.js
09:46:49 <Lucas_WMDE> which resets the `$.wikiLoveOptions`

It looks like the $.wikiLoveOptions need to include an icon in each types entry, and MediaWiki:WikiLove.js overwrites $.wikiLoveOptions with something that’s missing the icons.

I think we can leave this to the ptwikinews interface admins for now (particularly @Edu, who created the page).

@Stang @Lucas_Werkmeister_WMDE Not showing icons was a choice, but I can add them if needed.