Page MenuHomePhabricator

Enable AutoModerator on zh.wiki
Closed, ResolvedPublic

Description

AutoModerator deployment checklist

Please consult the corresponding deployment steps for reference.

Project: Chinese Wikipedia (zh.wiki)

We would like to work with Chinese Wikipedia, as it is one of the top wikis, and they have no anti-vandalism bot.

Steps

Please mark the steps below as completed as the process progresses.

  • 0. Community consensus [Community]
    • Link to the local conversation (community consensus) on your wiki about Automoderator: here
  • 1. Username and localisation [Community]
    • Selected username: AutoModerator
    • Strings translated
  • 2. Create AutoModerator's user page [Community]
  • 3. Create false positive reporting page [Community]
    • Page location/title: User:AutoModerator/错误报告 [1]
  • 4. MediaWiki configuration [WMF]
  • 5. Local configuration [Community] (https://w.wiki/Cebh)
  • AutoModerator enabled? [Community]

[1]: https://zh.wikipedia.org/wiki/User:AutoModerator/%E9%94%99%E8%AF%AF%E6%8A%A5%E5%91%8A

Details

Event Timeline

ZhaoFJx changed the task status from Open to Stalled.Dec 10 2024, 12:16 AM

Stalled until the community reaches consensus

This tool sounds very cool... Maybe the community can try reopen this discussion in the future @Stang

Discussion already started at village pump, let's just wait for a consensus.

5/5 agreed, on the user name disscusion now.

Great to hear that conversation is ongoing about this! Let me know if we can answer any questions or help in any way.

ZhaoFJx changed the task status from Stalled to Open.Jan 5 2025, 3:21 AM
ZhaoFJx updated the task description. (Show Details)

The community has reached a consensus that "AutoModerator" is a good choice, and I believe MediaWiki configuration can be done by WMF, thanks!

Amazing! We'll get the configuration lined up.

@Samwalton9-WMF I just reviewed the Gerrit changes for Enable AutoModerator. If you think it would be helpful, I’d be happy to assist by committing the codes in InitialiseSettings.php, which can reduce workloads for you all :)

@Samwalton9-WMF I just reviewed the Gerrit changes for Enable AutoModerator. If you think it would be helpful, I’d be happy to assist by committing the codes in InitialiseSettings.php, which can reduce workloads for you all :)

You are welcome to create a configuration patch for backporting.

Change #1108459 had a related patch set uploaded (by ZhaoFJx; author: ZhaoFJx):

[operations/mediawiki-config@master] Enable AutoModerator on zhwiki

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

ZhaoFJx changed the task status from Open to In Progress.Jan 6 2025, 5:58 PM

Change #1108459 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable AutoModerator on zhwiki

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

