<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ASpaced_ndash%2Fdoc</id>
	<title>Template:Spaced ndash/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ASpaced_ndash%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Spaced_ndash/doc&amp;action=history"/>
	<updated>2026-07-17T23:15:26Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Template:Spaced_ndash/doc&amp;diff=1851886&amp;oldid=prev</id>
		<title>imported&gt;Addbot：​Bot: Migrating interwiki links, now provided by Wikidata on d:q10951766</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Spaced_ndash/doc&amp;diff=1851886&amp;oldid=prev"/>
		<updated>2013-08-23T15:28:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=User:Addbot&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Addbot（页面不存在）&quot;&gt;Bot&lt;/a&gt;: Migrating interwiki links, now provided by &lt;a href=&quot;/index.php?title=D:&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;D:（页面不存在）&quot;&gt;Wikidata&lt;/a&gt; on &lt;a href=&quot;/index.php?title=D:q10951766&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;D:q10951766（页面不存在）&quot;&gt;d:q10951766&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!-- 在這裡加入模板的保護標識 --&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{template doc page viewed directly}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- 在本行下編輯模板說明 --&amp;gt;&lt;br /&gt;
== 模板介紹 ==&lt;br /&gt;
This is the &amp;#039;&amp;#039;&amp;#039;spaced ndash&amp;#039;&amp;#039;&amp;#039; template; it looks like this &amp;quot; &amp;amp;ndash; &amp;quot;. &lt;br /&gt;
&lt;br /&gt;
It works similarly to the HTML markup sequence &amp;quot;&amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;amp;amp;nbsp;&amp;amp;amp;ndash;&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;lt;/code&amp;gt;&amp;quot;. That is, a [[non-breaking space]], a short dash (known as an [[Dash#En dash|en dash]]) and a normal space. &lt;br /&gt;
&lt;br /&gt;
This template is used when you want something stronger than a [[Template:·|bold middot]] &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;amp;middot;&amp;#039;&amp;#039;&amp;#039;&amp;quot; or a [[Template:•|bullet]] &amp;quot;&amp;amp;bull;&amp;quot;, but shorter than an [[Dash#Em dash|em dash]] &amp;quot;&amp;amp;mdash;&amp;quot;. (An en dash is half the width of an em dash).&lt;br /&gt;
&lt;br /&gt;
For horizontal lists use {{tl|Flatlist}} or &amp;lt;code&amp;gt;class=&amp;quot;hlist&amp;quot;&amp;lt;/code&amp;gt; instead (see [[WP:HLIST]]).&lt;br /&gt;
&lt;br /&gt;
==模板简写==&lt;br /&gt;
{{tl|snd}}、{{tl|spnd}}、{{tl|sndash}}和{{tl|spndash}}重定向至{{tl|spaced ndash}}。&lt;br /&gt;
&lt;br /&gt;
== 使用方法 ==&lt;br /&gt;
&lt;br /&gt;
The recommended usage is to use &amp;#039;&amp;#039;no&amp;#039;&amp;#039; space before the template and one space after the template, like this:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]{{spaced ndash}} [[Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will render one space on each side of the dash, like this:&lt;br /&gt;
:[[Salt]] &amp;amp;ndash; [[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
A line break will come &amp;#039;&amp;#039;after&amp;#039;&amp;#039; one of the dashes, not before, when the spacing is used as suggested, like this:&lt;br /&gt;
:[[Salt]] &amp;amp;ndash; [[Black pepper|Pepper]] &amp;amp;ndash;&lt;br /&gt;
:[[Curry]] &amp;amp;ndash; [[Saffron]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;border: none; background: none;&amp;quot;&lt;br /&gt;
|Colspan=2 |&amp;lt;center&amp;gt;Here&amp;#039;s an example of how it is used&amp;lt;/center&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|| Template &amp;quot;Spaced ndash&amp;quot; is not really intended to be used in article text but for use in other templates, tables, lists, and other equivalent things in order to include a separator between items such as in infoboxes. It is also to be consistent so that the article editor can use their choice of &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;bull}}&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;dot}}&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;middot}}&amp;#039;&amp;#039;&amp;#039;, or  &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;spaced ndash}}&amp;#039;&amp;#039;&amp;#039; and not have to insert the {{bull}}, {{dot}}, {{middot}}, or {{spaced ndash}} symbol, they can use any of these as a simple macro. The idea being that if you have a table with a list of items, you can insert a spaced short dash (or the other symbols) between items that will appear correct, in that the items always have just one separator between them, and when a list crawls to the next line, the dash hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the symbol hangs on the end of the last item that will fit on the line indicating that additional items follow on the next line as part of this list, but the item only stays on the line if the item and the dash will fit.  See the column on the right.  In code it is &amp;#039;&amp;#039;&amp;#039; Item1&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;spaced ndash}} Item2&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;spaced ndash}} Item3&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;spaced ndash}} Item4&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;spaced ndash}} Item5&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;spaced ndash}}&amp;#039;&amp;#039;&amp;#039; etc. (with some smaller items squeezed in to show that the list does not have to be the same number of items per line) but in the box they all fold perfectly once it runs out of space on the line to fit the next item and the dash following.&lt;br /&gt;
| &amp;lt;p&amp;gt;Normally, in a real box these items would be links, but this is an example.&amp;lt;/p&amp;gt; Item1{{spaced ndash}} A{{spaced ndash}} B{{spaced ndash}} Item2{{spaced ndash}} Item3{{spaced ndash}} Item4{{spaced ndash}} Item5{{spaced ndash}} extra item{{spaced ndash}} E{{spaced ndash}} 1{{spaced ndash}} 2{{spaced ndash}} 3{{spaced ndash}} 4{{spaced ndash}} 5{{spaced ndash}} 6{{spaced ndash}} 7{{spaced ndash}} {{nowrap|item that won&amp;#039;t attach to prior line unless it fits in the remaining space{{spaced ndash}}}} Q{{spaced ndash}} A slightly longer item{{spaced ndash}} KK{{spaced ndash}} An obviously really even longer item that the dash will hang at its end{{spaced ndash}} Item6{{spaced ndash}} C{{spaced ndash}} Item7{{spaced ndash}} Item8{{spaced ndash}} Item9{{spaced ndash}} Item10{{spaced ndash}} Item11{{spaced ndash}} Item12{{spaced ndash}} D{{spaced ndash}} Item13{{spaced ndash}} Item14{{spaced ndash}} Item15{{spaced ndash}} Item16{{spaced ndash}} Item17{{spaced ndash}} Item18 &amp;lt;p&amp;gt;The space on the end makes sure the dash doesn&amp;#039;t touch the edge of the box, either&amp;lt;/p&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Incorrect usage==&lt;br /&gt;
If the template is used slightly wrong it will in some cases still behave well. For instance if there are no or several spaces after the template. Like these examples:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]{{spaced ndash}}[[Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]{{spaced ndash}}   [[Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both of them will render exactly as before, with just one space on each side of the dash, like this:&lt;br /&gt;
:[[Salt]] &amp;amp;ndash; [[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
And it will still only line break &amp;#039;&amp;#039;after&amp;#039;&amp;#039; a dash, like this:&lt;br /&gt;
:[[Salt]] &amp;amp;ndash;&lt;br /&gt;
:[[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
But putting one or more spaces &amp;#039;&amp;#039;before&amp;#039;&amp;#039; the template will cause problems, like these examples:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]] {{spaced ndash}}[[Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]   {{spaced ndash}}[[Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]] {{spaced ndash}} [[Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]   {{spaced ndash}}   [[Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then it will render with &amp;#039;&amp;#039;two&amp;#039;&amp;#039; spaces before the dash, and one after, like this:&lt;br /&gt;
:[[Salt]] &amp;amp;nbsp;&amp;amp;ndash; [[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
And if it line breaks it might break &amp;#039;&amp;#039;before&amp;#039;&amp;#039; the dash, like this:&lt;br /&gt;
:[[Salt]]&lt;br /&gt;
:&amp;amp;nbsp;&amp;amp;ndash; [[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
Also, this template should &amp;#039;&amp;#039;not&amp;#039;&amp;#039; routinely be used in regular article text and certainly not where an [[em dash]] would be more appropriate. As a rule, this template should not be used between clauses of a sentence.&lt;br /&gt;
&lt;br /&gt;
Because Wikipedia suppresses the contents of templates in tool tip preview when the user hovers the pointer over a Wikilink, one should avoid using the Spaced ndash and Ndash templates in an article&amp;#039;s lead section. Using the template will cause a confusing blank space to appear in the tool tip preview instead of the expected en dash character.  Instead, use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;amp;nbsp;&amp;amp;amp;ndash; &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;amp;nbsp;– &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and be sure to add the trailing space.&lt;br /&gt;
&lt;br /&gt;
==Technical details==&lt;br /&gt;
The space before the dash is a [[non-breaking space]]. That means it will not line break and will not collapse together with normal spaces that come before the template.&lt;br /&gt;
&lt;br /&gt;
The space after the dash is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space.&lt;br /&gt;
&lt;br /&gt;
==Dot sizes==&lt;br /&gt;
{{Dot size}}&lt;br /&gt;
&lt;br /&gt;
== 範例 ==&lt;br /&gt;
&lt;br /&gt;
== 注意事项 ==&lt;br /&gt;
&lt;br /&gt;
== 參見 ==&lt;br /&gt;
There are several other templates with similar functionality:&lt;br /&gt;
&lt;br /&gt;
* {{tn|·}} – Bold middot &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;amp;middot;&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
* {{tn|•}} – Bullet &amp;quot;&amp;amp;bull;&amp;quot;&lt;br /&gt;
* {{tl2|\}} – Spaced slash &amp;quot;/&amp;quot;&lt;br /&gt;
* {{tl2|-!}} – Spaced pipe &amp;quot;|&amp;quot;&lt;br /&gt;
* &amp;amp;amp;minus; – Minus &amp;quot;&amp;amp;minus;&amp;quot; is a mathematical symbol&lt;br /&gt;
* {{tl|Ndash}} – Ndash &amp;quot;&amp;amp;ndash;&amp;quot; is a plain en dash&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- 本行下加入模板的分類 --&amp;gt;&lt;br /&gt;
[[Category:格式模板]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- 本行下加入模板的跨語言鏈接 --&amp;gt;&lt;br /&gt;
[[bn:টেমপ্লেট:Ndash]]&lt;br /&gt;
[[en:Template:Spaced ndash]]&lt;br /&gt;
[[ru:Шаблон:ndash]]&lt;br /&gt;
[[tr:Şablon:&amp;amp;ndash;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Addbot</name></author>
	</entry>
</feed>