Difference between revisions of "Help:Printable"

From lensowiki
Jump to: navigation, search
(Fixed capitalization of template name.)
 
(Fixed capitalization of template name.)
 
(No difference)

Latest revision as of 08:12, 27 November 2005

 

Printers

If you use the default skin ("Monobook"), MediaWiki uses Cascading Style Sheets in order to specify the style and layout of the printable version of a page. In modern browsers, the print function of the browser should automatically select this style sheet when you print an article -- hence the "Print" command of your web browser is normally all you need to know.

If you are using other, older skins such as the "Standard" skin, you can get a printable version of a page using the "Printable version" link, or by adding the text "&printable=yes" to the URL, e.g.

http://meta.wikimedia.org/w/wiki.phtml?title=Help:Template&printable=yes

You create a URL to the printable version of the current page with:

{{SERVER}}{{localurl:{{PAGENAME}}|printable=yes}}

which displays:

http://www.lensovet.net/~sysadmin/w/index.php?title=Printable&printable=yes

Screen

To view a print optimized version of a page one can provide "&printable=yes" in the URL, e.g.

http://meta.wikimedia.org/w/wiki.phtml?title=Help:Template&printable=yes

This does not work with Monobook and Myskin (hence it also does not work when not logged in). The other skins have a link to this URL. Printing an ordinary page should also automatically print this version, even though it is not on the screen. To see it on the screen, use the Print Preview feature of your browser. However, this is not quite the same: depending on your print settings, it may include page numbers, etc.

CSS

http://meta.wikimedia.org/style/wikiprintable.css :

/* MediaWiki print stylesheet */

body {
 color: #000000; background: #ffffff;
}


/* MSIE/Win doesn't understand 'inherit' */
a, a.external, a.new, a.stub {
 color: black ! important;
	text-decoration: none ! important;
}
#article {
	margin: 0 ! important;
}

/* Continue ... */
a, a.external, a.new, a.stub {
	color: inherit ! important;
	text-decoration: inherit ! important;
}

/* Hide ugly UI stuff */
#quickbar, #topbar, #footer, #siteNotice,
.editsection, .toctoggle {
	display: none;
}

/* */
#article {
	position: relative;
	margin: inherit ! important;
}

/* Show some stuff */
.urlexpansion {
	display: inline ! important;
}

.printfooter {
	border-top: solid 1px black;
	display: block ! important;
}

/* Old stuff, fixme:
.bodytext { }
a.CBlink { color: #0000AA; text-decoration: none; font-size: 12pt; }
a.interwiki, a.external { color: #3333BB; text-decoration: none; }
h1.pagetitle { padding-bottom: 0; margin-bottom: 0; }
i.link, u.link { color: #000066; }
p.subtitle { padding-top: 0; margin-top: 0; }
*/
http://www.fayeunrauphotography.com/ kjøp cialis 520853 http://www.primetermites.com/ ジェネリックバイアグラ 5575 http://www.witch-ring.com/Generic-Viagra/ Comprando viagra sfnjy http://www.flweaver.com/ online Cialis kmt http://www.blogdemoteros.com/ tadalafil 5271