Template:Bullet/doc: Difference between revisions
m Ensure categories are transcluded |
m Fix Wikipedia links |
||
| Line 1: | Line 1: | ||
<noinclude>{{documentation subpage}}</noinclude> | <noinclude>{{documentation subpage}}</noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
This is the '''bullet''' template, it looks like this: " • ". It works similarly to the html+wiki markup sequence ['''<code>&nbsp;<nowiki>&bull;</nowiki> </code>''']. That is, a [[ | This is the '''bullet''' template, it looks like this: " • ". It works similarly to the html+wiki markup sequence ['''<code>&nbsp;<nowiki>&bull;</nowiki> </code>''']. That is, a [[wikipedia:non-breaking space|non-breaking space]], a bullet and a normal space. | ||
== Technical details == | == Technical details == | ||
The space before the dot is a [[ | The space before the dot is a [[wikipedia:non-breaking space|non-breaking space]]. That means it will not line break and will not collapse together with normal spaces that come before the template. | ||
The space after the dot is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space. | The space after the dot is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space. | ||
Under some circumstances dotted link lists misbehave. They might get unexpected line wraps or they might expand outside the box they are enclosed in. The how-to guide [[ | Under some circumstances dotted link lists misbehave. They might get unexpected line wraps or they might expand outside the box they are enclosed in. The how-to guide [[wikipedia:Wikipedia:Line break handling|Wikipedia:Line break handling]] explains when that happens and how to fix it. | ||
<includeonly> | <includeonly> | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</includeonly> | </includeonly> | ||
Revision as of 06:23, 8 August 2024
This is the bullet template, it looks like this: " • ". It works similarly to the html+wiki markup sequence [ • ]. That is, a non-breaking space, a bullet and a normal space.
Technical details
The space before the dot is a non-breaking space. That means it will not line break and will not collapse together with normal spaces that come before the template.
The space after the dot is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space.
Under some circumstances dotted link lists misbehave. They might get unexpected line wraps or they might expand outside the box they are enclosed in. The how-to guide Wikipedia:Line break handling explains when that happens and how to fix it.