Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to use article names which contains "/" (slash) and/or "\" (backslash).

example:

how to do this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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):

Link to the parent page in MediaWiki

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.

share|improve this answer
2  
I think that if you want to use slash as normal part of page name, you should not enable subpages. Because the page with a slash shouldn't be logically a subpage and slashes in names are allowed even without that. –  svick May 15 '13 at 9:43
    
Yes, if you don't enable subpages the slash will be part of the page title. I was just unsure about what the wanted behaviour was. :) –  pietrodn May 15 '13 at 10:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.