Author: volker.haas
Description:
The Extension:Collection was recently altered as per community request. The intended result was lua support for PDF output (which was achieved).
The problem is that due to technical reasons special templates "exclude in print" and "only in print" stopped working (and the functionality can't be restored).
There is an easy work-around for this, but it requires a css class used by Wikipedia that hides elements from regular output.
.onlyinprint {display: none;}
Any content that is specially crafted for PDF output should be "marked" with the "onlyinprint" class and thus be hidden in the browser but visible in the PDFs.
The following fragment would therefore only be visible in a PDF:
<div class="onlyinprint">blub onlyinprint</div>
I hearby kindly ask for the css snippet to be included in the Mediawiki core css file.
Sidenote:
The opposite can already be achieved:
Content that is not supposed to be included in the PDF can already be marked with the css class "noprint":
<div class="noprint">blub noprint</div>
Version: 1.22.0
Severity: enhancement
See Also: