Tim Audenaert
Tim Audenaert

Reputation: 1

Is there a maintenance script that can change all links on pages after a changing the name of a namespace?

Currently, we have about 100 pages under a certain namespace, let's say 'Foo:'. Much more pages contain references to such pages, like so: [[Foo:Hello|Hello]]. If we change the namespace from 'Foo:' to 'Foo2:', all links like [[Foo:Hello|Hello]] are broken because they should now be [[Foo2:Hello|Hello]].

Before I manually search for all such broken links, is there a maintenance script that can be used?

Upvotes: 0

Views: 111

Answers (2)

Alexander Mashin
Alexander Mashin

Reputation: 4602

Why don't you just set $wgNamespaceAliases['Old namespace name'] = NS_WHATEVER_NAMESPACE?

Upvotes: 0

Rob Kam
Rob Kam

Reputation: 10268

Extension:Replace Text will do that

Upvotes: 1

Related Questions