Re: [Wikitech-l] Pywikibot example to add or update template parameters on a page

2020-06-10 Thread Pavel Astakhov
You can use wikicode parser mwparserfromhell, and there are some examples https://github.com/earwig/mwparserfromhell Pavel On 11.06.2020 02:16, Hogan (US), Michael C wrote: Can anyone recommend an example or tutorial that demonstrates how to use Pywikibot for template parameter maintenance?

[Wikitech-l] Pywikibot example to add or update template parameters on a page

2020-06-10 Thread Hogan (US), Michael C
Can anyone recommend an example or tutorial that demonstrates how to use Pywikibot for template parameter maintenance? Given a page title, I'd like to: (1) look for a template on the page, (2) add the template if it's missing, (3) set template parameters to specified values. Thank you! -Michael