If you want to only show a single Namespace, you can use the 'namespace' url parameter.
For example, consider mediawiki.org:
Original: http://www.mediawiki.org/wiki/Special:Recentchanges Only Main: http://www.mediawiki.org/wiki?title=Special:Recentchanges&namespace=0 Only Template: http://www.mediawiki.org/wiki?title=Special:Recentchanges&namespace=10
It's a relatively simple hack to change the default 'namespace' filter to one of these (currently it defaults to null). To do this, crack open $IP/includes/Specialrecentchanges.php and find this line:
/* text */ 'namespace' => null,
Change 'null' to whatever Namespace you want to display - 0 for Main, 2 for User, 4 for Project, etc.
Along those same lines, if you only want to omit one namespace (for example User), you can do the same steps as above, and also change the default value for the 'invert' parameter. When 'invert' is set to true, the 'namespace' parameter acts as a blacklist instead of a whitelist.
Filtering on more than one namespace requires more hacking. If many people have this request, it may make sense to patch-in a 'namespaces' parameter, which is a comma separated list of namespaces to filter on.
It might also make sense to move the $defaults specification from inside the wfSpecialRecentchanges() method to somewhere in DefaultSettings.php to make modifications to the default behavior easier.
-- Jim R. Wilson (jimbojw)
On 3/18/07, Frederik Dohr fdg001@gmx.net wrote:
IIRC I have once done such by hacking the code (rewriting the SQL
statement).
Sounds scary. I'll take a look though, maybe I'll figure it out - it might(!) actually be quite easy...
-- F.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l