Last modified: 2013-05-14 18:23:09 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.
Why would you want this? I'm not understanding the use case here...
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.