Page MenuHomePhabricator

add a table for Gyaanipedias
Closed, ResolvedPublic

Description

Can anyone tell and guide me that how to add Gyaanipedia wikis https://wikiapiary.com/wiki/Gyaanipedia

To Wikistats project https://wikistats.wmcloud.org/

Just like other projects like shoutwiki, miraheze, wikinews, etc I want to add Gyaanipedia to the projects so please guide me how to do that?

Thanking you with due request

Event Timeline

Restricted Application added subscribers: RhinosF1, Reception123. · View Herald Transcript
Aklapper renamed this task from Request to add to Wikistats to Add Gyaanipedia to Wikistats.Apr 11 2021, 6:59 AM
Dzahn renamed this task from Add Gyaanipedia to Wikistats to add a table for Gyaanipedias.Apr 13 2021, 4:40 PM
Dzahn claimed this task.

@Dzahn Gyaanipedia is not a separate wiki farm, despite the name and number of Gyaanipedias. It is actually a series of Gyannipedia wikis hosted by Miraheze; therefore, Gyannipedia wikis are already included here

Edit: I mean, I can see a use case for creating a separate table for the Gyannipedia wikis on Miraheze. I just wasn't sure if we'd done that before or not.

Dear @Dzahn although Gyaanipedia is not a separate wiki farm but if you add this to Wikistats as a seperate table then it will be easy to track it's performance in a comfortable and simple way and in one web page, so it's my humble request to you please please add these wikis to the table. 🙏🏻 Thanking you with due respect

This would mean I have to somehow remove Gyaanipedias from the Miraheze table or the totals would be wrong. I am a bit reluctant to do that because it seems we might soon have more special cases to be removed from the miraheze table.. that need to be maintained somewhere.

Yeah, I agree that as Gyaanipedia is part of Miraheze, it wouldn't make sense to remove it from Miraheze in order to create a separate entry for it if the two cannot co-exist due to the totals being wrong.

@Dzahn Can't it possible that they co-exist means to not remove from Miraheze and at the same time create a separate table at somehow?

This would mean I have to somehow remove Gyaanipedias from the Miraheze table or the totals would be wrong. I am a bit reluctant to do that because it seems we might soon have more special cases to be removed from the miraheze table.. that need to be maintained somewhere.

Yeah, that's a good point. I'd rather potentially add an additional column, like a sub-category, to the existing table rather than create a separate table maybe?

Maybe I could add an option to the file that displays the miraheze table to filter it so that it only shows a subset. I'll have to think about it some more.

Following the WikiApiary link this shows a lot of fandom URLs.

So this is a cluster of wikis that is half on Fandom and have on Miraheze (and some elsewhere)?

Change 681221 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/debs/wikistats@master] add a special virtual table for Gyaanipedias

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

@dmehus @Pokai

I did a quick hack like this: https://gerrit.wikimedia.org/r/c/operations/debs/wikistats/+/681221/1/var/www/wikistats/display.php

That gives us:

https://wikistats.wmcloud.org/display.php?t=gy

How does that look?

It's just not linked anywhere yet and doesn't contribute to the totals (as it shouldn't, they are already included in miraheze for that purpose)

Change 681221 merged by Dzahn:

[operations/debs/wikistats@master] add a special virtual table for Gyaanipedias

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

Thank you so much @Dzahn for this, thanks a lot again. Your hack is far better than 5-Minute Crafts hacks.

https://wikistats.wmcloud.org/display.php?t=gy

Can you change the abbreviation gy to gp (which is there at the last of this link) and another thing is that is it possible to add Fandom wikis in this table?

Change 681457 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/debs/wikistats@master] rename Gyaanipedias virtual table from gy to gp

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

Change 681460 had a related patch set uploaded (by Dzahn; author: Dzahn):

[operations/debs/wikistats@master] rename Gyaanipedias special page from gx to gp

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

Change 681457 abandoned by Dzahn:

[operations/debs/wikistats@master] rename Gyaanipedias virtual table from gy to gp

Reason:

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

Change 681460 merged by Dzahn:

[operations/debs/wikistats@master] rename Gyaanipedias special page from gx to gp

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

is that is it possible to add Fandom wikis in this table?

No, I'm afraid that is not possible. I could do "subgroups of an existing table" with the hack above. But I can't easily do "a special virtual table that is partially taken from one table and partially from another table". And if I could, then I still can't update the wiki (now fandom) table because it's simply too many wikis for me to pull in any reasonable time.

That is unfortunately and old and known issue. Also see "Wikia" column on https://phabricator.wikimedia.org/project/view/543/.

unless the whole thing would be a custom table with manually added wikis and that brings us back to the issue of wrong totals in the global view and how to keep maintaining the list of wikis. unless it can be pulled from some central place