A more flexible version of Special:Prefixindex that lets you omit namespaces and redirects if there is only one result.
Special:FlexiblePrefix/Titlesearches across$wgFlexiblePrefixNamespacesSpecial:FlexiblePrefix/Namespace:Titlesearches in the given namespaceSpecial:FlexiblePrefix/:Titlesearches in the main namespace
Place the extension in your extensions directory and load it with wfLoadExtension('FlexiblePrefix');.
Then configure the default namespaces, e.g:
$wgFlexiblePrefixNamespaces = [NS_MAIN, NS_PROJECT];
- The
FlexiblePrefixDetails(Title $title, &$details, $context)hook lets you add details to results (details is an associative array mapping keys to HTML strings). - The
FlexiblePrefixBeforeDisplay(&$items, $context)hook lets you modify the result list before display. - The
SpecialFlexiblePrefixclass can be integrated elsewhere (either by direct instantiation or inheritance).
This extension is a rewrite of SimilarNamedArticles by Mathias Ertl.