Forum:Changes in the "Printable version"?

Is there a way to make a template behave differenly when the page is viewed in it's printable version?

Ori229 07:08, 13 May 2007 (UTC)


 * The only difference between a regular view, and a printable view (printable=yes in the URL) is the skins/common/commonPrint.css file is loaded. So the laziest method, you can work with what is in that. For example:

This div should be hidden in 'printable' view


 * --Splarka (talk) 07:37, 13 May 2007 (UTC)


 * Is there a CSS class which doesn't show in the normal view, but is viewable in the printable view? Ori229 08:09, 24 May 2007 (UTC)


 * No, there isn't. But is easy. You just need to add a class in MediaWiki:Common.css with display:none;. In the printable version this class isn't defined and won't be applied. --Ciencia Al Poder (talk) -@WikiDex 13:11, 24 May 2007 (UTC)


 * I tried it, and it seems like MediaWiki:Common.css effects the printable version also??? Ori229 11:26, 29 May 2007 (UTC)


 * Hmm, try this:

/* @media screen, projection, handheld { */ .printonly { display:none; } /* } */
 * --Splarka (talk) 06:53, 30 May 2007 (UTC)