Last modified: 2013-09-01 11:17:23 UTC
We have a redesign project for help pages on French Wikipedia. In order to make changes neatly, is it possible to add a CSS class on the body when the concerned page has a prefix? For example, for a page prefixed Help:, have this CSS code : <body class="prefix-help..."> Thanks.
There's already <body class="... ns-12 ..."> for Help namespace. Is this enough?
(In reply to comment #1) > There's already <body class="... ns-12 ..."> for Help namespace. Is this > enough? I didn't see that. Thanks! :) But this is a little but incomprehensible, no? Is it possible to enhance it, in order to have directly the real name (more clear for CSS developments)?
(In reply to comment #2) > (In reply to comment #1) > > There's already <body class="... ns-12 ..."> for Help namespace. Is this > > enough? > > I didn't see that. Thanks! :) > > But this is a little but incomprehensible, no? Is it possible to enhance it, > in > order to have directly the real name (more clear for CSS developments)? In this case ns-1 would become ns-talk, which conflicts with the existing ns-talk (set on talk pages for every namespace) I guess.
(In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > > There's already <body class="... ns-12 ..."> for Help namespace. Is this > > > enough? > > > > I didn't see that. Thanks! :) > > > > But this is a little but incomprehensible, no? Is it possible to enhance it, > > in > > order to have directly the real name (more clear for CSS developments)? > > In this case ns-1 would become ns-talk, which conflicts with the existing > ns-talk (set on talk pages for every namespace) I guess. Obviously. It is possible to double it (ns-1 + ns-talk), and after remove ns-1, but it is a detail. An other problem may be the local language, which have talk pages, but others may have an issue. In French, Wikipédia: is with an accent (we can remove it and still have something understandable), but in Korean, it is very difficult to convert 위키백과: (%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:)... Well, the current system seems to be the best. Sorry for the loss of your time :/