Help:Line-break handling: Difference between revisions

Content deleted Content added
<wbr> and soft hyphens: we don't need to summarize the talk discussion. All that's needed is pointing editors in the right direction.
<wbr> and soft hyphens: more on soft hyphens
Line 353:
Note that {{tag|wbr|o}} will not work inside {{tl|nowrap}}.
 
In many cases breaking up a word with a space would be inappropriate. [[Soft hyphenshyphen]]s createalso acreates word-break opportunityopportunities, but will add a hyphen rather than a space. TheIn codeother <code>&amp;shy;</code>words, a soft hyphen is employeda inhyphen theinserted sameinto mannera asword {{tag|wbr|o}}not asotherwise seenhyphenated, into be displayed or typeset only if it falls at the examplesend of a line of abovetext.
 
The code <code>&amp;shy;</code> is employed in the same manner as {{tag|wbr|o}}. For example:
 
{{markup
|<nowiki>This long German word Datenschutz&shy;erklärung breaks between its constituent parts "Datenschutz" and "erklärung".</nowiki>
|This long German word Datenschutz&shy;erklärung breaks between its constituent parts "Datenschutz" and "erklärung".
}}
 
Use of soft hyphens should be limited to special cases, usually involving [[Longest English words|very long words]] or narrow spaces (such as captions in [[infobox|infoboxes]] or other tight page layouts, or column labels in narrow tables). Widespread use of soft hyphens is strongly discouraged, because it makes the wikitext very difficult to read and to edit. For example:
Line 361 ⟶ 368:
|This Wikisource example is difficult to understand
}}
 
Consider instead using the {{tlx|shy}} template for such complex cases:
 
{{markup