User:JoshuaJSlone/How-to/Interlanguage stuff

So over time I've taken to doing some big things with the non-English H!P wikis. Maintaining these isn't something that must be done frequently, but the downside is it can be so infrequent I don't always remember every detail of what to do and where. So I've written some steps down so I can reference it in the future--or if I eventually stop doing it, there will be a path for someone else to follow.

Maintaining Interlanguage Links
Have pywikibot set up properly, generate an H!P Wiki family file, set up user file. This only needs to be done the one time.

Login with: login.py

Though once properly set up it can edit pages from all the interlanguage wikis, It can only start with one language's set of pages. Whichever language is set in the mylang = line of the user-config.py file. Since English is the dominant language among the wikis, that would be the most important to run, but switching to other languages and then redoing the process below might pick up some things that have been missed. Past English Japanese is probably most important--page names are generally not going to match, so if there's currently no en->ja interlanguage link but there is a ja->en link, just running through the English pages will miss the connection.

Good default command: '''interwiki.py -start:! -hint:cs,de,en,es,fr,it,ja,zh'''

That will run through all the main namespace pages. The hint part tells it to check for pages of the same name at the other languages if interlanguage links don't already exist.

To do the same for other namespace, do something like: interwiki.py -start:Category:! '''interwiki.py -start:Template:! -hint:cs,de,en,es,fr,it,ja,zh'''

As an alternative to changing the user-config.py file as mentioned earlier, you can also add a -lang:xx argument to tell it which language to start checking from.

Add argument -confirm if you want it to ask you before making any changes--otherwise it will add what it finds automatically. Under normal circumstances if it finds a match it shouldn't be a problem. Either way it will still ask for confirmation before removing an existing link it finds to be invalid. NOTE: Sometimes it will suggest an interlanguage link to a category is incorrect because there is currently no content on the category page itself, even though there are pages using that category. In that case you probably want to manually create the page, which will at least consist of an interlanguage link back to whatever was pointing there.

Running through starting with multiple languages is more important for categories--whereas page names will usually be proper nouns that will be displayed the same in most languages that share an alphabet, a "Singles" or "Members" category that's found in English won't use the same words in Italian or German. As long as each of them has been manually linked to at least one other language, hopefully pywikibot should be able to patch it all together eventually.

More options for interwiki.py can be found here.

Maintaining Birthday Lists
The birthday modules are currently located at the following places:
 * en:Module:Birthday
 * cs:Modul:Narozeniny
 * ja:モジュール:誕生日
 * de:Modul:Birthday
 * es:Módulo:Birthday
 * fr:Module:Birthday
 * it:Modulo:Birthday
 * zh:模块:Birthday

The English one is the first to be updated. Adding in new names and dates is pretty straightforward, just follow the pattern that exists. When updating the other ones, DO NOT copy the entire module. Each has various differences, both for changing the actual words output, as well as for displaying dates and numbers properly. Just copy over the section with all the BirthdayInserts and things should be smooth.