Page MenuHomePhabricator

Drop superfluous skin elements on print version
Closed, DeclinedPublic

Description

There have been complaints that there are navigation elements and interactive guidance which should not occur in printed version (PDF, book, collection) of an article.

Usually by adding class="noprint" to an element it should vanish from printable document.

The following list has been investigated for Vector, and might need to be repeated for other desktop skins. However, at least Vector should provide a pretty result.

Not meaningful on a paper:

  • class="mw-jump-link" MediaWiki:vector-jumptonavigation
  • class="mw-jump-link" MediaWiki:vector-jumptosearch
  • MediaWiki:privacy
  • MediaWiki:wikimedia-developers
  • MediaWiki:wikimedia-cookiestatement
  • MediaWiki:wikimedia-mobile-frontend-view

Might be offered:

  • MediaWiki:wikimedia-copyright
  • MediaWiki:aboutsite
  • MediaWiki:disclaimers

Event Timeline

Wikipedia's Print.css may be worth investigating for this, too.

I learned now that apparently no PDF but always the HTML &printable=yes is affected.

Wikipedia's Print.css may be worth investigating for this, too.

Yes, it seems a better idea to add some selectors to update commonPrint.css rather than adding noprint to elements which is the way to deal with that on template level or within a project page, but would extend networking bytes in interactive mode.

Further investigations give the impression that Vector structure is used always, whatever skin may be used by user preference or useskin.

Their selectors should be used to improve commonPrint.css, e.g. .mw-jump-link etc.

Current commonPrint.css says: Deprecated, changed in core for:

  • li#disclaimer
  • li#mobileview
  • li#privacy

In contemporary Vector those are called e.g.

  • li#footer-places-disclaimer
  • li#footer-places-mobileview

etc.

Jdlrobson subscribed.

Printable version is deprecated as of T167956