Template:Nbwj

From OniGalore
Revision as of 18:16, 3 April 2026 by Iritscen (talk | contribs) (Created page with "<includeonly>⁠</includeonly><noinclude> The '''non-breaking word joiner''' template provides a special invisible character indicating that it should not be considered an appropriate place to put a linebreak. This is useful when writing text that would normally have an unwelcome linebreak placed in it by the browser. For example here is what happens when parenthesized text is placed inside quotes and hits the end of the line: {| border=1 style="width:600px;" |Clic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The non-breaking word joiner template provides a special invisible character indicating that it should not be considered an appropriate place to put a linebreak. This is useful when writing text that would normally have an unwelcome linebreak placed in it by the browser. For example here is what happens when parenthesized text is placed inside quotes and hits the end of the line:

Click on "What links here": you should see a list of pages, each one probably followed by "(transclusion)".

Note how awkward that looks with a dangling quote mark. This version uses a call to this template before the opening parenthesis:

Click on "What links here": you should see a list of pages, each one probably followed by "⁠(transclusion)".

Related templates

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

To prevent a linebreak from happening after a hyphen, you could either use this template or make use of the special non-breaking hyphen.

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