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 ({{code|&#x200B;}}). <br>
+
This is a convenience template for the zero-width space character, U+200B (<code>&amp;#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|Wj}}
 
 
* {{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:Wikipedia character-substitution templates]]
+
[[Category:Character-substitution templates]]
 
[[Category:Inline spacing templates]]
 
[[Category:Inline spacing templates]]
 
</includeonly>
 
</includeonly>

Latest revision as of 00:30, 21 January 2018

{{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 (&#x200B;).
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.

See also[edit]

  • {{Shy}} Soft hyphen, appears only if text is wrapped mid-word at specified point
  • {{Nbhyph}} No-break hyphen