Difference between revisions of "Template:Hide in print"
Shawndouglas (talk | contribs) (Added template to support citation documentation.) |
m (1 revision) |
Revision as of 15:29, 3 August 2011
Usage
This template simply returns the passed parameter. It can be used to exclude parts of a page (or template) in print versions.
Please note that the books functionality is still experimental. Hiding text in "PDF/book print" currently works different from hiding text for "normal printing". To hide something both in book and in normal printing, please use class="noprint" or {{noprint}}.
Please also note that this template has an unresolved bug such that it hides edit links from any included sections, see more information on this at Wikipedia. This means that using this template may inconvenience wikipedia editors. However, without the Hide in print wrapper, any printed book or PDF will include possibly unwanted parts. Therefore, please avoid using this template to hide sections.
Examples
{{hide in print|text to be hidden}}
|
{{hide in print|1=text to be hidden that uses an = sign}}
|
- Edit section link bug
<poem>{{hide in print|1=====hides edit link bug1====
If you can edit the section "hides edit link bug1" then one hide link bug has been resolved. Otherwise, the bug is still present.}}</poem>
|
The above boxed example produces the below unboxed result
hides edit link bug1
If you can edit the section "hides edit link bug1" then one hide link bug has been resolved. Otherwise, the bug is still present.
<poem>{{hide in print|1=text to be hidden that includes a section header
====hides edit link bug2====
If you can edit the section "hides edit link bug2" then a second possible hide link bug has been resolved. Otherwise, the bug is still present.}}</poem>
|
The above boxed example produces the below unboxed result
text to be hidden that includes a section header
hides edit link bug2
If you can edit the section "hides edit link bug2" then a second possible hide link bug has been resolved. Otherwise, the bug is still present.
See also
The above documentation is transcluded from Template:Hide in print/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |