Page MenuHomePhabricator

Wikidata items render badly in Wikilabels
Closed, ResolvedPublic



The "item quality" campaign loads up Wikidata items. They look terrible. We're missing some important javascript/css.


Related Gerrit Patches:
mediawiki/extensions/Wikibase : masterDisable editing in printable=yes mode

Event Timeline

Halfak created this task.Mar 11 2017, 6:03 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 11 2017, 6:03 PM

If you execute this in your console, it makes a big difference:

$('head').append('<link rel="stylesheet" type="text/css" href="" />')

Still can't get the javascript itself to load.

@Ladsgroup, maybe you have an idea? We could also consider switching to an iframe.

Restricted Application added a project: User-Ladsgroup. · View Herald TranscriptMar 11 2017, 8:11 PM

In the meeting today, we talked about ?action=render and no-javascript mode for rendering items from Wikidata. We also discussed iframes, but agreed that they are icky.

Glorian_WD added a comment.EditedMar 13 2017, 7:56 PM

The existing WikiLabels site is still not able to display references (see the attached)

In addition, it still cannot display the termbox which provides labels, descriptions, and aliases for numerous languages.

Halfak moved this task from Done to Review on the Scoring-platform-team (Current) board.

I've been looking into this and we can probably do a bit more with the API.

With this, we can get the headers that are rendered on wikidata:

I talked to @thiemowmde and it looks like an iframe might work best. Here's a way to get just the rendered content of a revision with all of the headers and goodies for an iframe:

thiemowmde moved this task from incoming to monitoring on the Wikidata board.
thiemowmde added a subscriber: Lydia_Pintscher.

Change 343851 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
[mediawiki/extensions/Wikibase] Disable editing in printable=yes mode

Halfak claimed this task.Mar 21 2017, 3:20 PM
Halfak moved this task from Review to Done on the Scoring-platform-team (Current) board.
Glorian_WD added a comment.EditedMar 21 2017, 3:21 PM

@Halfak : I think we can already close this ticket ?

Change 343851 merged by jenkins-bot:
[mediawiki/extensions/Wikibase] Disable editing in printable=yes mode

Halfak closed this task as Resolved.Apr 14 2017, 5:41 PM