Page MenuHomePhabricator

Generate Section Translation (SX) URLs for community-specific vital articles for WE 2.1.5
Closed, ResolvedPublic4 Estimated Story Points

Description

Why this is needed? Currently, there is no easy way to select articles from outside of CX/SX and start translating them in CX/SX with a single click. The navigation requires multiple steps in the UX, and if an article doesn’t have a source, the editor sees empty results.

This task is about generating SX URLs programmatically for a list of vital articles so that they can be embedded on a wiki page and linked with the onboarding resource for WE 2.1.5.

Technical implementation might look something like this:

  • Parse a page with a list of articles needing improvement and fetch all articles. For example, in the case of Telugu wiki, the list is here.
  • Check if a Wikidata item exists for each article using the Wikidata API. If it does, this likely means the source article exists and can be used as a selection criterion.
  • Generate wiki text for embedding the URLs in a table format on the wiki page.

This might require writing a Python script that takes a wiki page with a list of articles, checks for Wikidata items for each article, generates SX URLs, and outputs a ready-to-paste wiki table.

Event Timeline

srishakatux renamed this task from Generate SX URLs for community-specific vital articles for WE 2.1.5 to Generate Section Translation (SX) URLs for community-specific vital articles for WE 2.1.5.Nov 4 2025, 10:21 PM
srishakatux triaged this task as Medium priority.

https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&filter-type=automatic&filter-id=previous-edits&from=en&to=te&active-list=suggestions&page=Karimnagar#/sx/section-selector

slightly unrelated to this ticket - the sections suggested for translation from this example is incorrect for many titles due to issues in current section alignment algorithm. For example: Etymology is asked to translate, but it is already there in the target article.

I would suggest linking to the translation confirmation step instead of section selection. This is the page we try to send all external entry points to. It contains a better overview and more information about what the user can do than going straight to section selection.

The script created automates the creation of SX urls for Wikipedia articles provided that need improvement. The script takes a list of articles in the target languages and generates SX urls for each that allow for translation from a source language, such as English.

Key accomplishments:

  • Automated workflow: converts list of articles to SX links that are ready to use.
  • Batch processing: handles up to 50 articles simultaneously for faster performance.
  • Cross language article matching: using the wikidata api, the script is able to find exact articles across languages.

gitlab repo: generateSXUrl

Based on discussion with @ToluAyo today and work in progress onboarding material, sharing a few more requirements for the script:

  • Generate 50 random articles from the list (example), with the URL for each appended with ?vaction=edit.
  • For the same set of articles, provide links that take users directly to the Section Translation interface, where they can begin expanding sections of the article.
  • From the list, fetch missing articles (in red) that each link to the Content Translation interface, so users can begin translating the article from scratch.

In the near future, we’ll do the same for Moroccan Arabic once we have the list of vital articles they share with us.

This task can now be considered complete. A script was used to generate direct links to Content/Section Translation tool for articles for two communities:

Nikerabbit set the point value for this task to 4.Thu, Apr 2, 8:48 AM