Template:Zero width joiner/doc

From MOASSpedia
< Template:Zero width joiner
Revision as of 16:08, 10 September 2020 by Wikipedia>Funandtrvl (add category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The template {{zero width joiner}} inserts the code &zwj;, producing a U+200D ZERO-WIDTH JOINER (HTML &#8205;⧼dot-separator⧽ &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 {{no-break space}} &nbsp; except is immaterial and does not display on the page.

Usage

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

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Zero width joiner

Inserts a zero-width joiner character

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified

See also