Template:Spaced en dash/doc
Template:Strong for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 31,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This is the spaced en dash template; it renders like this (without the quote marks): " – "
It works similarly to the HTML markup sequence –
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 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 bold middot "·" or a bullet "•", but shorter than an em dash "—". For horizontal lists, use {{flatlist}} or class="hlist"
instead (see WP:HLIST). Here, the recommended usage is to use no space before the template and one space after the template, like this:
- [[Salt]]{{spaced en dash}} [[Pepper]]
- This will render one space on each side of the dash, like this:
- A line break will come after one of the dashes, not before, when the spacing is used as suggested, like this:
{{snd}}
is a handy synonym.
Here's an example of use for lists | |
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 {{bull}}, {{dot}}, {{middot}}, or {{spaced en dash}} and not have to insert the
|
Normally, in a real box these items would be links, but this is an example. Item1 – A – B – Item2 – Item3 – Item4 – Item5 – extra item – E – 1 – 2 – 3 – 4 – 5 – 6 – 7 – item that won't attach to prior line unless it fits in the remaining space – Q – A slightly longer item – KK – An obviously really even longer item that the dash will hang at its end – Item6 – C – Item7 – Item8 – Item9 – Item10 – Item11 – Item12 – D – Item13 – Item14 – Item15 – Item16 – Item17 – Item18The space on the end makes sure the dash doesn't touch the edge of the box, either |
Dot sizes
[source ke badlo]· | {{middot}} |
· | bold middot |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{ndash}} |
— | {{emdash}} |
See also
[source ke badlo]- {{·}}, which produces a spaced bold interpunct ("middot"): " · "
- {{•}}, which produces a spaced bullet-point: "
- "
- {{\}}, which produces a spaced (forward-)slash: " / "
- {{en dash}}, which produces an (unspaced) en dash.
- {{em dash}}, which produces an (unspaced) em dash.
Inserts a spaced en dash; it renders like this (without the quote marks): " – ".
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |