Topic on Project:Support desk
This page shows the changes between two versions of a post by Abhidevananda in the topic "Automated way to add a Category to all pages in Namespace "Main"" on Project:Support desk.
You can see other versions of this post at its history page.
Line 3: | Line 3: | ||
Search for: (.+)$ |
Search for: (.+)$ |
||
Replace with: $1\n |
Replace with: $1\n |
||
After $1\n comes |
|||
[[Category:YourCategoryName]] |
|||
Here’s a breakdown of what these expressions do: |
Here’s a breakdown of what these expressions do: |
||
Line 10: | Line 8: | ||
$1\n: This appends the category tag to the end of the content. |
$1\n: This appends the category tag to the end of the content. |
||
Make sure to replace YourCategoryName with the actual name of the category you want to add. |
Make sure to replace YourCategoryName with the actual name of the category you want to add. |
||
I also found that for such a large number of results in the ReplaceText extension I had to extend the result limits from the default 250 to a much higher number. But the instructions for doing this (adding a line in LocalSettings) were explained in the ReplaceText extension doc. |
I also found that for such a large number of results in the ReplaceText extension I had to extend the result limits from the default 250 to a much higher number. But the instructions for doing this (adding a line in LocalSettings) were explained in the ReplaceText extension doc. |