Template:·/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
cleanup |
Some small additions to the documentation. |
||
Line 2: | Line 2: | ||
<noinclude>{{template doc page viewed directly}}</noinclude> |
<noinclude>{{template doc page viewed directly}}</noinclude> |
||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> |
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> |
||
This template looks like this " '''·''' ". |
|||
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. |
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. |
||
Line 14: | Line 17: | ||
; Reference |
; Reference |
||
{| style="text-align:center; background:transparent;" |
{| style="text-align:center; background:transparent;" |
||
| style="width:1.7em;" | <small> |
| style="width:1.7em;" | <small>·</small> |
||
| align="left" | <small> middot |
| align="left" | <small> middot |
||
|- |
|- |
||
| · |
|||
| · |
|||
| align="left" | middot |
| align="left" | middot |
||
|- |
|- |
||
| <small>''' |
| <small>'''·'''</small> |
||
| align="left" | <small> bold middot |
| align="left" | <small> bold middot |
||
|- |
|- |
||
| ''' |
| '''·''' |
||
| align="left" | bold middot |
| align="left" | bold middot |
||
|- |
|- |
||
| <small> |
| <small>•</small> |
||
| align="left" | <small> bullet |
| align="left" | <small> bullet |
||
|- |
|- |
||
| |
| • |
||
| align="left" | bullet |
| align="left" | bullet |
||
|- |
|- |
||
| ''' |
| '''•''' |
||
| align="left" | bold bullet |
| align="left" | bold bullet |
||
| |
|- |
||
⚫ | |||
| align="left" | ndash |
|||
|- |
|||
⚫ | |||
| align="left" | mdash |
|||
|} |
|||
== See also == |
== See also == |
||
⚫ | |||
There are several other templates with similar functionality: |
|||
⚫ | |||
* [[Template:•|<nowiki>{{•}}</nowiki>]] - Bullet "•" is mostly used for dotted lists that use small font sizes. |
|||
* [[Template:Ndash|<nowiki>{{ndash}}</nowiki>]] - Ndash "–" is a short dash. |
|||
* [[Template:Mdash|<nowiki>{{mdash}}</nowiki>]] - Mdash "—" is a long dash. |
|||
<includeonly> |
<includeonly> |
||
<!-- ADD CATEGORIES BELOW THIS LINE --> |
<!-- ADD CATEGORIES BELOW THIS LINE --> |
Revision as of 03:14, August 12, 2007
Template:Template doc page viewed directly
This template looks like this " · ".
A template intended to aid the creation of lists which are strings of items separated by a "divider" or "separator" character. {{middot}}
, which redirects to this template, may also be used. Please note "Linewrap management" and the Example given below.
- 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 ( ) so
{{·}}
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 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 •
(i.e. a non-breaking space followed by the bullet character) instead.
- Example
- Code:Template:Spaces
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 |
– | ndash |
— | mdash |
See also
There are several other templates with similar functionality:
- {{•}} - Bullet "•" is mostly used for dotted lists that use small font sizes.
- {{ndash}} - Ndash "–" is a short dash.
- {{mdash}} - Mdash "—" is a long dash.