Help - Printing - Wikipedia

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Help:Printing - Wikipedia https://en.wikipedia.

org/wiki/Help:Printing

Help:Printing
"WP:PRINT" redirects here. For guidance on sources in print, see Wikipedia:Offline sources.
"WP:PRINTABLE" redirects here. For the guidelines on printworthy page titles, see
Wikipedia:Printability.

This help page is a how-to guide.


It details processes or procedures of some aspect(s) of Wikipedia's norms
and practices. It is not one of Wikipedia's policies or guidelines, and may
reflect varying levels of consensus and vetting.

This page in a 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 article is as simple as selecting Printable version from the tools
menu on the sidebar or at the top-right. 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.[1]

Printable version
The default Vector skin has a selection in the tools menu at the top-right for 'Printable version'.
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.

Printable version does not apply @media print rules from user style sheets— see below.

CSS
MediaWiki provides a print specific styling. This style sheet can be edited only by the developers.

1 of 5 7/24/2024, 8:55 PM
Help:Printing - Wikipedia https://en.wikipedia.org/wiki/Help:Printing

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 interface administrators.

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 @media print.

Controlling print

Elements
When creating a new element that should not print, the noprint class can be applied; for example:

<span class="noprint">foo</span>

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

/* print URLs for references */


#content cite a.external.text:after {display: inline;}

▪ Note: URLs will always print for references that do not use citation templates

Do not print references

/* do not print references */


@media print {
ol.references {display: none;}
}

2 of 5 7/24/2024, 8:55 PM
Help:Printing - Wikipedia https://en.wikipedia.org/wiki/Help:Printing

Change the print font size

/* save ink and paper with very small fonts */


@media print {
#footer,
#content,
body { font-size: 8pt !important; }
h1 { font-size: 17pt }
h2 { font-size: 14pt }
h3 { font-size: 11pt }
h4 { font-size: 9pt }
h5 { font-size: 8pt }
h6 {
font-size: 8pt;
font-weight: normal;
}
}

Remove
space above title, remove "From Wikipedia, the free encyclopedia", URL, categories,
modification text and license text

/* Remove non-essential elements */


@media print {
.firstHeading { margin-top: 0; padding-top: 0; }
#siteSub { display: none; }
.printfooter { display: none; }
#catlinks, .catlinks { display: none; }
#footer { display: none; }
}

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
▪ User:TheDJ/Print options— a script that gives you greater control of how Wikipedia pages are
printed.

Notes

3 of 5 7/24/2024, 8:55 PM
Help:Printing - Wikipedia https://en.wikipedia.org/wiki/Help:Printing

1. The rationale for not printing navigation boxes is that these items contain wikilinks that are of
no use to print readers. (See User talk:Ruud Koot/2010#Do you recall the reason?) There are
two problems with this rationale: First, other wikilink content does print, for example See also
and succession boxes. Second, navigation boxes do contain useful information regarding the
relationship of the article to the subjects of related articles.

External links
▪ "Media types" (http://www.w3.org/TR/CSS21/media.html#at-media-rule). Cascading Style
Sheets Level 2 Revision 1 (CSS 2.1) Specification. World Wide Web Consortium (W3C).
Retrieved 8 April 2009.

Wikipedia technical help [show]

Get personal technical help at the Teahouse, help desk, village pump (technical), talk pages or IRC.

Browser notes (Bypass cache · Keyboard shortcuts) · Editing (CharInsert ·


Edit conflict · Edit toolbar · Reverting) · How to create a page · IRC (Tutorial) ·
General
Mobile access · Multilingual support · Page history · Page information · Page name
technical help
(Help) · Printing · Software notices (Editnotice) · Special Characters (Entering) ·
User access levels · VisualEditor (Help)
Special page help · AllPages · Edit filter · Emailing users · Logging in
(Reset passwords) · Logs · Moving a page (History merging ·
Special Non-admin and admin-only page moves) · Notifications/Echo (FAQ) ·
page-related Page Curation · Page import · Pending changes · Random pages · Recent changes
· Related changes · Searching (Linksearch) · Tags · User contributions · Watchlist ·
What links here
Wikitext (Cheatsheet) · Columns · Line-break handling · Lists · Magic words
(For beginners · Conditional expressions · Switch parser function · Time function) ·
Wikitext Redirects · Sections and TOCs · Tables (Introduction · Basics ·
Advanced table formatting · Collapsing · Conditional tables · Sortable tables) ·
Using colours
Links (Interlanguage · Interwiki · Permanent) · Diffs (Simplest diff guide ·
Links and diffs Simple diff and link guide · Complete diff and link guide) · Colon trick · Link color ·
Pipe trick · URLs
Media help · Files (Creation and usage · Moving files to Commons) · Images
(Introduction to images · Picture tutorial · Preparing images for upload ·
Media files: images, Uploading images · Options to hide an image · Extended image syntax · SVG help)
videos and sounds · Gallery tag · Graphics tutorials (Basic bitmap image editing ·
How to improve image quality · Graphics Lab resources) · Sound file markup ·
Visual file markup
Family trees · Graphs and charts (How to create · Barcharts · To scale charts) ·
Other graphics Math formulas (Math symbols) · Musical scores (Musical symbols) · Timeline
(EasyTimeline syntax) · WikiHiero syntax

4 of 5 7/24/2024, 8:55 PM
Help:Printing - Wikipedia https://en.wikipedia.org/wiki/Help:Printing

Templates · Advanced template coding · Template documentation · Template index


Templates and · Template limits · Template sandbox and test cases · Citation templates · Lua help
Lua modules · Lua project (Resources · To do) · Substitution · Purge (Job queue) · Transclusion
(Labeled section · Costs and benefits) · Guide to Scribbling
Namespaces · Main/Article · Category · Draft · File (File description page) · Help ·
Portal · Project/Wikipedia · Talk (Archiving (Simple)) · Template · User
Data structure
(User page design) · MediaWiki (Bug reports and feature requests ·
TimedMediaHandler extension) · Module · Special
Cascading Style Sheets · HTML in wikitext · Catalogue of CSS classes ·
HTML and CSS Common.js and common.css · User CSS for monospaced coding font ·
Classes in microformats · Markup validation · Span tags · Useful styles
Preferences · Gadgets · Skins · Citation tools · Cleaning up vandalism tools ·
Customizing watchlists (Hide pages) · IRC Scripts · User scripts (Guide · List ·
Customisation
Techniques) · User style · Tools (Alternative browsing · Browser tools · Editing tools
and tools
· Navigation shortcuts · Optimum tool set) · Wikimedia Cloud Services ·
Beta Features at MediaWiki
AfC helper script · AntiVandal · AutoWikiBrowser · Bots (Creating · history) · HotCat
Automated editing · Huggle · Navigation popups · RedWarn · Twinkle · Ultraviolet · WPCleaner ·
Inactive (igloo · STiki)

See also: Category:Wikipedia how-to · Category:Wikipedia information pages


Further navigation at: Help pages (Administrators) · Accessibility · Accounts · Bots · Referencing
(Citation metadata) · Templates · User scripts

Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Printing&oldid=1235610728"

5 of 5 7/24/2024, 8:55 PM

You might also like