Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
updating
No edit summary
(updating)
Line 4:
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 seemsusually appears less obtrusiveconspicuously than a bullet (•) or the vertical-line ( | ) but more substantialvisibly 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.
 
The character is preceded by a [[non-breaking space]] (&amp;nbsp;) so the template may be used as shown below (i.e. '''''suffixed''''' to each item) to prevent the character being [[Word wrap|linewrapped]] to the starts of lines, thereby compromising a list's appearance.
 
; 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu