This is the template sandbox page for Template:Wikibullet (diff). See also the companion subpage for test cases. |
This template supplies a "noprint" class bulleted item.
Authors of templates which provide bulleted items such as search links are responsible for applying an informed and judicious use of HTML classes noprint.
Applicable attributes include
Templates that apply these attributes include, for example {{selfref}} and {{nomirror}}.
For example, the output of the {{intitle}} or {{lookfrom}} are self-references in article space. In other namespaces, such as this one, a search link is not a self reference, and may need to be printed.
Markup{{wikibullet | {{intitle}} }}
{{wikibullet | {{lookfrom}}}}
{{wikibullet | {{search link| Wikipedia: intitle: "external links" }}}}
Renders as
There is no standard way to print preview from your browser, but the menu items and keyboard shortcuts will include print preview. In Firefox and Internet Explorer, choose "Print preview" in the File menu; in Google Chrome, press ctrl+P. |
Print previews as
Defaults to a noprint bullet. Otherwise you can write
|bullet=no
and |print=yes
.
For good spacing in the rendering on screen or paper place noprint bullets at the top or bottom of bullet list, not in the middle: The spacing in the screen version and print versions are slightly different. The discrepancy between the screen and normal bullets, begins to show after three bullets: see columns two and three. The same discrepancy does not show in print. The column labeled "Wrong" does not space well in print.
good
Footer |
Good
Footer |
Good
Footer |
Good Footer |
Wrong
Footer |
It goes at the beginning of a line. The first parameter as the bullet item. For example,
the search link template ''intitle'':
* Item 1
* Item 2
{{wikibullet | {{intitle}} | selfreference}}
{{wikibullet | {{lookfrom}} | nomobile}}
Renders as: the search link template intitle:
{{Nomirror}} uses <span class="selfreference noprint">...</span>
.
{{Noprint}} uses <span class="selfreference noprint">...</span>
.
{{in title/sandbox}} uses span or div tags per inline or bulleted line
{{tlg}} applies span tags per parameters
What you tried
{{nomirror|'''Special searches'''
* {{In title|Wikipedia}}
* {{lookfrom|Wikipedia}}
}}
What you got
Span tags leaves a stray bullet in the print preview, unlike div tags.
What you type now
{{noprint | '''Special searches'''
{{wikibullet | {{In title|Wikipedia}}
{{wikibullet | {{lookfrom|Wikipedia}}
}}
Now what you get
A print preview of this page will now hide the bullet list under Now what you get.