Page MenuHomePhabricator

Sh60
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
Feb 28 2019, 11:10 PM (271 w, 2 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Sh60 [ Global Accounts ]

Recent Activity

Mar 5 2019

Sh60 added a comment to T217387: API: how to get the page-size from query-langlinks.

so this is what I would do:

Mar 5 2019, 10:33 PM · MediaWiki-Action-API
Sh60 added a comment to T217387: API: how to get the page-size from query-langlinks.

yes :-)

Mar 5 2019, 9:42 PM · MediaWiki-Action-API
Sh60 added a comment to T217387: API: how to get the page-size from query-langlinks.

I cannot see why this would be a performance drag, because this only happens once and not with every query.
Also keeping the size up to date would be only necessary when the size changes.

Mar 5 2019, 9:13 PM · MediaWiki-Action-API

Mar 4 2019

Sh60 added a comment to T217387: API: how to get the page-size from query-langlinks.

use case:
When I'm reading a page in f.i. german with very few information it would be interesting to see if there is a linked page in another language that provides more information (maybe up to 10 times more).
If this was english I could read it right away, if in another language I could translate it with google-translate (which is better than having no additional information at all).

Mar 4 2019, 9:16 AM · MediaWiki-Action-API
Sh60 added a comment to T217387: API: how to get the page-size from query-langlinks.

Yes, the cost would be a problem.
But would it be possible to add a new field "ll_size" to the table "langlinks"?
Then it would be very fast...

Mar 4 2019, 8:15 AM · MediaWiki-Action-API

Mar 3 2019

Sh60 added a comment to T217387: API: how to get the page-size from query-langlinks.

After adding an "s" to revision it works, but it only gives me 1 size, probably of the first language:

Mar 3 2019, 10:07 PM · MediaWiki-Action-API
Sh60 added a comment to T217387: API: how to get the page-size from query-langlinks.

thank you for this, but when I enter your URL
https://de.wikipedia.org//w/api.php?action=query&format=json&prop=langlinks|revision&llprop=langname|url|autonym&rvprop=size

Mar 3 2019, 7:41 AM · MediaWiki-Action-API

Feb 28 2019

Sh60 created T217387: API: how to get the page-size from query-langlinks.
Feb 28 2019, 11:14 PM · MediaWiki-Action-API