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

Template:Zero width joiner/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Zero width joiner
This is the template sandbox page for Template:Zero width joiner (diff).
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 3,700 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.
Shortcut
  • {{zwjTemplate:Zwj}}

The template {{zero width joiner}} inserts the code &zwj;, producing a U+200D ZERO WIDTH JOINER (&zwj;) in the rendered wiki-page. This invisibly 'sews together' two words as if they were a single word, preventing their separation at line breaks. It acts as a {{non-breaking space}} &nbsp; except that it is immaterial and does not display on the page.

Contents

  • 1 Usage
  • 2 History
  • 3 TemplateData
  • 4 See also

Usage

edit

This template can be used, for example, to prevent text to wrap as in:

something that needs a citation
[citation needed]

Inserting {{zero width joiner}} between the text and the tag produces instead:

A zero width joiner‍[citation needed]

History

edit

This template used to employ code of the older "Zero-width non-breaking space" that is now outdated, as of Unicode 3.2. Though Unicode suggests a word joiner instead, zero-width joiner does practically the same thing and better matches the already-existing {{zwnj}}. An alternative is to simply use the HTML code &zwj; in wikimarkup.

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Zero width joiner in articles based on its TemplateData.

TemplateData for Zero width joiner

Inserts a zero-width joiner character

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified

See also

edit
  • {{Non breaking hyphen}}
  • {{Soft hyphen}}
  • {{Zwnj}} – zero width non-joiner, allows two pieces of text to wrap when they otherwise wouldn't
  • 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 joiner/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Zero_width_joiner/sandbox&oldid=848269235"
Last edited on 30 June 2018, at 21:35

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 30 June 2018, at 21:35 (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