Mentioned in SAL (#wikimedia-operations) [2025-01-07T14:42:28Z] <lucaswerkmeister-wmde@deploy2002> Started scap sync-world: Backport for [[gerrit:1108459|Enable AutoModerator on zhwiki (T367306)]], [[gerrit:1108525|cswikivoyage: Change the wordmark v2 (T382779)]]

Mentioned in SAL (#wikimedia-operations) [2025-01-07T14:49:13Z] <lucaswerkmeister-wmde@deploy2002> zhaofjx, lucaswerkmeister-wmde: Backport for [[gerrit:1108459|Enable AutoModerator on zhwiki (T367306)]], [[gerrit:1108525|cswikivoyage: Change the wordmark v2 (T382779)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-01-07T15:13:07Z] <lucaswerkmeister-wmde@deploy2002> Finished scap sync-world: Backport for [[gerrit:1108459|Enable AutoModerator on zhwiki (T367306)]], [[gerrit:1108525|cswikivoyage: Change the wordmark v2 (T382779)]] (duration: 30m 38s)

We are currently discussing the configuration of AutoModerator

Hello @ZhaoFJx I was checking on configuration and noticed some of the translated messages including links are missing a closing bracket which is causing issues in the rendering of the configuration form.

<b>操作</b><ul><li>请通过[https://translatewiki.net/w/i.php?title=Special%3ATranslate&group=ext-automoderator&language={{CONTENTLANGUAGE}}&action=translate&filter= translatewiki]添加翻译。</li><li>如需自定义讨论页消息,请覆盖此[{{fullurl:Special:AllMessages|prefix=automoderator-wiki&filter=all&limit=50}} 系统消息]中的文本。</li></ul>

and

<b>编辑摘要</b><p>Automoderator的编辑摘要在translatewiki上翻译,并可在本地覆盖。</p><b>操作</b><ul><li>通过[https://translatewiki.net/w/i.php?title=Special%3ATranslate&group=ext-automoderator&language={{CONTENTLANGUAGE}}&action=translate&filter=translatewiki]添加翻译。</li><li>如要自定义讨论页消息,请覆盖此[{{fullurl:Special:AllMessages|prefix=automoderator-wiki&filter=all&limit=50}} 系统消息]中的文本。</li></ul>

I think in both cases we just need to add a closing `]` to the end of the Special:AllMessages URL.
Note these links will be broken until the next localisation update.

@Kgraessle Thanks for mention it. I noticed that problem too, but I tested it on my sandbox, the original one somehow worked fine (https://w.wiki/CepL). I have no idea why.
Easy read, It looks like there are no missing brackets?

<b>操作</b>
<ul>
<li>请通过[https://translatewiki.net/w/i.php?title=Special%3ATranslate&group=ext-automoderator&language={{CONTENTLANGUAGE}}&action=translate&filter= translatewiki]添加翻译。</li>
<li>如需自定义讨论页消息,请覆盖此[{{fullurl:Special:AllMessages|prefix=automoderator-wiki&filter=all&limit=50}} 系统消息]中的文本。</li>
</ul>

Both messages are under cdx-field__help-text class.

@Kgraessle I see why. The version number of the extension on zhwiki is 5d8d35a, which communityconfiguration-automoderator-automoderatorreverttalkpagemessageenabled-help-text is translated as:

<b>操作</b>
<ul>
<li>请通过[https://translatewiki.net/w/i.php?title=Special%3ATranslate&group=ext-automoderator&language={{CONTENTLANGUAGE}}&action=translate&filter=translatewiki]添加翻译。</li>
<li>要自定义讨论页消息,请覆盖此[/wiki/Special:AllMessages?prefix=automoderator-wiki&filter=all&limit=50 系统消息]中的文本。</li>
</ul>

In this diff, the localization modifies the URL format and adds a space according to the English original.
So maybe there is nothing wrong with the text on TranslateWiki, it's just that - as you said - the i18n files for the current extension version haven't been updated yet.

jsn.sherman changed the task status from In Progress to Stalled.Jan 8 2025, 5:15 PM

zhwiki is in group 2, which won't receive the latest train rollout until thursday. Stalling until then.

Verified that the markup is now rendering after the train rolled out last week; note that I did have to perform a hard refresh to see the change.

Still waiting for Communityconfiguration-automoderator-automoderatorcautionlevel-help-text/zh-hans and zh-hant update, which means waiting for 1.44.0-wmf.12 to deploy.

Still waiting for Communityconfiguration-automoderator-automoderatorcautionlevel-help-text/zh-hans and zh-hant update, which means waiting for 1.44.0-wmf.12 to deploy.

Apologies; I now realize that I didn't have the correct language set!

Still waiting for Communityconfiguration-automoderator-automoderatorcautionlevel-help-text/zh-hans and zh-hant update, which means waiting for 1.44.0-wmf.12 to deploy.

Apologies; I now realize that I didn't have the correct language set!

Thats okay, don't worry :)

Scardenasmolinar updated the task description. (Show Details)
Scardenasmolinar moved this task from QA to Done on the Moderator-Tools-Team (Kanban) board.

That's great! Please let us know if you or the rest of the community have any questions, concerns, or feedback.