Template:Print version

From LIMSWiki
Revision as of 23:46, 26 January 2018 by Shawndouglas (talk | contribs) (Protected "Template:Print version" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
[edit] [purge] Template documentation

This is the {{print version}} template.

It is used to make a template (or a part of a page or template) display different things when viewing a page online on the web versus when exporting the page as a PDF or book. This is useful when something doesn't render nicely as a PDF or book.

Usage

This template takes two parameters. Like this:

{{print version
| print = Code for the PDF and book version.
| web = Code for the online version.
}}

Here on this template page that renders this:

Code for the online version.

Note that this template shows the web version when printing directly from the web browser. The print version is only used when exporting as a PDF or book.

Technical details

This template uses the sub-template {{print version/web}} for parts of its functionality.

See also