Template:Spaced en dash
(重定向自Template:Spaced ndash)
–
模板文档
fatal JSON error: mw.text.jsonDecode: 语法错误{"params": {},"description": "This is the '''spaced en dash''' template; it renders like this (without the quote marks): \" – \" \nIt 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 en dash), and a normal space (which ''will'' line-break and ''will'' collapse together with normal spaces that come after the template).\nAmong 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 <code>class=\"hlist\"</code> instead (see WP:HLIST). Here, the recommended usage is to use ''no'' space before the template and one space after the template, like this:\n::'"`UNIQ--nowiki-00000002-QINU`"'\n:This will render one space on each side of the dash, like this:\n::Salt – Pepper\n:A line break will come ''after'' one of the dashes, not before, when the spacing is used as suggested, like this:\n::Salt – Pepper –\n::Curry – Saffron"}
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 · , · , ·, 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
· | middot |
· | bold {{middot}} |
• | small bullet |
• | {{bullet}} |
• | bold bullet |
– | {{en dash}} |
— | {{em dash}} |
参见
🔥 Top keywords: Baike: 首页Special:搜索国际劳动节淚之女王劳动节九龍城寨之圍城2024年湯姆斯盃2024年優霸盃不夠善良的我們背着善宰跑金智媛逆天奇案2春色寄情人金秀賢 (男演員)邊佑錫福建號航空母艦城市猎人 (2024年电影)梅龙高速公路习近平九龍寨城陳耀祥破墓城市猎人笑看風雲六四事件排球少年!!排球少年!!角色列表與鳳行承欢记Seventeen (組合)支配物种劉俊謙 (香港)許瑋甯ILLIT宁安如梦鈴木亮平BABYMONSTER孫綻媽祖中华人民共和国朴成焄周雨彤无用的谎言中華民國張文傑金惠奫周處除三害 (電影)赵长鹏怪獸8號BOYNEXTDOOR李主儐第二十条白鹿 (演員)國道三號崩塌事故澄碧邨乘風2024幕府將軍 (2024年電視劇)哈里·R·杜鲁门李美淑阿努纳奇比利小子特技玩家活塞男事件李现葬送的芙莉蓮IVE (組合)林依晨日本五月天帝國浩劫:美國內戰(G)I-DLEP站末日愚者夜限照相馆三流之路打天下2机动战士GUNDAM SEED FREEDOM張惠東草榴社区三体 (小说)香港鄧麗君迷宮飯NewJeansEnergy (組合)徐巧芯逆天奇案為美好的世界獻上祝福!姜濤搜查班長1958吉伊卡哇張書偉謝京穎艾爾頓·冼拿賀軍翔毛泽东少年歌行轉生為第七王子,隨心所欲的魔法學習之路木村文乃