Jump to content

Template:Nbhy: Difference between revisions

docs: fixed an oopsie, linked to related templates
(Created page with "<includeonly>‑</includeonly><noinclude> The '''non-breaking hyphen''' template provides a special hyphen in the text indicating that it should not be possible to break the line on said space. This is useful when writing text that includes a command-line option. Here, a normal hyphen is used: {| border=1 style="width:600px;" |To search for the dialogue sound with ID 03_12_01, run the OniSplit command <code>-export:03_12_01 dest_dir level3_Final.dat</code>. |} Not...")
 
(docs: fixed an oopsie, linked to related templates)
 
Line 1: Line 1:
<includeonly>&#x2011;</includeonly><noinclude>
<includeonly>&#x2011;</includeonly><noinclude>
The '''non-breaking hyphen''' template provides a special hyphen in the text indicating that it should not be possible to break the line on said space. This is useful when writing text that includes a command-line option. Here, a normal hyphen is used:
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:


{| border=1 style="width:600px;"
{| border=1 style="width:600px;"
Line 11: Line 11:
|To search for the dialogue sound with ID 03_12_01, run the OniSplit command <code>{{nbhy}}export:03_12_01 dest_dir level3_Final.dat</code>.
|To search for the dialogue sound with ID 03_12_01, run the OniSplit command <code>{{nbhy}}export:03_12_01 dest_dir level3_Final.dat</code>.
|}
|}
==Related templates==
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 at a space character, you need the [[Template:Sbrk|soft break]] template.


[[Category:Macro templates]]</noinclude>
[[Category:Macro templates]]</noinclude>