Cool, thanks.
On Feb 6, 2023, at 8:05 PM, Kunal Mehta legoktm@debian.org wrote:
Hi,
On 2/6/23 18:59, Roy Smith wrote:
That only works on the content of an entire page, doesn't it? I've just got a short snippet of wikitext that I've already parsed out of a page.
Nope, it works for any piece of wikitext you want.
Specifically, a proposed DYK hook, such as:
that '''[[Edward A. Hanna]]''' wanted to eliminate the [[New York State Assembly]] while he served in it, and later wanted to close down the government of the city of [[Utica, New York|Utica]] while he was its mayor?
Try https://w.wiki/6Js7 (ApiSandbox with that text + some parse options preloaded).
-- Kunal / Legoktm _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org