I would like to create a bot which would list the pages of my wiki and then search all the pages of the wiki to create hyperlink when he find the name of a page in another page.
I have a page called "Wiki" and in another page there is the word "wiki". So I want to create an hyperlink to redirect toward the page "Wiki".
It's my first time using this API so I'm not sure about how to proceed. I've already found that you can list all your pages with "list=allpages" and search a string in all the wiki with "list=search" but when I have the names of the pages where there is that string, how can I edit just those string in the page?
For now I'm doing it in PHP so can I do something like getting all the content of the page, changing it then edit the page?
If you're interested, here is what I did to create this bot :
Well, I'm sure there is a lot of unnecessary stuff in this code but I'm not a pro in php and mediawiki and the script run just fine like that so it's not that bad I think ^^