<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ASoft_hyphen%2Fdoc</id>
	<title>Template:Soft hyphen/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ASoft_hyphen%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Soft_hyphen/doc&amp;action=history"/>
	<updated>2026-05-14T19:28:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Soft_hyphen/doc&amp;diff=40655&amp;oldid=prev</id>
		<title>imported&gt;Matma Rex: /* Alternative syntax */ add: &quot;Avoid enclosing longer phrases or entire sentences, as that makes text difficult to edit in the visual editor.&quot;</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Soft_hyphen/doc&amp;diff=40655&amp;oldid=prev"/>
		<updated>2022-10-26T19:09:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Alternative syntax: &lt;/span&gt; add: &amp;quot;Avoid enclosing longer phrases or entire sentences, as that makes text difficult to edit in the visual editor.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Template shortcut|shy|SHY}}&lt;br /&gt;
{{lua|Module:Separated entries}}&lt;br /&gt;
&lt;br /&gt;
== Function ==&lt;br /&gt;
&lt;br /&gt;
This template inserts {{code|&amp;amp;shy;}}, which is a {{unichar|00ad|SOFT HYPHEN|nlink=Soft hyphen|html=}}.&lt;br /&gt;
A soft hyphen is an &amp;quot;optional&amp;quot; hyphen{{nbsp}}{{en dash}} a point at which a word &amp;#039;&amp;#039;may&amp;#039;&amp;#039; be broken over the end of a line, with a visible hyphen inserted at line end. The ultimate decision as to whether a particular word will be broken is made by the browser, and depends on a combination of text-layout [[heuristic]]s, user preferences set in the browser, and hyphenation options embedded in the page being displayed. (Different browsers apply different heuristics, and some browsers ignore soft hyphens completely.)&lt;br /&gt;
&lt;br /&gt;
==Adding formatting==&lt;br /&gt;
If you want to add italic or bold (or other) formatting to the whole word contained within this template, it is recommended that you place the formatting &amp;#039;&amp;#039;outside&amp;#039;&amp;#039; of the template. Although placing the formatting inside the template does work, editors and cleanup scripts may think it is an error and &amp;quot;fix&amp;quot; it incorrectly.&lt;br /&gt;
&lt;br /&gt;
Do {{tick}} this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;{{Soft hyphen|ital|icized}}&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
instead of {{cross}} this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Soft hyphen|&amp;#039;&amp;#039;ital|icized&amp;#039;&amp;#039;}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to format only a portion of a word, for emphasis or styling, wrap one of the template parameters, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Soft hyphen|&amp;#039;&amp;#039;ital&amp;#039;&amp;#039;|icized}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
===Individual insertions===&lt;br /&gt;
&lt;br /&gt;
Soft hyphens have been inserted in the following text, like this:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;super{{shy}}califrag{{shy}}ilistic{{shy}}expiali{{shy}}docious&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;antidis{{shy}}establish{{shy}}mentarian{{shy}}ism&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pneumono{{shy}}ultra{{shy}}micro{{shy}}scopic{{shy}}silico{{shy}}volcano{{shy}}conioses&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;wocka{{shy}}wocka{{shy}}wocka{{shy}}wocka{{shy}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The effect will usually be visible when zooming your browser and/or adjusting the width of its window. &amp;#039;&amp;#039;Most&amp;#039;&amp;#039; browser configurations will cause this long string to be broken, using hyphens, over multiple lines:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
[[Pac Man]] goes &amp;#039;&amp;#039;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka&amp;amp;shy;wocka.&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Many or most&amp;#039;&amp;#039; browser configurations will break long words in the passage below using hyphens{{zero width joiner em dash zero width non joiner}}whether and where will vary from browser to browser, and may depend on local settings and preferences:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
[[Mary Poppins (character)|Mary Poppins]], [[Church of England|religious officials]], and [[epidemiology|epidemiologists]] say&lt;br /&gt;
[[Supercalifragilisticexpialidocious | super{{shy}}califrag{{shy}}ilistic{{shy}}expiali{{shy}}docious]]&lt;br /&gt;
[[antidisestablishmentarianism | antidis{{shy}}establish{{shy}}mentarian{{shy}}ism]]&lt;br /&gt;
[[pneumonoultramicroscopicsilicovolcanoconioses | pneumono{{shy}}ultra{{shy}}micro{{shy}}scopic{{shy}}silico{{shy}}volcano{{shy}}conioses]]&lt;br /&gt;
super{{shy}}califrag{{shy}}ilistic{{shy}}expiali{{shy}}docious&lt;br /&gt;
antidis{{shy}}establish{{shy}}mentarian{{shy}}ism&lt;br /&gt;
pneumono{{shy}}ultra{{shy}}micro{{shy}}scopic{{shy}}silico{{shy}}volcano{{shy}}conioses&lt;br /&gt;
super{{shy}}califrag{{shy}}ilistic{{shy}}expiali{{shy}}docious&lt;br /&gt;
antidis{{shy}}establish{{shy}}mentarian{{shy}}ism&lt;br /&gt;
pneumono{{shy}}ultra{{shy}}micro{{shy}}scopic{{shy}}silico{{shy}}volcano{{shy}}conioses&lt;br /&gt;
super{{shy}}califrag{{shy}}ilistic{{shy}}expiali{{shy}}docious&lt;br /&gt;
antidis{{shy}}establish{{shy}}mentarian{{shy}}ism&lt;br /&gt;
pneumono{{shy}}ultra{{shy}}micro{{shy}}scopic{{shy}}silico{{shy}}volcano{{shy}}conioses&lt;br /&gt;
super{{shy}}califrag{{shy}}ilistic{{shy}}expiali{{shy}}docious&lt;br /&gt;
antidis{{shy}}establish{{shy}}mentarian{{shy}}ism&lt;br /&gt;
pneumono{{shy}}ultra{{shy}}micro{{shy}}scopic{{shy}}silico{{shy}}volcano{{shy}}conioses.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Alternative syntax===&lt;br /&gt;
&lt;br /&gt;
A word or phrase is enclosed within a single &amp;quot;shy&amp;quot;, with each &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt; being a potential hyphenation point:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Mary Poppins sings {{shy|super|califrag|ilistic|expiali|docious}} as she dances.&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Avoid enclosing longer phrases or entire sentences, as that makes text difficult to edit in the visual editor.&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Insert an optional hyphen – a point at which a word may be broken over the end of a line, with a visible hyphen inserted at line end.\n\nWhen parameters are specified, they are displayed in order, separated by optional hyphens. Any number of parameters can be used.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Fragment 1&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Fragment 2&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Fragment 3&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Fragment 4&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Fragment 5&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* {{tlx|Non breaking hyphen}}&lt;br /&gt;
* {{tlx|Zero width space}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please: --&amp;gt;&lt;br /&gt;
[[Category:Character-substitution templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Matma Rex</name></author>
	</entry>
</feed>