Page MenuHomePhabricator

Printable issue with "printonly", an English Wikipedia specific classname
Closed, InvalidPublic

Description

I'm currently working on a table which includes a self reference inside a cell, which I would like to hide in the printable version. I have tried using class="noprint, yet that just messes up the table in print. Is there any way that I could format the wiki-markup so that some cells only appear in print without appearing on screen? I am using the {{Unprintworthy inline}} template on Wikipedia at the moment, yet that renders an empty cell in print mode. The cell-in-question is colspanned above three cells.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Neve-selbert renamed this task from class="printonly" to `class="printonly"`.Dec 18 2017, 10:49 AM
Neve-selbert renamed this task from `class="printonly"` to Printable issue.
Neve-selbert updated the task description. (Show Details)
TheDJ subscribed.

No, this is not possible without using an empty cell. Hiding the cell changes the structure of the table and thus breaks the table.
You should rework your content not to require something like that as there is no sustainable way to do what you want with wikicode + html + css.

Closing as invalid as this is not a Wikimedia/Mediawiki bug or feature request.

No, this is not possible without using an empty cell. Hiding the cell changes the structure of the table and thus breaks the table.
You should rework your content not to require something like that as there is no sustainable way to do what you want with wikicode + html + css.

Closing as invalid as this is not a Wikimedia/Mediawiki bug or feature request.

Why does <span class="printonly">foo</span> no longer work? It is listed as a feature at https://en.wikipedia.org/wiki/Help:Printing#Controlling_print.

For content on English Wikipedia pages, it's up to the English Wikipedia community to maintain that content.
The canonical documentation of the MediaWiki software can be found on https://www.mediawiki.org/wiki/MediaWiki

printonly is a English Wikipedia specific classname and not part of MediaWiki or Wikimedia in general. It's use is limited to citations (and has been ever since it was added in 2008). The documentation you refer to is misleading and I have removed the offending paragraph.

Aklapper renamed this task from Printable issue to Printable issue with "printonly", an English Wikipedia specific classname.Dec 19 2017, 11:44 AM