Wikipedia:Non-breaking hyphen
{{essay|wp:nbhyphen|wp:nb-hyphen|wp:NBHYPHEN}}
This essay explains use of the non-breaking hyphen character ‑
, U+2011, coded by ‑
or ‑
. Once displayed in a page, the non-breaking hyphen can be copied into words, or abbreviations, so they will not wrap at the hyphen character, such as an interstate highway symbol, "I‑94", which would always wrap to the next line as a whole word.
Not allowed in calculations
Unlike the ASCII hyphen-minus character "-", the non-breaking hyphen character is typically rejected if used as a negative sign or minus sign in calculations:
::* Using hyphen for minus: {{#expr: 34 - 56}} → {{#expr: 34 - 56}}
::* Using non-breaking hyphen: {{#expr: 34 ‑ 56}} → {{#expr: 34 ‑ 56}}
::* Using
Similarly, PC pop-up calculators might typically reject the non-breaking hyphen as a character to be ignored, rather than as a form of minus sign.
Judge if worth possible confusion
When using a non-breaking hyphen, care must be taken to ensure whether other editors would understand the unusual nb-hyphen when used in typical text. Confusion can be eliminated by using the HTML character entity
Search will not match
Whether inserted directly or through use of the template {{tlx|nbh}}, the rendered character, although visually identical, or nearly so (compare:‑-), will not match any search using a standard ASCII hyphen-minus “-”. This is unlike the non-breaking space
- They prevent post-hyphen breaks.
- Nothing shows on the page.
- They are “invisible” to searches.
However, none of these can be used inside wikilinks interchangeably with a standard hyphen. While
See also
- wp:Calculation
- Unicode characters - list of thousands of character codes
- wp:Advanced text formatting
- wp:Advanced table formatting
- wp:Advanced article editing