Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (some rephrasing... Reorganization into simpler how-to-use followed by further information/rationale probably now due)
m (Added interwikis)
Line 33:
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[hica:TemplatePlantilla:·]]
[[cy:Nodyn:·]]
[[da:Skabelon:·]]
[[es:Plantilla:·]]
[[fr:Modèle:·]]
[[hi:साँचा:·]]
[[hu:Sablon:·]]
[[id:Templat:·]]
[[ku:Şablon:·]]
<!-- [[lt:Šablonas:·]] doesn't include the &nbsp; -->
[[lv:Veidne:·]]
[[ms:Templat:·]]
[[nl:Sjabloon:·]]
[[nn:Mal:·]]
<!-- [[no:Mal:·]] doesn't include the &nbsp; -->
[[pt:Predefinição:·]]
[[ro:Format:·]]
[[simple:Template:·]]
[[sl:Predloga:·]]
[[sq:Stampa:·]]
[[su:Citakan:·]]
<!-- [[tr:Şablon:·]] doesn't include the &nbsp; -->
[[uk:Шаблон:·]]
 
</includeonly>

Revision as of 16:04, May 24, 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. {{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 (&nbsp;) 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 &nbsp;• (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

See also