Template:Nbb

From Angelina Jordan Wiki
Revision as of 00:56, 22 June 2024 by Dcljr (talk | contribs) (template created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

 – 

Documentation

This template puts a narrow non-breaking space ( ) before its input and a thin space ( ) after it. If no input is provided, it defaults to using an en dash (). This is the equivalent of using {{nnbsp}} before something and {{thsp}} after it.

The main use is in lists of items separated by a character like · or , where you don't want a line break just before one of the separator characters, otherwise it would look like the list is finished.

The name of the template is based on the phrase "no-break then break".

Usage

  • {{nbb}}

Place this in between whatever non-whitespace text you want to use it with.

Examples

  • A{{nbb}}B{{nbb}}C{{nbb}}…{{nbb}}X{{nbb}}Y{{nbb}}Z ⇒ A – B – C – D – E – F – G – H – I – J – K – L – M – N – O – P – Q – R – S – T – U – V – W – X – Y – Z
  • A{{nbb|·}}B{{nbb|·}}C{{nbb|·}}…{{nbb|·}}X{{nbb|·}}Y{{nbb|·}}Z ⇒ A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z

You might have to change the size of your browser window or "zoom in", or whatever is appropriate on your browser, to see the non-breaking effect.