Book Image

MediaWiki Skins Design

Book Image

MediaWiki Skins Design

Overview of this book

Table of Contents (16 chapters)
MediaWiki Skins Design
Credits
About the Author
About the Reviewer
Preface

Chapter 10. MediaWiki Print Styles

The techniques we have encountered so far for skinning MediaWiki have only applied to the "screen" version of your wiki. In this chapter, we will go through the following:

  • The current commonPrint.css print stylesheet

  • Creating a print stylesheet for your MediaWiki

  • Introducing useful CSS elements for the print stylesheet

Viewing the Printable Version of Your Page

The printable version of each page (minus "special" pages such as Special:Login) is linked to from each page using links within the "Tools" menu by default, which is identifiable in CSS with #t-print. In most modern browsers (such as Internet Explorer 7, Firefox, and Opera 9), if a visitor selects the "print preview" option, the print stylesheet will be used by default.

Note

Some browsers may add page numbers and the URL of the printed page along with the header and footer of the printed document.

URLs in MediaWiki

The way in which URLs (the addresses of pages) in MediaWiki are displayed depends on the way...