<div class="noprint">blub noprint</div>
For content that is only supposed to be visible in PDFs and not in the wiki do the following:
<div class="onlyinprint">blub onlyinprint</div>
This css class is ignored by the PDF renderer and thus displayed normally in the PDF. If you modify your Mediawiki css file to include
.onlyinprint {display: none}
the content will not be visible in the wiki.
I hope this solution works for you.
Best Regards,
Volker
Hi Volker,
thank you very much!
Partial success, the following seems to work and the template is excluded from print:
http://www.ck-wissen.de/ckwiki/index.php?title=Vorlage:Gesundheitshinweis&diff=15663&oldid=15638
But unfortunately we can’t get the “Vorlage:ImDruckVerbergen” to work as it used to work, for the content of this template please see
http://www.ck-wissen.de/ckwiki/index.php?title=Vorlage:ImDruckVerbergen&diff=15672&oldid=15669
Now it is even worse, on some pages it seems to work and on some pages it does not work. In a full PDF-book download it did not seem to work at all, even if some single article PDF prints seem to render OK.
What should the content of the template “Exclude in print”
http://www.ck-wissen.de/ckwiki/index.php/Vorlage:ImDruckVerbergen
exactly be, to be able to use this template within the article pages as we used it before the change?
Thank you very much for your help, best wishes!
Friedrich
--
You received this message because you are subscribed to a topic in the Google Groups "mwlib" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mwlib/mdiqIWwH3RQ/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to mwlib+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.