Template:Nbhy

Revision as of 18:19, 3 April 2026 by Iritscen (talk | contribs) (docs: linked to new nbwj template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The non-breaking hyphen template provides a special hyphen indicating that it should not be considered an appropriate place to put a linebreak. This is useful when writing text that includes a command-line option. Here, a normal hyphen is used:

To search for the dialogue sound with ID 03_12_01, run the OniSplit command -export:03_12_01 dest_dir level3_Final.dat.

Note how awkward that looks, plus the reader may miss the hyphen when copy-pasting it. This version uses a call to this template for the hyphen:

To search for the dialogue sound with ID 03_12_01, run the OniSplit command ‑export:03_12_01 dest_dir level3_Final.dat.

Related templates

If you want a general-purpose method of preventing a linebreak after any character, use the non-breaking word joiner.

To discourage the browser from placing a linebreak at a space character, you use a non-breaking space.

To indicate that a linebreak can be placed somewhere it normally wouldn't be, you need the soft break character.