• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Zero width space

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 14,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Shortcuts
  • {{zwspTemplate:Zwsp}}
  • {{0wsTemplate:0ws}}

{{zwsp}} inserts the code ​ 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 (​ 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 hyphen}}
  • {{soft hyphen}} appears only if text is wrapped mid-word at specified point
  • {{word joiner}}
  • v
  • t
  • e
Inline spacing templates
Non-breaking space characters
  • {{figure space}}
  • {{hair space}}
  • {{narrow no-break space}}
  • {{five non-breaking spaces}}
  • {{ns}}
  • {{quad}}
  • {{spaces}}
  • {{thin space}}
  • {{word joiner}}
  • {{zero width joiner}}
Breaking space characters
  • {{sp}}
  • {{zero width space}}
Non-character spaces
  • {{gaps}}
  • {{indent 5}}
  • {{indent}}
  • {{pad}}
  • {{two pixel space}}
The above documentation is transcluded from Template:Zero width space/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (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"
Last edited on 22 November 2024, at 04:18

Languages

    • العربية
    • অসমীয়া
    • Basa Bali
    • বাংলা
    • Banjar
    • 閩南語 / Bân-lâm-gí
    • Беларуская
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Español
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • हिन्दी
    • Bahasa Indonesia
    • Magyar
    • മലയാളം
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Na Vosa Vakaviti
    • नेपाली
    • 日本語
    • Norsk bokmål
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Português
    • Română
    • Русский
    • Scots
    • සිංහල
    • Simple English
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Tagalog
    • တႆး
    • తెలుగు
    • ไทย
    • اردو
    • Tiếng Việt
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 22 November 2024, at 04:18 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop