Template:Spaced en dash/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
113 revisions imported
(Convert to Format TemplateData.) |
m (113 revisions imported) |
||
(15 intermediate revisions by 14 users not shown) | |||
Line 3:
{{COinS safe|n}}
{{High-use| 30632 }}
{{Template
▲"This is the '''spaced en dash''' template; it renders like this (without the quote marks): \" – \"
It works similarly to the HTML markup sequence <code>'''&nbsp;&ndash;''' </code> i.e. a [[non-breaking space]] (which will not line-break and will not collapse together with normal spaces that come before the template), a short dash (known as an [[Dash#En dash|en dash]]), and a normal space (which ''will'' line-break and ''will'' collapse together with normal spaces that come after the template).
Among other uses, this template may be used in lists to provide something stronger than a [[Template:·|bold middot]]
::<nowiki>[[Salt]]{{spaced en dash}} [[Pepper]]</nowiki>
:This will render one space on each side of the dash, like this:
::[[Salt]] – [[Black pepper|Pepper]]
Line 16 ⟶ 13:
::[[Salt]] – [[Black pepper|Pepper]] –
::[[Curry]] – [[Saffron]]
{{t|snd}} is a handy synonym.▼
{| class="wikitable" style="border: none; background: none;"
|Colspan=2
|-
|| One use of template "spaced en dash" is within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of '''<nowiki>{{</nowiki>bull}}''', '''<nowiki>{{</nowiki>dot}}''', '''<nowiki>{{</nowiki>middot}}''', or '''<nowiki>{{</nowiki>spaced en dash}}''' and not have to insert the {{
| <p>Normally, in a real box these items would be links, but this is an example.</p> Item1{{spaced en dash}} A{{spaced en dash}} B{{spaced en dash}} Item2{{spaced en dash}} Item3{{spaced en dash}} Item4{{spaced en dash}} Item5{{spaced en dash}} extra item{{spaced en dash}} E{{spaced en dash}} 1{{spaced en dash}} 2{{spaced en dash}} 3{{spaced en dash}} 4{{spaced en dash}} 5{{spaced en dash}} 6{{spaced en dash}} 7{{spaced en dash}} {{nowrap|item that won't attach to prior line unless it fits in the remaining space{{spaced en dash}}}} Q{{spaced en dash}} A slightly longer item{{spaced en dash}} KK{{spaced en dash}} An obviously really even longer item that the dash will hang at its end{{spaced en dash}} Item6{{spaced en dash}} C{{spaced en dash}} Item7{{spaced en dash}} Item8{{spaced en dash}} Item9{{spaced en dash}} Item10{{spaced en dash}} Item11{{spaced en dash}} Item12{{spaced en dash}} D{{spaced en dash}} Item13{{spaced en dash}} Item14{{spaced en dash}} Item15{{spaced en dash}} Item16{{spaced en dash}} Item17{{spaced en dash}} Item18 <p>The space on the end makes sure the dash doesn't touch the edge of the box, either</p>
|}
== Dot sizes ==
{{Dot size}}
Line 33 ⟶ 30:
* {{tl|en dash}}, which produces an (unspaced) [[en dash]].
* {{tl|em dash}}, which produces an (unspaced) [[em dash]].
<includeonly>{{Sandbox other||
[[Category:Inline spacing templates]]
[[Category:Typing-aid templates|En dash, spaced]]
[[Category:
}}</includeonly>
<templatedata>
{
"params": {},
"description": "Inserts a spaced en dash; it renders like this (without the quote marks): \" – \"."
}
</templatedata>
|