Page MenuHomePhabricator

Subpages: Add a class to distinguishing a subpage from a "root" page
Open, LowPublic

Description

Author: angus

Description:
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.

QA steps

Details

Reference
bz48443

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:34 AM
bzimport set Reference to bz48443.
bzimport added a subscriber: Unknown Object (MLST).

Why would you want this? I'm not understanding the use case here...

angus wrote:

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.

Jdlrobson renamed this task from Add a class to distinguishing a subpage from a "root" page to Subpages: Add a class to distinguishing a subpage from a "root" page.Dec 23 2021, 7:08 PM