Page MenuHomePhabricator

Add support for kaiwiki to Pywikibot
Closed, ResolvedPublic

Description

Per https://wikitech.wikimedia.org/wiki/Add_a_wiki once the wiki has been created

Details

Related Changes in Gerrit:

Event Timeline

good first task
addwikis script can be used to add the wiki easily. The patch will be submitted after the wiki is really created.

Thank you for tagging this task with good first task for Wikimedia newcomers!

Newcomers often may not be aware of things that may seem obvious to seasoned contributors, so please take a moment to reflect on how this task might look to somebody who has never contributed to Wikimedia projects.

A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor, for example it should clearly point to the codebase URL and provide clear steps to help a contributor get set up for success. We've included some guidelines at https://phabricator.wikimedia.org/tag/good_first_task/ !

Thank you for helping us drive new contributions to our projects <3

Xqt triaged this task as Low priority.Feb 5 2026, 11:33 AM

@Roshani005: please add yourself to "Assign / Claim" if you want to work on it.

This comment was removed by Roshani005.

Thanks! I’ve assigned the task to myself and will start working on it.
I’ll share updates here if I have any questions.

I ran the addwikis script for kaiwiki successfully.
It created user-config.py, but no changes were made to the family files (git status is clean).
Could you please advise on the next step or if a family file update is expected?

@Roshani005: what was your command line to run addwikis? You should see this message:

Adding 'kai' to wikipedia family...

The lists don't match, the new list is:

    codes = {
        ...

In that case the pywikibot/families/wikpedia_family.py was changed. The diff looks like;

-        'ka', 'kaa', 'kab', 'kaj', 'kbd', 'kbp', 'kcg', 'kg', 'kge', 'ki',
...
+        'ka', 'kaa', 'kab', 'kai', 'kaj', 'kbd', 'kbp', 'kcg', 'kg', 'kge',
...

I reran py -3.12 pwb.py addwikis wikipedia kai.
This time it updated pywikibot/families/wikipedia_family.py as expected.
I’ve committed the change locally.

I’ve pushed the change to Gerrit for review:
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237240

The commit message needs the task reference (Bug: T414239)
See https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines for it.

The content is not made by the addwikis script because the alingment is wrong and there is one line which has more than 80 chars. The 80 chars line limit is mandatory.

Hello, is anyone still working on this. if not, I'd like to give it a try

Change #1243141 had a related patch set uploaded (by Raushan 31; author: Raushan 31):

[pywikibot/core@master] Add support for kaiwiki to Pywikibot

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

Change #1243141 had a related patch set uploaded (by Raushan 31; author: Raushan 31):

[pywikibot/core@master] Add support for kaiwiki to Pywikibot

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

Xqt changed the task status from Open to Stalled.Feb 26 2026, 12:30 PM

Waiting for T414234

@241663: you may add yourself to the AUTHORS,rst file with a separate patch.

Zabe changed the task status from Stalled to Open.Mar 6 2026, 2:29 AM

Change #1243141 merged by Xqt:

[pywikibot/core@master] Add support for kaiwiki to Pywikibot

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