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.
Description
Event Timeline
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.