Misplaced Pages

Template:·/doc: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:· Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 02:24, 10 November 2006 editDavid Kernow (talk | contribs)40,997 editsm formatting← Previous edit Latest revision as of 15:39, 24 December 2024 edit undoSbb (talk | contribs)Extended confirmed users, IP block exemptions9,543 edits Undid revision 1265001244 by Sbb (talk) can't add {{deprecated template}} to template page (no perms)Tag: Undo 
(167 intermediate revisions by 90 users not shown)
Line 1: Line 1:
{{Deprecated template|·|flatlist|date=August 2017|note=This template's use {{hl|for dotted lists}} is now '''deprecated'''. Use {{Tl|Flatlist}} or {{tl|hlist}} instead; see ].}}
<includeonly>:''This template documentation is ] from ]'' </span>]</includeonly>
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<includeonly>{{used in system}}</includeonly>
A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character. The divider/separator character used here is the <nowiki><small></nowiki> bullet (<small>•</small>) as it seems less obtrusive than its full-size version (•) or the vertical-line (&nbsp;|&nbsp;) &ndash; which resembles the uppercase letter "I", lowercase "l" or the upright parts of "h", "k", etc &ndash; but more effective than the middot (·), especially in smaller font sizes.
{{cascade-protected template}}
{{Template shortcuts |dot|middot|,}}
__NOTOC__


This is the '''bold middot''' template, which produces: " '''·''' ". It works similarly to the html+wiki markup sequence . That is, a ], a bolded middot and a normal space.
; Example : Code:&nbsp;&nbsp; <code><nowiki>item 1{{·}} item 2{{·}} item 3{{·}} item 4</nowiki></code><br>Result:&nbsp; item 1{{·}} item 2{{·}} item 3{{·}} item 4


This template is used when you want something smaller than a ] "•", or ] "–".
; Reference

{| style="text-align:center;"
This template's use for dotted lists is now '''deprecated'''. Use {{Tl|Flatlist}} or {{tl|hlist}} instead; see ].
|width="20px"| <small>·</small>

|align="left"| <nowiki><small></nowiki> middot
{| class="wikitable"
| style="text-align: center;" |Here's an example of how it's used
|- |-
| <p>Normally, in a real box these items would be links, but this is an example.</p> 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|item that won't attach to prior line unless it fits in the remaining space{{dot}}}} 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 <p>The space on the end makes sure the dot doesn't touch the edge of the box, either</p>
| · ||align="left"| middot
|- |}

| '''·''' ||align="left"| bold middot
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 '''<nowiki>{{</nowiki>bull}}''', '''<nowiki>{{</nowiki>dot}}''', '''<nowiki>{{</nowiki>middot}}''', or '''<nowiki>{{</nowiki>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 separator 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<nowiki>{{</nowiki>dot}} Item2<nowiki>{{</nowiki>dot}} Item3<nowiki>{{</nowiki>dot}} Item4<nowiki>{{</nowiki>dot}} Item5<nowiki>{{</nowiki>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.
|-

| <small>•</small>
== Technical details ==
|align="left"| <nowiki><small></nowiki> bullet
The space before the dot is a ]. That means it will not line break and will not collapse together with normal spaces that come before the template.
|-

| • ||align="left"| bullet
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.
|-

| '''•''' ||align="left"| bold bullet
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 ] explains when that happens and how to fix it.
|}

== Parameters ==
<TemplateData>{
"description": "Display a bold spaced middle dot (smaller than bullet)",
"params": {}
}</TemplateData>

== Redirects ==
* {{tl2|,}}
* {{tl2|dot}}
* {{tl2|middot}}

== Dot sizes ==
{{Dot size}}


== See also ==
There are several similar templates:
* {{tl|•}}, the bullet-point template used mostly for dotted lists that use small font sizes.
* {{tl|spndash}} (spaced ndash), which uses "en dash" character ("–", &amp;ndash;) to produce "&nbsp;– ".
* {{tl|\}}, for the occasional spaced (forward-)slash "&nbsp;/ " in lists.


<includeonly>{{sandbox other||
<!--Categories-->
] ]
]
}}</includeonly>

Latest revision as of 15:39, 24 December 2024

Template:· is deprecated. Please use Template:flatlist instead. This template's use for dotted lists is now deprecated. Use {{Flatlist}} or {{hlist}} instead; see WP:HLIST.
This is a documentation subpage for Template:·.
It may contain usage information, categories and other content that is not part of the original template page.
This template can only be edited by administrators because it is transcluded onto one or more cascade-protected pages.
Shortcuts


This is the bold middot template, which produces: " · ". It works similarly to the html+wiki markup sequence . 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 {{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 ··· Item2 · Item3 · Item4 · Item5 · extra item ········· item that won't attach to prior line unless it fits in the remaining space ·· A slightly longer item · KK · An obviously really even longer item that the dash will hang at its end · Item6 ·· Item7 · Item8 · Item9 · Item10 · Item11 · Item12 ·· Item13 · Item14 · Item15 · Item16 · Item17 · 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  • ,  · ,  · , 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 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 separator 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 Misplaced Pages:Line-break handling explains when that happens and how to fix it.

Parameters

Display a bold spaced middle dot (smaller than bullet)

Template parameters

ParameterDescriptionTypeStatus
No parameters specified

Redirects

Dot sizes

· middot
· bold {{middot}}
small bullet
{{bullet}}
bold bullet
{{en dash}}
{{em dash}}

See also

There are several similar templates:

  • {{}}, the bullet-point template used mostly for dotted lists that use small font sizes.
  • {{spndash}} (spaced ndash), which uses "en dash" character ("–", &ndash;) to produce " – ".
  • {{\}}, for the occasional spaced (forward-)slash " / " in lists.