WolfgangFahl / py-3rdparty-mediawiki

Wrapper for pywikibot and mwclient MediaWiki API librarties with improvements for 3rd party wikis
Apache License 2.0
4 stars 5 forks source link

wikiedit allow to modify single parameter of a macro WikiSon #91

Closed WolfgangFahl closed 1 year ago

WolfgangFahl commented 1 year ago

input:

Example: Change googlescholar user of https://ceur-ws.bitplan.com/index.php/Tim_Berners-Lee

wikiId: ceur-ws pagetitle: Tim_Berners-Lee template: Scholar param: googleScholarUser see https://ceur-ws.bitplan.com/index.php/Property:Scholar_googleScholarUser new value: test

WolfgangFahl commented 1 year ago

start with API and design command line accordingly

tholzheim commented 1 year ago

usage example

$ wikiedit -t "testWiki" --pages "Test" --template "WikiSON" --property "age" --value "Hello World"
editing 1 pages in researchWiki (dry run)
1/1 (100.00%): editing Test ...👍 
 {{WikiSON
 |name=Hello Wikiedit used
+|age=Hello World
 }}