Difference between revisions of "Template:Dot"

From JimboWiki
Jump to: navigation, search
 
Line 1: Line 1:
<span style="white-space:nowrap; font-weight:bold;">&nbsp;·</span>
+
<span style="white-space:nowrap; font-weight:bold;">&nbsp;·</span><noinclude>
<noinclude>
+
{{protected template}}
 
+
{{{{FULLPAGENAME}}/doc}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
<!-- Add cats and interwikis to the /doc subpage, not here! -->
A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character.
+
 
+
; Character used      : The divider/separator character used here is a bold middot ('''·''') as it usually appears less conspicuously than a bullet (•) or the vertical-line (&nbsp;|&nbsp;) but more visibly than a plain middot (·). (The vertical-line also resembles the uppercase letter "I", lowercase "l" or the upright parts of "h", "k", etc.)
+
 
+
; Linewrap management : The template prefixes the bold middot separator with a [[non-breaking space]] (&amp;nbsp;) so <code>{{tl|·}}</code> is meant to be suffixed to each item, as shown below. This prevents the separator being [[Word wrap|linewrapped]] to the starts of lines.
+
 
+
; <nowiki><small></nowiki> font-size alternative : For lists using a font-size 80% of normal font-size or less, <code>{{tl|·}}</code> becomes too small. Use <code><nowiki>&amp;nbsp;•</nowiki></code> (i.e. a non-breaking space followed by the bullet character) instead.
+
 
+
 
+
; 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
+
 
+
; Reference
+
{| style="text-align:center;"
+
|width="20px"| <small>·</small>
+
|align="left"| <nowiki><small></nowiki> middot </tr>
+
| ·                ||align="left"| middot      </tr>
+
| '''·'''          ||align="left"| bold middot </tr>
+
| <small>•</small> ||align="left"| <nowiki><small></nowiki> bullet</tr>
+
| •                ||align="left"| bullet      </tr>
+
| '''•'''          ||align="left"| bold bullet </tr>
+
|}
+
 
+
 
+
 
</noinclude>
 
</noinclude>

Revision as of 22:48, 20 March 2007

 · Template:Protected template

The template documentation below is transcluded from Template:Dot/doc [edit]

A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character.

Character used  
The divider/separator character used here is a bold middot (·) as it usually appears less conspicuously than a bullet (•) or the vertical-line ( | ) but more visibly than a plain middot (·). (The vertical-line also resembles the uppercase letter "I", lowercase "l" or the upright parts of "h", "k", etc.)
Linewrap management 
The template prefixes the bold middot separator with a non-breaking space (&nbsp;) so {{·}} is meant to be suffixed to each item, as shown below. This prevents the separator being linewrapped to the starts of lines.
<small> font-size alternative 
For lists using a font-size 80% of normal font-size or less, {{·}} becomes too small. Use &nbsp;• (i.e. a non-breaking space followed by the bullet character) instead.


Example 
Code:   item 1{{·}} item 2{{·}} item 3{{·}} item 4
Result:  item 1Template:· item 2Template:· item 3Template:· item 4
Reference
· <small> middot </tr> · middot </tr> · bold middot </tr> <small> bullet</tr> bullet </tr> bold bullet </tr>