[Wikidata-bugs] [Maniphest] T106367: Generate BCP 47 conform language codes for the HTML attribute `lang`

2023-03-25 Thread Bawolff
Bawolff added a comment.


  Note: there are reports that this causes problem on ubuntu's version of 
firefox https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2012430

TASK DETAIL
  https://phabricator.wikimedia.org/T106367

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: cscott, Bawolff
Cc: Bawolff, Jdforrester-WMF, Volker_E, Phispi, Jonas, gerritbot, Aklapper, 
Fomafix, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, 
Akuckartz, Nandana, Lahi, Gq86, Af420, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, MuhammadShuaib, LNDDYL, Psychoslave, 
Wikidata-bugs, aude, Arrbee, KartikMistry, Mbch331, Jay8g
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T333072: create a Mix'n'Match catalog for Toolhub entries

2023-03-25 Thread Lydia_Pintscher
Lydia_Pintscher added a project: Wikidata.

TASK DETAIL
  https://phabricator.wikimedia.org/T333072

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher
Cc: Aklapper, Lydia_Pintscher, Bellucii32, Astuthiodit_1, karapayneWMDE, 
Invadibot, Devnull, maantietaja, ItamarWMDE, Akuckartz, Nandana, Namenlos314, 
skpuneethumar, Zylc, 1978Gage2001, Lahi, Operator873, Gq86, Bsandipan, 
GoranSMilovanovic, Chicocvenancio, QZanden, Tbscho, LawExplorer, JJMC89, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, Jitrixis, aude, Gryllida, scfc, 
Mbch331, Krenair
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T305378: Add convenience function getBadges() to Lua

2023-03-25 Thread Od1n
Od1n added a comment.


  We have an use case on French wiki, where we want a list of all foreign 
badges of a given article.
  
  - Previously, we were retrieving the whole entity, then we could iterate the 
`sitelinks` table. But retrieving the whole entity was eating a lot of memory 
(it was a bit slow too).
  - Thanks to this new `getBadges()` function, a new approach has been 
developed: we Iterate an hardcoded of list of wikis, and we call `getBadges()` 
for each of these. It uses a lot less memory (and it's a bit faster too). The 
downside with this approach is that we have to use an hardcoded list of wikis, 
whereas the previous approach was exhaustively retrieving the badges.
  
  Here is the code change: 
https://fr.wikipedia.org/w/index.php?title=Module:Cat%C3%A9gorisation_badges=revision=202204202=194574538
  
  I thought about adding new functions like `getAllBadges()` or 
`getAllSitelinks()`, but that would introduce discrepancies with the existing 
functions:
  
  - if adding a `getAllBadges()` function, why not adding the same for 
`getSitelink()`?
  - but adding `getAllSitelinks()` (notice the singular/plural difference with 
`getSitelink()`) would be confusing, because we have the `sitelinks` table, but 
these functions retrieve `entity.sitelinks[globalSiteId].title` actually.
  
  To avoid confusion, another solution could be to add a `getSitelinksTable()` 
function. The only downside is that it still would add a function to the API, 
and a function that returns a "raw" table (i.e. not directly the desired 
properties), though this table is quite straightforward.

TASK DETAIL
  https://phabricator.wikimedia.org/T305378

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: hoo, Od1n
Cc: Od1n, Arian_Bozorg, TomT0m, Zebulon84, Tacsipacsi, Lydia_Pintscher, 
Aklapper, eranroz, thiemowmde, Tpt, Ladsgroup, hoo, aude, Jonas, putnik, Uzume, 
MisterSynergy, Vriullop, RexxS, Agabi10, RolandUnger, jberkel, 
Lea_Lacroix_WMDE, Pigsonthewing, Simon_Villeneuve, Thayts, ChristianKl, Manuel, 
LennardHofmann, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, 
ItamarWMDE, Akuckartz, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T220703: Increase the max length of URL to be shortened

2023-03-25 Thread WolfgangFahl
WolfgangFahl added a comment.


  Why not go with "named queries" while at it? The examples Button at 
https://query.wikidata.org/ currently has 363 such "named queries". If the 
names would have a namespace structure it would be an ideal way of having two 
ways to reference a query
  
  1. by name e.g. wdqs.example.cats
  2. by short url https://w.wiki/5aSt
  
  So for too long queries asking for a name should IMHO be mandatory and for 
short queries optional. This way a structured list of "well known queries" 
could be started. If we add a bit of infrastructure we'd essential get close to 
a query-repository/query shop.

TASK DETAIL
  https://phabricator.wikimedia.org/T220703

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: WolfgangFahl
Cc: WolfgangFahl, Manuel, Base, Mohammed_Sadat_WMDE, Jneubert, Michael, Nikki, 
Mmarx, Envlh, Salgo60, Daniel_Mietchen, Ladsgroup, ArielGlenn, Ijon, 
Thomas_Shafee, Tagishsimon, Sylvain_WMFr, Harmonia_Amanda, TheDJ, Jheald, 
CennoxX, Framawiki, Legoktm, agray, Xaosflux, Habitator_terrae, Pigsonthewing, 
Lucas_Werkmeister_WMDE, Aklapper, Lea_Lacroix_WMDE, Themindcoder, Adamm71, 
Jersione, Hellket777, LisafBia6531, Astuthiodit_1, Yodas_henchman, 786, 
NguoiDungKhongDinhDanh, Biggs657, karapayneWMDE, Invadibot, Zabe, maantietaja, 
Juan90264, Zblace, Alter-paule, Beast1978, ItamarWMDE, Un1tY, Akuckartz, 
Hook696, CptViraj, AKA_MBG, Kent7301, Dibya, joker88john, 94rain, DannyS712, 
CucyNoiD, Nandana, Tks4Fish, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, 
Af420, Bsandipan, GoranSMilovanovic, Chicocvenancio, QZanden, Kizule, 
LawExplorer, Lewizho99, Maathavan, Devwaker, Niklitov, _jensen, Urbanecm, 
rosalieper, Neuronton, JEumerus, Scott_WUaS, Ananthsubray, Superzerocool, 
Stanglavine, Tulsi_Bhagat, Wong128hk, Luke081515, SimmeD, Wikidata-bugs, 
Snowolf, aude, Dcljr, Bawolff, Alchimista, Matanya, Mbch331, Jay8g, Krenair
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org