Per bug 7991 comment 3, certain query pages should probably have their SQL
tweaked such that all valid content namespaces, as defined in
$wgContentNamespaces, are included, rather than just the main namespace.
This might still present problems, where pages are laid out with the assumption
that all list items reflect a single namespace, but it's probably a viable
consideration for the future.