**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.
{{F69899284}}
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 [[ https://te.wikipedia.org/wiki/%E0%B0%B5%E0%B0%BF%E0%B0%95%E0%B1%80%E0%B0%AA%E0%B1%80%E0%B0%A1%E0%B0%BF%E0%B0%AF%E0%B0%BE:%E0%B0%A4%E0%B1%86%E0%B0%B2%E0%B1%81%E0%B0%97%E0%B1%81_%E0%B0%B5%E0%B0%BF%E0%B0%95%E0%B1%80%E0%B0%AA%E0%B1%80%E0%B0%A1%E0%B0%BF%E0%B0%AF%E0%B0%BE%E0%B0%B2%E0%B1%8B_%E0%B0%A4%E0%B0%AA%E0%B1%8D%E0%B0%AA%E0%B0%95%E0%B1%81%E0%B0%82%E0%B0%A1%E0%B0%BE_%E0%B0%89%E0%B0%82%E0%B0%A1%E0%B0%B5%E0%B0%B2%E0%B0%B8%E0%B0%BF%E0%B0%A8_%E0%B0%B5%E0%B1%8D%E0%B0%AF%E0%B0%BE%E0%B0%B8%E0%B0%BE%E0%B0%B2%E0%B1%81 | 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.
* Programmatically craft ~20 URLs that take an editor straight to the SX tool for the article they can begin translating. The URL should include the article title, source, and target language. Example:
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
* 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.