Hello. I need to dummy edit a list of pages, so that they update Special:IndexPages. Is there an existing script for this so I can use it with edit.php?
Topic on Project:Support desk
Adding new lines to the end of page count as null edits. Shouldn't that be possible through edit.php?
Yes, but I need to be able to edit multiple articles at the same time (the list is large, so it would take a lot doing it manually), therefore I wonder if someone made a script for this, or if there's another way.
Shouldn't that be possible through Extension:Replace Text or Extension:MassEditRegex? Although, it would leave an entry on the page history.
There is one relevant script, How to add content to all pages in a mediawiki?, but getting this to work might be more work than it's worth.
Additionally, don't know much about Extension:Proofread Page so can't be sure of this, but maybe it's possible to get your desired result by using API:Purge with the forcerecursivelinkupdate
option?
You can write a small shell script to run edit.php with getText.php for a list of pages
Ok, that's what I thought. Was just asking in case someone had already done so. Thanks!
I have written one here but I'm getting " is not a valid title." Not sure what mistake I made for the script
<while read index; do
php /srv/mediawiki/w/maintenance/getText.php "$index" --wiki testwiki | php /srv/mediawiki/w/maintenance/edit.php "$index" --wiki testwiki
done <test.txt
Looks like $index is not correctly initialized... Have you tried using a real page name instead of a variable?
Looks like even though it says "Not found" the null edits still work.