Content deleted Content added
Cleaned up |
|||
(40 intermediate revisions by 23 users not shown) | |||
Line 1:
{{redirect|WP:PRINT|guidance on sources in print|Wikipedia:Offline sources}}
{{Redirect|WP:PRINTABLE|the guidelines on printworthy page titles|Wikipedia:Printability}}
{{Use dmy dates|date=October 2014}}
{{Wikipedia how to}}
{{nutshell|To print a Wikipedia page, select File → Print from your web browser, or click on the browser print icon.}}
In general, printing a Wikipedia
The [[MediaWiki]] software that Wikipedia runs on uses [[Cascading Style Sheets]] in order to specify the style and layout
Certain page elements normally do not print; these include [[wp:self|self references]] like section edit links, navigation boxes, message boxes and metadata.<ref>The rationale for not printing navigation boxes is that these items contain [[wp:wikilinks|wikilinks]] that are of no use to print readers. (See [
==Printable version==
The default Vector skin has a selection in the
Print page is not needed for any modern browser, as these browsers will parse the <code>media="print"</code> 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.
Printable version
==CSS==
The Wikipedia specific print style sheet is at [[MediaWiki:Print.css]]. This style sheet can supplement and override the base; it can only be edited by
===Classes===
Line 44 ⟶ 27:
===@media print===
CSS media types define the rules for different types of presentation media. The normal display uses <code>@media screen</code> rules; printing rules can be defined with
==Controlling print==
===Elements===
When creating a new element that should not print, the noprint class can be applied; for example:<syntaxhighlight lang="html">
</syntaxhighlight>Here, the content ''foo'' would display, but not print. You can also use {{tl|noprint}}, a template wrapper for the <code>noprint</code> class. Some other templates, such as {{tl|unprintworthy-inline}}, also include the <code>noprint</code> class.▼
▲<pre><span class="noprint">foo</span></pre>
▲Here, the content ''foo'' would display, but not print. You can also use {{tl|noprint}}, a template wrapper for the <code>noprint</code> class. Some other templates, such as {{tl|unprintworthy-inline}}, also include the <code>noprint</code> class.
===Personal customization===
Line 67 ⟶ 40:
;Print URLs for references in citation templates:
<
#
* Note: URLs will always print for references that do not use citation templates
;Do not print references:
<
@media print {
ol.references
}</
;Change the print font size:
<
@media print {
#footer,
Line 92 ⟶ 65:
font-weight: normal;
}
}</
;Remove: space above title, remove "From Wikipedia, the free encyclopedia", URL, categories, modification text and license text
<
@media print {
.firstHeading { margin-top: 0; padding-top: 0; }
Line 102 ⟶ 75:
#catlinks, .catlinks { display: none; }
#footer { display: none; }
}</syntaxhighlight>
==Linking==
Line 137 ⟶ 89:
==See also==
* [[Help:Cascading Style Sheets]]
* [[User:TheDJ/Print options]]— a script that gives you greater control of how Wikipedia pages are printed.
Line 146 ⟶ 97:
* {{cite web|url=http://www.w3.org/TR/CSS21/media.html#at-media-rule|title=Media types|work=Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification|publisher=World Wide Web Consortium (W3C)|accessdate=8 April 2009}}
{{Wikipedia technical help|collapsed}}
[[Category:Wikipedia interface help|Printable version]]
[[Category:Wikipedia sidebar help|Printable version]]
|