Difference between revisions of "Template:Zero width space/doc"
m (1 revision imported) |
|||
Line 3: | Line 3: | ||
{{Template shortcut|zwsp|0ws}} | {{Template shortcut|zwsp|0ws}} | ||
− | {{tl|Zwsp}} inserts the code {{code|​}} literally, which produces a {{unichar|200B|Zero width space|nlink=Zero width space}} in the rendered wiki-page. | + | {{tl|Zwsp}} inserts the code {{code|​}} literally, which produces a {{unichar|200B|Zero width space|nlink=w:Zero width space}} in the rendered wiki-page. |
===Usage=== | ===Usage=== | ||
− | This is a convenience template for the zero-width space character, U+200B ( | + | This is a convenience template for the zero-width space character, U+200B (<code>&#x200B;</code>). <br> |
It is completely invisible in display, but has the effect of acting as a multi-line breaking point for text inside a word that otherwise would not break. Whitespace and normal dashes (-) are already multi-line breakpoints, but this template allows the special insertion of invisible breakpoints inside words. | It is completely invisible in display, but has the effect of acting as a multi-line breaking point for text inside a word that otherwise would not break. Whitespace and normal dashes (-) are already multi-line breakpoints, but this template allows the special insertion of invisible breakpoints inside words. | ||
Line 12: | Line 12: | ||
===See also=== | ===See also=== | ||
− | |||
* {{tl|Shy}} Soft hyphen, appears only if text is wrapped mid-word at specified point | * {{tl|Shy}} Soft hyphen, appears only if text is wrapped mid-word at specified point | ||
* {{tl|Nbhyph}} No-break hyphen | * {{tl|Nbhyph}} No-break hyphen | ||
+ | |||
{{Inline spacing templates}} | {{Inline spacing templates}} | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES BELOW THIS LINE, PLEASE: --> | <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> | ||
− | [[Category: | + | [[Category:Character-substitution templates]] |
[[Category:Inline spacing templates]] | [[Category:Inline spacing templates]] | ||
</includeonly> | </includeonly> |
Latest revision as of 00:30, 21 January 2018
This is a documentation subpage for Template:Zero width space. It contains usage information, categories and other content that is not part of the original template page. |
{{Zwsp}} inserts the code
literally, which produces a U+200B zero width space in the rendered wiki-page.
Usage[edit]
This is a convenience template for the zero-width space character, U+200B (​
).
It is completely invisible in display, but has the effect of acting as a multi-line breaking point for text inside a word that otherwise would not break. Whitespace and normal dashes (-) are already multi-line breakpoints, but this template allows the special insertion of invisible breakpoints inside words.
The zero-width space character has a higher breaking priority than the dash character (-), so when using it in a phrase with dashes, it is recommended to place a zero-width space immediately after each dash as well.