In general, printing Wikipedia article is as simple as selecting Print page from the MediaWiki sidebar. Your browser probably has its own print preview feature.
The MediaWiki software that Wikipedia runs on uses Cascading Style Sheets in order to specify the style and layout that is suitable to a printed version of the page. In modern browsers, the print function of the browser should automatically use the rules in the style sheets when you print an article, therefore the print command of your web browser is also useful.
Certain page elements normally do not print; these include self references like section edit links, navigation boxes, message boxes and metadata.
Video Help:Printing
Printable version
The default Vector skin has a selection in the left sidebar for 'Print page'. This printable version is often misunderstood, as it is not exactly a print preview. It does not show page numbers, headers and footers applied by your browser. For a proper print preview, use the one supplied by your browser.
Print page is not needed for any modern browser, as these browsers will parse the media="print"
CSS styles included in the markup of Wikipedia pages. The print rules are applied automatically when the page is printed or previewed from the browser.
Older browsers do not automatically apply print rules when using the browser print feature or don't apply them correctly. These browsers include:
- Internet Explorer 6 and older
- Netscape Navigator 4.73 and older
- Firefox 5 and lower
Printable version does not apply @media print
rules from user style sheets-- see below.
Maps Help:Printing
CSS
MediaWiki provides a print specific styling. This style sheet can be edited only by the developers.
The Wikipedia specific print style sheet is at MediaWiki:Print.css. This style sheet can supplement and override the base; it can be edited by admins.
Classes
MediaWiki:Print.css defines certain classes that are non-printable, specifically navbox, infobox.sisterproject, editlink, noprint, metadata, dablink. For example: since {{navbox}} uses the navbox class, any elements based on it will not print.
@media print
CSS media types define the rules for different types of presentation media. The normal display uses @media screen
rules; printing rules can be defined with defined @media print
.
Controlling print
Elements
When creating a new element that should not print, the noprint class can be applied; for example:
Here, the content foo would display, but not print. You can also use {{noprint}}, a template wrapper for the noprint
class. Some other templates, such as {{unprintworthy-inline}}, also include the noprint
class.
Personal customization
Readers with accounts can modify their Special:MyPage/skin.css to customize their individual printing experience. Remember that rules using @media print
will show-- or not show if that is the intent --in print preview but not printable version.
- Print URLs for references in citation templates
- Note: URLs will always print for references that do not use citation templates
- Do not print references
- Change the print font size
- Remove
- space above title, remove "From Wikipedia, the free encyclopedia", URL, categories, modification text and license text
Linking
It is possible to include links to the printable version of a page. Such links should not be needed in articles, and the use elsewhere should consider the actual need and limitations.
The link to the printable page is of the format:
- http://en.wikipedia.org/w/index.php?title=Help:Printable&printable=yes
A link to the printable version of a page can be created by using
{{fullurl:{{FULLPAGENAME}}|printable=yes}}
See also
- Help:Cascading Style Sheets
- Help:Books
- User:TheDJ/Print options-- a script that gives you greater control of how Wikipedia pages are printed.
Notes
External links
- "Media types". Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification. World Wide Web Consortium (W3C). Retrieved 8 April 2009.
Source of the article : Wikipedia