The new version of Replace Text, released yesterday, does something similar to this: it shows users a list of all the pages that match the search string, letting the user uncheck whichever pages they don't want replaced before the replacement happens - let me know if that works for you.

Yeah, I figured creating a new permission type for this extension might be more trouble than it's worth, for most wikis...


On Wed, Apr 30, 2008 at 7:19 PM, Temlakos <temlakos@gmail.com> wrote:

The biggest problem I see with your "Replace Text" extension is that it has no prompt-and-skip option. It's the equivalent of a find-and-replace routine in a text editor that knows only one speed: "Replace All." That can be dangerous.

I appreciate your building in a new group permission and assigning it to sysops. Of course, the Bureaucracy of any wiki can always create a new user's group of text-replacers, depending on how big the sysop community happens to be. (On CreationWiki, which uses SMW, we have one Bureaucrat and a handful of sysops, including me, so the default permission assignment would work fine.)

But if you could possibly work up a prompt-before-replace routine, I'd be really grateful.


Yaron Koren wrote:

This is to announce a new extension of mine, called "Replace Text". This extension creates a new special page, "Special:ReplaceText", available only to administrators of a wiki, that provides a simple form to do a global string search-and-replace on the contents of all non-Talk pages of a wiki.

There's nothing semantic per se about the extension, but it was developed in large part for usage with Semantic MediaWiki. Since SMW's page properties don't follow redirects, the only way to handle renaming a page that's the object of semantic properties is to manually change each of the pages that link to it; if there are dozens or hundreds of such pages, this can become a difficult task. It's come up as an issue on some of the wikis that I've handled, and this extension has helped; I assume it could help others as well. Of course, it can also be used for entirely non-SMW purposes, whenever you want to do a large-scale replacement.

Currently it's only available in English, though translations should start coming in soon courtesy of Betawiki. You can read more and download it here:



This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

Semediawiki-user mailing list