साँचा:Dot/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:Dot
imported>K.Venkataramana द्वारा परिवर्तित १६:३९, २६ अक्टूबर २०१३ का अवतरण (नया पृष्ठ: {{Documentation subpage}} {{high-risk|400,000+}} {{tsh|dot|middot|,}} __NOTOC__ This is the '''bold middot''' template, it looks like this: " '''·''' ". It works...)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} साँचा:high-risk साँचा:tsh

This is the bold middot template, it looks like this: " · ". It works similarly to the html+wiki markup sequence [&nbsp;<b>&middot;</b> ]. That is, a non-breaking space, a bolded middot and a normal space.

This template is used when you want something smaller than a bullet "•", or ndash "–".

This template's use for dotted lists is now deprecated. Use {{Flatlist}} or class="hlist" instead; see WP:HLIST.


Here's an example of how it's used

Normally, in a real box these items would be links, but this is an example.

Item1साँचा:dot Aसाँचा:dot Bसाँचा:dot Item2साँचा:dot Item3साँचा:dot Item4साँचा:dot Item5साँचा:dot extra itemसाँचा:dot Eसाँचा:dot 1साँचा:dot 2साँचा:dot 3साँचा:dot 4साँचा:dot 5साँचा:dot 6साँचा:dot 7साँचा:dot साँचा:nowrap Qसाँचा:dot A slightly longer itemसाँचा:dot KKसाँचा:dot An obviously really even longer item that the dash will hang at its endसाँचा:dot Item6साँचा:dot Cसाँचा:dot Item7साँचा:dot Item8साँचा:dot Item9साँचा:dot Item10साँचा:dot Item11साँचा:dot Item12साँचा:dot Dसाँचा:dot Item13साँचा:dot Item14साँचा:dot Item15साँचा:dot Item16साँचा:dot Item17साँचा:dot Item18

The space on the end makes sure the dot doesn't touch the edge of the box, either

Template Dot is not really intended to be used in article text; it's intended for use in other templates, tables, lists and other equivalent things, in order to include a separator between items such as in infoboxes. It's also to be consistent so that the article editor can use their choice of {{bull}}, {{dot}}, {{middot}}, or {{spaced ndash}} 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 bolded middot (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 dot 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 dot will fit. See the column on the right. In code it's Item1{{dot}} Item2{{dot}} Item3{{dot}} Item4{{dot}} Item5{{dot}} etc. (with some smaller items squeezed in to show that the list doesn't 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 symbol following.

Technical details

The space before the dot 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.

The space after the dot 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.

Under some circumstances dotted link lists misbehave. They might get unexpected line wraps or they might expand outside the box they are enclosed in. The how-to guide Wikipedia:Line break handling explains when that happens and how to fix it.

Parameters

Display a bold spaced middle dot (smaller than bullet)

साँचा प्राचल

प्राचलवर्णनप्रकारस्थिति
No parameters specified

Redirects

Dot sizes

साँचा:Dot size

See also

There are several similar templates: