This website is a read-only preview of RuneLibris. Some features may not work. For more information about the full feature-complete version of this wiki, please visit this link.
(Return to archive index)
Meta/Mass page editing
From RuneLibris
Overview[edit]
This page explain the protocol to mass-edit the output of Special:Export.
Protocol[edit]
- Get a list of page you want to edit, Make sure to not omit any prefix
- Paste said list into Special:Export.
- Save the .xml file to your computer.
- Make a backup of the .xml file.
- In Notepad++, remove every line containing <timestamp>.
- Make the edit you wish, keep in mind the following:
- <br> tags do not work, use <br> instead.
- Remove every line containing <comment>.
- Replace </contributor> with </contributor><comment>Automated edit</comment> (or similar)
- Save the document.
- Rename it data.xml
- Paste the following command into an empty document in Notepad++:
"R:\Xampp\php\php.exe" "R:\Xampp\htdocs\RuneLibris\maintenance\importDump.php" --conf "R:\Xampp\htdocs\RuneLibris\LocalSettings.php" "data.xml" --username-prefix="en" > result.txt
- Tweak the paths if needed.
- Open a CMD window in the same folder where data.xml is located.
- Paste the tweaked command in.
- Wait for the command to finish, this can take a long while (30+ minutes).
- Check the CMD window for any error.
- Check result.txt file for any error.
- Tweak and run the following command:
"R:\Xampp\php\php.exe" "R:\Xampp\htdocs\RuneLibris\maintenance\rebuildrecentchanges.php"
- Wait for the command to finish, this can take a long while (30+ minutes)