Last modified: 2013-05-14 18:23:09 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 T50443, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48443 - Add a class to distinguishing a subpage from a "root" page
Add a class to distinguishing a subpage from a "root" page
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.22.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-14 09:45 UTC by Carlos
Modified: 2013-05-14 18:23 UTC (History)
3 users (show)

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


Attachments

Description Carlos 2013-05-14 09:45:10 UTC
The span with class "subpages" inside the div with id "contentSub"
is the only thing distinguishing a subpage from a "root" page.

But sometimes (when none of the ancestors exist, see bug #48442) that
span is not there.

Add some class (maybe "subpage") somewhere (maybe in body) to flag the
page as a subpage.

Thanks.
Comment 1 Alex Monk 2013-05-14 16:57:59 UTC
Why would you want this? I'm not understanding the use case here...
Comment 2 Carlos 2013-05-14 18:23:09 UTC
One use case:

In Spanish Wikipedia we put a sign on subpages in namespaces User and User talk, because some users prepare their articles there, and some visitors confuse them with legit articles.

This is the rule in Common.css:

body.ns-2 div#contentSub > span.subpages:before,
body.ns-3 div#contentSub > span.subpages:before {
   content: " ¡Atención! Este no es un artículo enciclopédico, sino un espacio de trabajo personal. ";
   /* etc.. */
}

But this fails if, for example, the page is User:X/Draft, but User:X doesn't exist.

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


Navigation
Links