Template:Wikibullet/doc
This is a documentation subpage for Template:Wikibullet. It may contain usage information, categories and other content that is not part of the original template page. |
Purpose
[edit]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
- selfreference
- A direct reference to what is not content. These are stripped from some re-use of content.
- metadata
- A reference to content in the context of Wikipedia operations or maintenance; for example, references to status or maintenance categories or tags that are not content proper. These also are stripped from some re-use of content; for example, in print and in "extracts" they are removed, but not in "mobile".
- noprint
- Online-only elements. They make little or no sense in a paper or electronic facsimile of the online page. Online, the display elements with the "noprint" attribute are stripped from a print preview of page. For example, a button or other elements that require interactive actions in order to be useful.
- nomobile
- Hides things explicitly from the "mobile" medium. (No room for interpretation.)
- plainlinks
- Can, for example, hide this section's external-link [1] arrow icon as [2], or even disguised it as a wikilink.
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
Usage
[edit]Defaults to a noprint bullet. Otherwise you can write
|bullet=no
and |print=yes
.
- parameter one
- the bullet item, also noprint
- parameter two, three, and four
- the HTML classes
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:
- Item 1
- Item 2
Examples
[edit]{{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.