Template:Non breaking en dash/doc
Kaonekelo
This is a documentation subpage for Template:Non breaking en dash. It may contain usage information, categories and other content that is not part of the original template page. |
This template inserts the code
, producing a U+2013 – EN DASH (–) within two U+200D ZERO-WIDTH JOINERS (‍), one each on both of its sides. This prevents line break at the endash.
‍–‍
Usage
[kulemba source]This can be used, for example, to prevent line break as in:
2020–2022 |
→ | 2020– 2022 |
Using {{nbnd}}
(or its aliases: {{nbndash}}
,{{Non breaking en dash}}
) between the years force to produce:
2020{{nbnd}}2022
→ 2020–20221952{{nbndash}}1960
→ 1952–19601860{{Non breaking en dash}}1865
→ 1860–1865
See also
[kulemba source]- {{·}}, which produces a spaced bold interpunct ("middot"): " ·"
- {{•}}, which produces a spaced bullet-point: " • "
- {{\}}, which produces a spaced (forward-)slash: " / "
- {{em dash}}, which produces an (unspaced) em dash: "—"
- {{en dash}}, which produces an (unspaced) en dash: "–"
- {{spaced en dash}}, which produces a non-breaking space, followed by an en dash, and then a breaking space: " – "
- {{spaced en dash space}}, which produces an en dash preceded and followed by a non-breaking space: " – "
- {{soft hyphen}}, which produces a soft hyphen to force a visible hyphen at the end of a long word if needed
- Non-breaking space
- User:Tony1/How to use hyphens and dashes