Last modified: 2013-09-01 11:17:23 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 T55649, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53649 - Add a CSS class when the page has a prefix.
Add a CSS class when the page has a prefix.
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-01 10:30 UTC by Benoît Evellin
Modified: 2013-09-01 11:17 UTC (History)
3 users (show)

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


Attachments

Description Benoît Evellin 2013-09-01 10:30:36 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.
Comment 1 Liangent 2013-09-01 10:33:14 UTC
There's already <body class="... ns-12 ..."> for Help namespace. Is this enough?
Comment 2 Benoît Evellin 2013-09-01 10:43:07 UTC
(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)?
Comment 3 Liangent 2013-09-01 10:50:08 UTC
(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.
Comment 4 Benoît Evellin 2013-09-01 11:17:23 UTC
(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 :/

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


Navigation
Links