Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(add small bold middot to reference (the supposed justification for using bullet instead, for small fonts - I can't see a difference))
m (table ordering, formatting tweaks)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<includeonly>{{template doc page transcluded}}</includeonly>
<noinclude>{{template doc page viewed directly}}</noinclude>

<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character. Usage: <nowiki>{{·}} or {{middot}}</nowiki>
A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character. Usage: <nowiki>{{·}} or {{middot}}</nowiki>
Line 14: Line 14:
; Reference
; Reference
{| style="text-align:center;"
{| style="text-align:center;"
|width="20px"| <small>·</small>
|style="width:1.7em;"| <small>·</small> ||align="left"| <nowiki><small></nowiki> middot</tr>
|align="left"| <nowiki><small></nowiki> middot </tr>
| · ||align="left"| middot</tr>
| · ||align="left"| middot </tr>
| <small>'''·'''</small> ||align="left"| <nowiki><small></nowiki> bold middot</tr>
| '''·''' ||align="left"| bold middot </tr>
| '''·''' ||align="left"| bold middot</tr>
| <small>'''·'''</small> ||align="left"| <nowiki><small></nowiki> bold middot </tr>
| <small></small> ||align="left"| <nowiki><small></nowiki> bullet</tr>
| <small></small> ||align="left"| <nowiki><small></nowiki> bullet</tr>
| • ||align="left"| bullet</tr>
| • ||align="left"| bullet </tr>
| '''''' ||align="left"| bold bullet</tr>
| '''•''' ||align="left"| bold bullet </tr>
|}
|}


Line 31: Line 30:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Formatting templates| ]] <!-- Note, this is used because the middot symbol would appear by itself at the end of the list, instead of, say, as a symbol -->
[[Category:Formatting templates| ]] <!--The blank-space indexing is used otherwise the middot symbol would appear by itself at the end of the list, instead of, say, as a symbol-->


<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->

Revision as of 03:50, May 19, 2007

Template:Template doc page viewed directly A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character. Usage: {{·}} or {{middot}}

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 1 · item 2 · item 3 · item 4
Reference
· <small> middot
· middot
· <small> bold middot
· bold middot
<small> bullet
bullet
bold bullet

See also