Page MenuHomePhabricator

Add action information to body classes
Closed, ResolvedPublic

Description

The body of a MediaWiki page has information, in the form of classes about the page currently open, its namespace etc. It has, however, no information about the action being done - whether it is an edit page, a page history, an old version of an article etc. Please add that information so it is possible to style pages depending on what action is being taken. (A possible use case: hide the left sidebar on edit screens so there is more space for the textarea.)


Version: unspecified
Severity: enhancement

Details

Reference
bz25657

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:15 PM
bzimport set Reference to bz25657.
bzimport added a subscriber: Unknown Object (MLST).

The information is available per javascript variable "wgAction".

For CSS it is not available. See bug 4438

  • This bug has been marked as a duplicate of bug 4438 ***