Template:Zero width joiner/doc
This is a documentation subpage for Template:Zero width joiner. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 325,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
The template {{zero width joiner}} inserts the code ‍
, producing a U+200D 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 {{no-break space}}
except is immaterial and does not display on the page.
Usage
[edit]This template can be used, for example, to prevent text to wrap as in:
- something that needs a citation
‹The template Fake citation needed is being considered for merging.› [citation needed]
Inserting {{zero width joiner}}
between the text and the tag produces instead:
- A zero width joiner‹The template Fake citation needed is being considered for merging.› [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 ‍
in wikimarkup.
TemplateData
[edit]TemplateData for Zero width joiner
Inserts a zero-width joiner character
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
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