Template:Nbhy: Difference between revisions
(docs: fixed an oopsie, linked to related templates) |
m (docs: linked to new nbwj template) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
==Related templates== | ==Related templates== | ||
If you want a general-purpose method of preventing a linebreak after any character, use the [[Template:Nbwj|non-breaking word joiner]]. | |||
To discourage the browser from placing a linebreak at a space character, you use a [[Template:Nbsp|non-breaking space]]. | To discourage the browser from placing a linebreak at a space character, you use a [[Template:Nbsp|non-breaking space]]. | ||
To indicate that a linebreak ''can'' be placed | To indicate that a linebreak ''can'' be placed somewhere it normally wouldn't be, you need the [[Template:Sbrk|soft break]] character. | ||
[[Category:Macro templates]]</noinclude> | [[Category:Macro templates]]</noinclude> | ||
Latest revision as of 18:19, 3 April 2026
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.