Jump to content

From Noumenapedia

Template:Non breaking en dash/doc

__EXPECTED_UNCONNECTED_PAGE__

This template inserts the code <syntaxhighlight lang="text" class="" style="" inline="1">‍–‍</syntaxhighlight>, producing a U+2013 – <reserved-2013> (&ndash;) with a U+200D <reserved-200D> (&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 produces:

2020{{nbnd}}2022 → 2020‍–‍2022
1952{{nbndash}}1960 → 1952‍–‍1960
1860{{Non breaking en dash}}1865 → 1860‍–‍1865

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Non breaking en dash in articles based on its TemplateData.

TemplateData for Non breaking en dash

This template produces an EN DASH (–) with a U+200D ZERO WIDTH JOINER (‍) on each of its sides. This prevents a line break at the endash (–) character.

See also