Template:·/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
m Using {{DEFAULTSORT:}} |
cleanup |
||
Line 4:
A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character. <code>{{tl|middot}}</code>, which redirects to this template, may also be used. Please note "Linewrap management" and the Example given below.
; Character used
; Linewrap management : The template prefixes the bold middot separator with a [[non-breaking space]] (&nbsp;) so <code>{{tl|·}}</code> is meant to be suffixed to each item, i.e. '''''without''''' a space between it and the preceeding item in the list, as shown below. This prevents the separator being [[Word wrap|linewrapped]] to the starts of lines.
;
; Example : Code:{{spaces|2}} <code><nowiki>item 1{{·}} item 2{{·}} item 3{{·}} item 4</nowiki></code><br>Result: item 1{{·}} item 2{{·}} item 3{{·}} item 4
; Reference
{| style="text-align:center; background:transparent;"
| style="width:1.7em;" | <small>·</small
|
|-
| <small>'''·'''</small> ||align="left"| <nowiki><small></nowiki> bold middot</tr>▼
| ·
| '''·''' ||align="left"| bold middot</tr>▼
| align="left" | middot
|-
| <small>'''·'''</small>
| '''•''' ||align="left"| bold bullet</tr>▼
|-
| '''·'''
|-
| <small>•</small>
| align="left" | <small> bullet
|-
| •
| align="left" | bullet
|-
| '''•'''
|}
Line 26 ⟶ 39:
* {{tl|ndash}}
* {{tl|mdash}}
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
|