Toggle menu
15
236
76
27.7K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Zero width space/doc: Difference between revisions

Template page
Prd (talk | contribs)
Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --> {{high-use}} {{Template shortcut|zwsp|0ws}} {{tl|zwsp}} inserts the code {{code|​}} literally, which produces a {{unichar|200B|Zero-width space|nlink=Zero-width space}} in the rendered wiki-page. === Usage === This is a convenience template for the zero-width space character, U+200B ({{code|​}} or {{code|​}}). It is invisible in display, but has the..."
 
(No difference)

Latest revision as of 06:13, 16 February 2025

Template:High-use

{{zwsp}} inserts the code &#x200B; literally, which produces a U+200B ZERO WIDTH SPACE in the rendered wiki-page.

Usage

This is a convenience template for the zero-width space character, U+200B (&#x200B; or &#8203;).

It is invisible in display, but has the effect of acting as a line-breaking point for text inside a word that otherwise would not break. Whitespace and normal dashes (-) are already line-break points, but this template allows the special insertion of invisible breakpoints inside words. A break at a zero-width space does not cause a hyphen (or anything else) to appear; use {{Soft hyphen}} if you want that.

The zero-width space character has a higher breaking priority than the hyphen character (-), so when using it in a phrase with hyphen, it is recommended to place a zero-width space immediately after each hyphen as well.

There are two ways to use this template:

  • With no arguments, i.e. {{zwsp}}, this produces a single zero-width space character
  • With one or more arguments, e.g. {{zwsp|this|is|a|test}}, the arguments are rendered separated by zero-width spaces. This reduces the amount of typing if several zero-width space characters are needed in rapid succession.

See also