Last modified: 2014-11-04 22:49:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42810, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40810 - Wikibase badges (tracking)
Wikibase badges (tracking)
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
master
All All
: High major with 24 votes (vote)
: ---
Assigned To: Wikidata bugs
https://meta.wikimedia.org/wiki/Wikid...
u=dev c=story p=0
: need-volunteer, tracking
: 36735 (view as bug list)
Depends on: 70209 71887 56693 58990 60717 61664 62546 63391 63392 63486 67668 67923 68152 68155 68183 69536 69758 69832 70268 70332 70355 70687 71684
Blocks: tracking 64457 68071 68067
  Show dependency treegraph
 
Reported: 2012-10-05 19:49 UTC by Aude
Modified: 2014-11-04 22:49 UTC (History)
29 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Aude 2012-10-05 19:49:53 UTC
Hebrew Wikipedians would like if Wikidata supported some metadata about the sitelinks, particularly good and featured article status.

Currently there are templates in many wikipedias that add stars or symbols next to the interwiki link to indicate the corresponding article in that other language is a featured article.
Comment 1 denny vrandecic 2012-10-11 10:14:29 UTC
If a volunteer picks this up, it would need some discussion before you start on that. We would explain how to go about for it.
Comment 2 Lydia Pintscher 2012-12-12 13:39:08 UTC
*** Bug 36735 has been marked as a duplicate of this bug. ***
Comment 3 Sven Manguard 2013-02-24 18:58:22 UTC
If the discussion of which Denny speaks relates to community approval, I think we're well past that. This is something that both the local Wikidata and the broader WMF communiutues have asked for several times, and while there's no formal RfC (that I can find) there's been plenty of commentary (incl. support) and no opposition.
Comment 4 Kunal Mehta (Legoktm) 2013-02-24 19:04:31 UTC
(In reply to comment #3)
> If the discussion of which Denny speaks relates to community approval

I believe Denny is referring to the technical implementation.
Comment 5 vatsala.dorairajan 2013-05-07 18:47:45 UTC
Hi I am willing to volunteer to take on this. Denny, Can we connect via IRC to talk about how to implement this?
Comment 6 Andre Klapper 2013-05-08 10:46:15 UTC
Vatsala: Just try #wikimedia-wikidata on Freenode IRC in European office hours.
Comment 7 vatsala.dorairajan 2013-05-09 14:24:39 UTC
Andre/Denny - I was there today - Will be there tomorrow and day after as well.
Comment 8 Lydia Pintscher 2013-05-13 11:24:16 UTC
Did you manage to talk to Denny? If not please ping him (Denny_WMDE) and/or me (Lydia_WMDE) on freenode in the channel #wikimedia-wikidata. It'd be great to have someone working on this.
Comment 9 vatsala.dorairajan 2013-05-13 22:18:29 UTC
Hi Lydia,  I havent been able to speak to Denny. I shall come online at the next opportunity. For this week(till Saturday) does US tine zone work for you? I live in India, but currently I am at a client's place for an assignment. Let me check the european time difference and will let you know when I can be on irc next.
Comment 10 vatsala.dorairajan 2013-05-13 22:26:12 UTC
Alternatively,
Let me if around 4.30 pm European timezone works for you.
Vatsala
(In reply to comment #9)
> Hi Lydia,  I havent been able to speak to Denny. I shall come online at the
> next opportunity. For this week(till Saturday) does US tine zone work for
> you?
> I live in India, but currently I am at a client's place for an assignment.
> Let
> me check the european time difference and will let you know when I can be on
> irc next.
Comment 11 denny vrandecic 2013-05-14 15:05:13 UTC
Vatsala, also feel free to Email me at denny.vrandecic@wikimedia.de

Basically what I want to say is:
* the way how sitelinks are saved already allows it to be extended from
 { 'site' : 'enwiki', 'title' : 'Berlin' }
to
 { 'site' : 'enwiki', 'title' : 'Berlin', 'badge' : ['FA'] }

(I am not completely sure on the exact names of the fields)

So, what needs to happen is:
* extend the structure of sitelinks in the above way (suggestion: use an array of things, so we can have orthogonal 'badges' like 'FA', 'stub', etc.)
* extend the API to edit badges
* extend the UI to display badges
* extend the UI to edit badges
* extend the client to display badges

I hope this helps.
Comment 12 vatsala.dorairajan 2013-05-16 02:24:39 UTC
Hi Denny

Thanks for this. This helps. I will take a look at this and come back again by Monday Tuesday.
Comment 13 linneawp 2013-06-03 11:32:53 UTC
(In reply to comment #12)

> Thanks for this. This helps. I will take a look at this and come back again
> by
> Monday Tuesday.

Hi. Are you still working on this?
Comment 14 jeblad 2013-06-09 13:33:36 UTC
I think this should be implemented like qualifiers (or like source but I don't think we need grouping) for each sitelink. Only implementing badges doesn't make sense. If implemented like link attributes badges would be a property with an item datatype, and it would link to items for FA or similar quality descriptions.
Comment 15 jeblad 2013-06-09 13:45:11 UTC
That is, we don't need grouping within each sitelink, but we obviously need grouping for each sitelink.
Comment 16 Gerrit Notification Bot 2013-07-09 13:59:40 UTC
Change 72725 had a related patch set uploaded by Michał Łazowik:
(bug 40810) Extend SimpleSiteLink by badges.

https://gerrit.wikimedia.org/r/72725
Comment 17 Gerrit Notification Bot 2013-07-09 21:45:05 UTC
Change 72842 had a related patch set uploaded by Michał Łazowik:
(bug 40810) Extend SiteLink by badges.

https://gerrit.wikimedia.org/r/72842
Comment 18 Gerrit Notification Bot 2013-07-12 14:56:18 UTC
Change 72725 merged by jenkins-bot:
(bug 40810) Extend SimpleSiteLink by badges.

https://gerrit.wikimedia.org/r/72725
Comment 19 Gerrit Notification Bot 2013-07-12 15:29:27 UTC
Change 72842 abandoned by Michał Łazowik:
(bug 40810) Extend SiteLink by badges.

Reason:
Just learned this is deprecated...

https://gerrit.wikimedia.org/r/72842
Comment 20 T. H. Kelly (Pink&) 2013-07-12 21:01:18 UTC
Huh? Deprecated? Someone mind clueing-in those of us who are out of the loop?
Comment 21 Michał Łazowik 2013-07-12 21:08:52 UTC
That's the reason for abandoning some code. I added badges support to a class that is deprecated, so it's not needed. The current class is already modified, see comment 18. However this is only a small chunk of what is to be done.
Comment 22 Gerrit Notification Bot 2013-07-19 20:10:08 UTC
Change 74676 had a related patch set uploaded by Michał Łazowik:
(bug 40810) Add badges support to Item

https://gerrit.wikimedia.org/r/74676
Comment 23 Michał Łazowik 2013-07-20 16:45:01 UTC
Should be there a set of allowed badges? If yes then should there be a interface to modify it?
Comment 24 Kunal Mehta (Legoktm) 2013-07-21 04:48:15 UTC
(In reply to comment #23)
> Should be there a set of allowed badges? 
Yes.

> If yes then should there be a
> interface to modify it?

Maybe just allow any arbitrary item (a featured article would use [[d:Q16467]] or [[d:Q16465]] for example), or a have admins maintain a list of items in a MediaWiki: namespace page.
Comment 25 T. H. Kelly (Pink&) 2013-07-22 14:50:35 UTC
(In reply to comment #24)
> (In reply to comment #23)
> > Should be there a set of allowed badges? 
> Yes.
> 
> > If yes then should there be a
> > interface to modify it?
> 
> Maybe just allow any arbitrary item (a featured article would use
> [[d:Q16467]]
> or [[d:Q16465]] for example), or a have admins maintain a list of items in a
> MediaWiki: namespace page.

Would it be too radical to suggest a "Badge:" namespace? For starters, it'd be able to have its own content model, instead of some ugly MediaWiki: namespace hack.
Comment 26 Sven Manguard 2013-07-22 19:48:15 UTC
(In reply to comment #25)
> (In reply to comment #24)
> > (In reply to comment #23)
> > > Should be there a set of allowed badges? 
> > Yes.
> > 
> > > If yes then should there be a
> > > interface to modify it?
> > 
> > Maybe just allow any arbitrary item (a featured article would use
> > [[d:Q16467]]
> > or [[d:Q16465]] for example), or a have admins maintain a list of items in a
> > MediaWiki: namespace page.
> 
> Would it be too radical to suggest a "Badge:" namespace? For starters, it'd
> be
> able to have its own content model, instead of some ugly MediaWiki: namespace
> hack.

A MediaWiki namespace hack would be much preferable to creating a new namespace. It's a much simpler option.
Comment 27 Magnus Manske 2013-08-16 13:11:52 UTC
Just skimmed this discussion, but why does that have to live in the site links? Property "Article batch", pointing to the Wikidata item for the badge page(s). Add a qualifier to indicate language(s) where the badge was given.

Maybe I'm missing some complication here?
Comment 28 Byrial Jensen 2013-08-16 13:26:00 UTC
It will make most sense from a logical point of view to connect the badge directly to the site link so the badge is removed or moved together with the link. A badge isn't a property of an item itself, but of the page of the link.
Comment 29 Littledogboy 2013-08-19 09:22:46 UTC
Could this also be used to mark links to redirects?
Comment 30 pyfisch 2013-08-19 13:22:39 UTC
Yes, I think so.
Comment 31 Gerrit Notification Bot 2013-08-20 12:25:31 UTC
Change 80000 had a related patch set uploaded by Michał Łazowik:
SimpleSiteLink: make badges poing to Items

https://gerrit.wikimedia.org/r/80000
Comment 32 Gerrit Notification Bot 2013-08-29 10:58:43 UTC
Change 80000 merged by jenkins-bot:
SimpleSiteLink: make badges point to Items

https://gerrit.wikimedia.org/r/80000
Comment 33 Gerrit Notification Bot 2013-08-30 09:57:51 UTC
Change 74676 merged by jenkins-bot:
(bug 40810) Add badges support to Item

https://gerrit.wikimedia.org/r/74676
Comment 34 Gerrit Notification Bot 2013-08-30 14:48:04 UTC
Change 81934 had a related patch set uploaded by Michał Łazowik:
Extend api to get badges

https://gerrit.wikimedia.org/r/81934
Comment 35 Gerrit Notification Bot 2013-09-03 16:56:00 UTC
Change 81934 merged by Jeroen De Dauw:
Extend api to support getting badges

https://gerrit.wikimedia.org/r/81934
Comment 36 Mikko Silvonen 2013-11-01 14:00:21 UTC
See a related proposal: https://www.mediawiki.org/wiki/Extension:ArticleStatus
Comment 37 Bene* 2013-11-12 20:43:46 UTC
This should be linked here, too: https://gerrit.wikimedia.org/r/#/c/82637/ (Extend API to support editing badges)
Comment 38 Dario Taraborelli 2014-01-16 19:39:23 UTC
I have a related use case that generalizes the GA/FA proposal aw well as the ArticleStatus proposal.

I would like to be able to annotate individual articles with:

(1) arbitrary article-level annotations, including but not limited to:
    * FA
    * GA
    * stub
    * Protection status
    * Article-level cleanup flags like {{refimprove}}, {{POV}}, {{notability}}

(2) add qualifiers to these annotations to specify the start time or time range and potentially a rev_id as a source for these statements

This would stretch the scope of the current notion of a badge but I'd like to hear if time qualifiers for badges are on the near horizon.

Having these annotations represented in a structured format on Wikidata would allow people (or applications) to run queries like: give me all French Wikipedia articles in chemistry that have been flagged within the last year as stubs or as missing references.
Comment 39 Bene* 2014-01-17 18:27:17 UTC
Hi Dario Taraborelli, at the moment a badge is only a simple item which thus can also only contain one piece of information. If I understand your idea right, you want to have badges as a kind of statement system which works same as the statements of an item. I think this requires some thinking how useful this would be and especially how this could be implemented in the ui. Also I think this isn't so high priority. Because your approach goes wide beyond the current implementation a new bug would perhaps be the way to go.
Comment 40 Matthew Flaschen 2014-01-18 17:56:50 UTC
(In reply to comment #39)
> Hi Dario Taraborelli, at the moment a badge is only a simple item which thus
> can also only contain one piece of information. If I understand your idea
> right, you want to have badges as a kind of statement system which works same
> as the statements of an item.

Right.  I agree that to have the kind of flexibility we need, sitelinks likely need to be able to have statements.  E.g. in addition to real-world statements about a real-world object https://www.wikidata.org/wiki/Q2 (Earth), there need to be statements about the "English Wikipedia article on Earth".
Comment 41 Matthew Flaschen 2014-01-18 18:00:02 UTC
(In reply to comment #40)
> Right.  I agree that to have the kind of flexibility we need, sitelinks
> likely need to be able to have statements.

To be clear, I mean this flexibility is probably required if Wikidata is to be a full representation of status items like Dario mentioned (protection, cleanup, etc.).  This is relevant to GettingStarted, which uses such "needs cleanup" data.

In the meantime, we have ideas for more incremental approaches that do not require such a new statement system.
Comment 42 Lydia Pintscher 2014-01-19 11:41:32 UTC
I discussed this in-person with SWalling on Friday.
Wikidata will be able to attach badges to articles. This will cover things like "this article needs copy-editing" and so on. It will only be on a page basis and not more granular. It will also not have more than a badge - so no qualifiers or anything like that for badges.
This is enough for Getting Started per our discussion.
Comment 43 Bene* 2014-01-19 12:57:15 UTC
After discussion on IRC we decided that badges can only be some items which are specified in the config, together with an icon. This is because once it only makes sense to have some kinds of items available that might also be badges and additionally we need an icon to be displayed on Wikipedia which can not be provided by a single item.

Thus there will be a config variable containing a set of items + icons that are allowed to be used as badges.
Comment 44 Gerrit Notification Bot 2014-01-19 17:59:50 UTC
Change 108337 had a related patch set uploaded by Bene:
Reduce badges to items listed in config

https://gerrit.wikimedia.org/r/108337
Comment 45 Gerrit Notification Bot 2014-01-29 12:45:04 UTC
Change 108337 merged by Addshore:
Reduce badges to items listed in config

https://gerrit.wikimedia.org/r/108337
Comment 46 Bene* 2014-02-01 12:42:28 UTC
We still need to discuss how the badges should work in general. At the development plan [1] it says "Each sitelink can have zero or one badge attached to it." This does not match the current implementation which allows multiple badges. So the implementation needs to be changed to only supporting one badge.

However, if we decide to keep the option of multiple badges we face some other problems. First, the ui gets harder to be implemented on Wikidata. This is not a real problem though. But a real problem is that we cannot determine which badge we want to display on the client. The only option I see to solve this issue is either to create another config variable (very ugly) or to only allow one badge as stated in the development plan anyway.

[1] https://www.wikidata.org/wiki/Wikidata:Development_plan
Comment 47 Steven Walling 2014-02-04 05:31:32 UTC
(In reply to comment #46)
> We still need to discuss how the badges should work in general. At the
> development plan [1] it says "Each sitelink can have zero or one badge
> attached
> to it." This does not match the current implementation which allows multiple
> badges. So the implementation needs to be changed to only supporting one
> badge.
> 
> However, if we decide to keep the option of multiple badges we face some
> other
> problems. First, the ui gets harder to be implemented on Wikidata. This is
> not
> a real problem though. But a real problem is that we cannot determine which
> badge we want to display on the client. The only option I see to solve this
> issue is either to create another config variable (very ugly) or to only
> allow
> one badge as stated in the development plan anyway.
> 
> [1] https://www.wikidata.org/wiki/Wikidata:Development_plan

I would really really like to have support for multiple badges. 

Can we just whitelist certain badges for display? Start with Featured and Good Article, and if someone wants a badge displayed they can request it. Most of the other badges people have mention seem to be the kind that we won't want displayed on site links, etc.
Comment 48 Ricordisamoa 2014-02-06 13:32:58 UTC
I believe that data items are not the right place to host 'badges', basically because the quality rating does *not* belong to the sitelink, but to the wiki article itself.

Badges should be on the client-side (Wikipedia for featured articles, Commons for featured pictures, etc.) so allowing to rate every pages, including those without a connected Wikidata item (think also to non-WMF wikis that don't have a data repo).

I think of an extension that would allow sysops and 'quality rating administrators' to edit quality status of pages; then such badges would be displayed in the 'Other languages' section, when linked from another language version.
Comment 49 Helder 2014-02-06 16:45:34 UTC
(In reply to comment #48)
> ...
> I think of an extension that would allow sysops and 'quality rating
> administrators' to edit quality status of pages; then such badges would be
> displayed in the 'Other languages' section, when linked from another language
> version.

That looks like FlaggedRevs to me.
Comment 50 dacuetu 2014-03-04 21:35:56 UTC
Another use case for badges: Importance rating
https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_1.0#Statistics

It was suggested as a property, but badges could handle it better:
https://www.wikidata.org/wiki/Wikidata:Property_proposal/Generic#Wikipedia_Importance
Comment 51 dacuetu 2014-03-07 18:02:38 UTC
And yet another use case: Wikiproject scope
https://www.wikidata.org/wiki/Wikidata:Property_proposal/Sister_projects#WikiProjects

Currently that information is stored on talk pages (together with importance rating and quality assessment)
Comment 52 Nemo 2014-07-15 18:50:38 UTC
I've updated what's the current plan to my understanding: https://www.wikidata.org/wiki/Wikidata:Development_plan#Badges
Comment 53 Nemo 2014-07-25 23:12:16 UTC
I moved the list to https://meta.wikimedia.org/wiki/Wikidata/Development/Badges
Comment 54 Gerrit Notification Bot 2014-07-28 18:22:00 UTC
Change 149918 had a related patch set uploaded by Bene:
Add good and featured badges to config

https://gerrit.wikimedia.org/r/149918
Comment 55 Gerrit Notification Bot 2014-07-28 19:09:42 UTC
Change 149928 had a related patch set uploaded by Bene:
Add good and featured article badges to testwikidata

https://gerrit.wikimedia.org/r/149928
Comment 56 Gerrit Notification Bot 2014-08-14 23:20:32 UTC
Change 149928 merged by jenkins-bot:
Add good and featured article badges to testwikidata

https://gerrit.wikimedia.org/r/149928
Comment 57 Gerrit Notification Bot 2014-08-19 19:14:39 UTC
Change 149918 merged by jenkins-bot:
Add good and featured badges to config

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links