Template:Nbhy

From OniGalore
Revision as of 02:44, 1 April 2026 by Iritscen (talk | contribs) (docs: fixed an oopsie, linked to related templates)
(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

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 at a space character, you need the soft break template.