I would like to use article names which contains "/" (slash) and/or "\" (backslash).
example:
- http://www.example.com/wiki/Media/Wiki
- http://www.example.com/wiki/Media\Wiki
how to do this?
I would like to use article names which contains "/" (slash) and/or "\" (backslash).
example:
how to do this?
If you want to do so, you can enable subpages in any MediaWiki namespace editing $wgNamespacesWithSubpages
in LocalSettings.php
. For example:
# Enable subpages in the main namespace
$wgNamespacesWithSubpages[NS_MAIN] = true;
If you do this, Media/Wiki
will be a subpage of "Media" and it will show a link to the parent page under the page title (like this):
By default, MediaWiki enables subpages for all namespaces except main (ns0).
About page titles, the MediaWiki manual says:
It's not possible to use forward slashes in the title of a page from a namespace where subpages are activated, however back slashes (
\
) are treated as normal characters in subpage naming and can be used in place of forward slashes.
See also the documentation for the variable $wgLegalTitleChars
.