Template:Zero width joiner/doc
This is a documentation subpage for Template:Zero width joiner. It contains usage information, categories and other content that is not part of the original template page. |
The template {{zwj}} inserts the code
, producing a Zero-width joiner 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 ‍
except is immaterial and does not display on the page.
Usage
editThis template can be used, for example, to prevent text to wrap as in:
- something that needs a citation
Template:Fake citation needed
Inserting {{zwj}}
between the text and the tag produces instead:
- something that needs a citationTemplate:Fake citation needed
History
editThis 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
in wikimarkup.
‍