Editing Template:·/doc
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{tsh|dot|middot}} | {{high-use|90,000+}} | ||
{{tsh|dot|middot|,}} | |||
__NOTOC__ | __NOTOC__ | ||
This is the '''bold middot''' template, it looks like this: " '''·''' ". It works similarly to the html+wiki markup sequence [<code>'''&nbsp;<nowiki><b>&middot;</b></nowiki>''' </code>]. That is, a non-breaking space, a bolded middot and a normal space. | This is the '''bold middot''' template, it looks like this: " '''·''' ". It works similarly to the html+wiki markup sequence [<code>'''&nbsp;<nowiki><b>&middot;</b></nowiki>''' </code>]. That is, a [[non-breaking space]], a bolded middot and a normal space. | ||
This template is used when you want something smaller than a [[Template:•|bullet]] "•", or [[Template:spaced ndash|ndash]] "–". | This template is used when you want something smaller than a [[Template:•|bullet]] "•", or [[Template:spaced ndash|ndash]] "–". | ||
This template's use for dotted lists is now '''deprecated'''. Use {{Tl|Flatlist}} or <code>class="hlist"</code> instead. | This template's use for dotted lists is now '''deprecated'''. Use {{Tl|Flatlist}} or <code>class="hlist"</code> instead; see [[WP:HLIST]]. | ||
{| class="wikitable" | {| class="wikitable" style="border: none; background: none;" | ||
|<center>Here's an example of how it's used</center> | |||
|- | |- | ||
| <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> | | <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> | ||
Line 18: | Line 19: | ||
== Technical details == | == 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 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. | 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 [[ | 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 == | == Parameters == | ||
Line 31: | Line 32: | ||
== Redirects == | == Redirects == | ||
* {{tl2|,}} | |||
* {{tl2|dot}} | * {{tl2|dot}} | ||
* {{tl2|middot}} | * {{tl2|middot}} | ||
Line 47: | Line 49: | ||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:Wikipedia formatting and function templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> |