Last modified: 2012-08-06 20:21:08 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 T29151, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27151 - Add a body class for special-(wgCanonicalSpecialPageName)
Add a body class for special-(wgCanonicalSpecialPageName)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-04 04:37 UTC by Krinkle
Modified: 2012-08-06 20:21 UTC (History)
1 user (show)

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


Attachments

Description Krinkle 2011-02-04 04:37:22 UTC
(as suggested in bug 23315 comment 1)

In JavaScript gadgets can be used on any wiki and/or in any language since wgCanonicalSpecialPageName is available. However in CSS it's not quite as easy since there's only page-(wgPageName) which is (and should) be localized.

So that http://de.wikipedia.org/w/index.php?title=Spezial:Beiträge would have

<body class="mediawiki ltr ns--1 ns-special page-Spezial_Beiträge special-Contributions skin-vector">
instead of
<body class="mediawiki ltr ns--1 ns-special page-Spezial_Beiträge skin-vector">
Comment 1 db [inactive,noenotif] 2012-08-06 20:21:08 UTC
fixed by fix of bug 23315

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


Navigation
Links