https://bugzilla.wikimedia.org/show_bug.cgi?id=50750
Web browser: ---
Bug ID: 50750
Summary: Add css "onlyinprint" class to hide content from
anything except print output
Product: Wikimedia
Version: wmf-deployment
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
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>
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l