diff --git a/tools/README.md b/tools/README.md index 7ecd6e3..6803eda 100644 --- a/tools/README.md +++ b/tools/README.md @@ -1,35 +1,35 @@ # Boz-MW command line tools ## replace.php This is another `replace.py` version. To transform in *farfallese* a whole wiki: ```bash ./replace.php --generator=allpages --plain \ a afa \ e efe \ i ifi \ o ofo \ u ufu ``` -To replace a template parameter, e.g. from `|commerciale = Sì` to `|lucro = Sì`: +To replace a simple template parameter in top of the page, e.g. from `{{Sito web|commerciale = Sì}}` to `{{Sito web|lucro = Sì}}`: ```bash ./replace.php \ --generator=transcludedin \ --titles=Template:Sito_web \ --first-section \ --limit=1 \ --regex \ '/\|commerciale(.*=.*)(Sì|No|sì|no)(.*)/' \ '|lucro$1$2$3' ``` Other options: ```bash ./replace.php --help ```