Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 00:18, 17 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{Template shortcuts |nbnd|nbndash}} This template inserts the code {{code|‍–‍}}, producing a {{unichar|2013|nlink=|html=}} with a {{unichar|200D|nlink=|html=}} on each of its sides. This prevents line break at the endash. == Usage == This can be used, for example, to prevent line break as in: {| |- style="vertical-align: top;" |<code>2020–2022</code>|| → ||2020–<br/>2022 |} Using <code><nowiki>{{nbnd}}</nowiki></code> (o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template inserts the code &zwj;&ndash;&zwj;, producing a U+2013 EN DASH (&ndash;) with a U+200D ZERO WIDTH JOINER (&zwj;) on each of its sides. This prevents line break at the endash.

Usage

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‍–‍2022
1952{{nbndash}}1960 → 1952‍–‍1960
1860{{Non breaking en dash}}1865 → 1860‍–‍1865

See also