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