Cool, thanks.
> On Feb 6, 2023, at 8:05 PM, Kunal Mehta <lego...@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/message/LUDTEEABHYIZEUVOELYHL4CKLII46QM5/ > To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/PMEKP4WI5G55LC5K46NWZJ4RY2VV67DE/ To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org