Difference between revisions of "Template:Dot/doc"
From Roll20 Wiki
m |
Andreas J. (Talk | contribs) m |
||
Line 22: | Line 22: | ||
[[Category:Character-substitution templates]] | [[Category:Character-substitution templates]] | ||
[[Category:Inline spacing templates]] | [[Category:Inline spacing templates]] | ||
+ | [[Category:Formatting Templates]] | ||
</includeonly> | </includeonly> |
Latest revision as of 07:48, 9 June 2024
This is a documentation subpage for Dot. It contains usage information, categories and other content that is not part of the original template page. |
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.
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 · 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 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.
[edit] 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.