Templates:Noprint

Find traditional instrumental music
Jump to: navigation, search


Usage[edit]

This template excludes text from an article when it is rendered into a digital document such as a PDF or DjVu file, or printed, either through the "Printable version" or the "Create a book" links on the side bar. It is used to hide elements that make no sense in print such as "Click the name of a town on the map for more details".

Where possible you can also use class="noprint" to any HTML block element, or span class="noprint" to an inline element, in order to hide that content from printing. This template is actually a shorthand for the latter option, and also applies {{trim}} to remove any extraneous whitespace from around it.

  • DO NOT use this on templates. Templates that need to be hidden from printing should be added to Exclude in print instead.
  • DO NOT use this on large sections that include headings (==This is a heading==). This will cause the edit link next to the heading to disappear.

Keep in mind that one of the stated goals of the project is to allow for pages to be printed and used by travelers while they are traveling. This template should only be used in cases, such as the example above, where leaving content in would cause confusion.

Examples[edit]

{{noprint|text to be hidden}}

Clear


{{noprint|1=text to be hidden}}

Clear

If the content that is being hidden contains an equals (=) sign, you will have to use noprint|1= instead of noprint|. Otherwise there is no difference between using and not using the 1= after the vertical line.

See also[edit]

  • {{Unprintworthy inline}} a.k.a. {{Nomirror}} – hides content from printing, and from mirroring
  • {{Hide in print}} – hides from "Create a book" feature but not normal printing; may not affect mirroring
  • Wikipedia self-reference templates – various templates (including many hatnotes and cross-reference templates) that are mostly unprintworthy and suppress printing of their content