模板:Spaced en dash/doc
外觀
| 此頁面是Template:Spaced en dash的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
| 這是 Spaced en dash 模板的說明文件頁面。 本文件並不是為直接瀏覽而撰寫。若是其中使用了跨維基計畫連結,某些連結可能會顯示損毀。請勿將這些連結替換為硬編碼的頁面名稱或網址。 |
| 此模板不應在引用模板中使用,如Template:Cs1,因為其包含污染引用模板生成的COinS元數據的標記,參見維基百科中的COinS。 |
Template:Template shortcuts Template:Format TemplateData
| 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 Template:Bull, Template:Dot, Template:Middot, or – 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 Item1{{spaced en dash}} Item2{{spaced en dash}} Item3{{spaced en dash}} Item4{{spaced en dash}} Item5{{spaced en dash}} 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. | 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
[編輯]參見
[編輯]- Template:Tn, which produces a spaced bold interpunct ("middot"): " · "
- Template:Tn, which produces a spaced bullet-point: "Template:•"
- Template:Tn, which produces a spaced (forward-)slash: "Template:\"
{{en dash}}, which produces an (unspaced) en dash.{{em dash}}, which produces an (unspaced) em dash.