Template:·/doc


 * Salt· Pepper
 * Salt· Pepper

(This also improves code brevity and clarity.)

Usage issues
Putting one or more spaces before the template will cause it to render differently, like these examples: Salt Pepper Salt  Pepper Salt Pepper Salt     Pepper

Then it will render with two spaces before the dot, and one after, like this:
 * Salt &middot; Pepper

And if it line breaks it might break before the dot, like this:
 * Salt
 * &middot; Pepper

Alternatively an  can be added before and after the template to create extra padding around the middot.

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 Line break handling explains when that happens and how to fix it.