Last modified: 2011-03-13 18:04:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5455, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3455 - More flexible determination of what is a sub-page
More flexible determination of what is a sub-page
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-13 22:03 UTC by Leah
Modified: 2011-03-13 18:04 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Leah 2005-09-13 22:03:35 UTC
On the occasions where it is useful to have subpages of main namespace articles,
it is awkward to have no effective builtin navigation.
Comment 1 Brion Vibber 2005-09-14 07:15:06 UTC
Subpages are disabled by default in the main namespace
due to the annoyance of false "subpages" on articles
with slashes in their actual names on MediaWiki's
typical usage (that is, encyclopedias).

So pages with a slash in them have no special meaning
in the main namespace unless you've enabled them there.
You can change this for your site; see DefaultSettings.php
for the default state and details of all configurable
settings.

For more background see:
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_organize_pages_into_subdirectories_like_.2Fwiki.2Fsubdir.2FPageName_.3F
http://meta.wikimedia.org/wiki/Help:Link#Subpage_feature
Comment 2 Leah 2005-09-14 07:46:37 UTC
Could a feature be added, then, to override the default behavior per-page?  It
would be useful to be able to force subpage behavior with a __SUBPAGE__
directive, or the opposite with __NOSUBPAGE__ (by the way, how does Mediawiki
handle talk pages of main namespace articles with slashes in their titles?) 
Could subpages be detected by heuristic, for example by checking whether the
parent exists and contains a link to the subpage?
Comment 3 Rowan Collins [IMSoP] 2005-09-14 17:07:04 UTC
(In reply to comment #2)
> Could a feature be added, then, to override the default behavior per-page?  It
> would be useful to be able to force subpage behavior with a __SUBPAGE__
> directive, or the opposite with __NOSUBPAGE__ 

Why override it per page? Either you want sub-pages to be allowed (in which case
you can use them by having a slash in the title, or avoid them by not) or you
don't. 

> (by the way, how does Mediawiki
> handle talk pages of main namespace articles with slashes in their titles?) 

Those are in the Talk: namespace, which has sub-pages enabled by default; so a
talk page with a slash in will be interpretted as a sub-page, even if it isn't
intended that way. This rarely happens, and isn't exactly a big deal when it does.

> Could subpages be detected by heuristic, for example by checking whether the
> parent exists and contains a link to the subpage?

Well, currently, I believe, the link shows up if the title has a slash in, and
the "parent" exists. You could hack things up to hide the link if the parent
page didn't link to the child if you really wanted though - just query the
'links' table appropriately.

Really, the special consideration the software gives to sub-pages is so minimal
that anything more complex than what currently exists seems a waste of effort to me.
Comment 4 Niklas Laxström 2009-02-28 16:56:42 UTC
Marking as WONTFIX per comment #3

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links