Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Zero width space

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 15,000 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.

{{zwsp}} inserts the code​ literally, which produces aU+200B ZERO WIDTH SPACE in the rendered wiki-page.

Usage

This is a convenience template for the zero-width space character, U+200B (​ or​).

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

Non-breaking space characters
Breaking space characters
Non-character spaces
The abovedocumentation istranscluded fromTemplate:Zero width space/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Zero_width_space&oldid=1258883149"
Categories:
Hidden category:

[8]ページ先頭

©2009-2026 Movatter.jp