Template:Nbhy: Difference between revisions
(docs: fixed an oopsie, linked to related templates) |
m (docs: wording) |
||
| Line 15: | Line 15: | ||
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]] template. | ||
[[Category:Macro templates]]</noinclude> | [[Category:Macro templates]]</noinclude> | ||
Revision as of 14:53, 2 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
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 template.