Template:·/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
m +interwiki de |
display problems in FF, when using with italics in navboxes put it ''within the italics'' |
||
Line 1:
{{template doc page}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This is the '''bold middot''' template, it looks like this: " '''·''' ".
It works similarly to the html+wiki markup sequence "<code>'''&nbsp;<nowiki>'''
{{tl|dot}} and {{tl|middot}} redirect here and can be used as alternative names for this template.
Line 41:
:[[Salt]] '''·''' [[Pepper]] '''·'''
:[[Curry]] '''·''' [[Saffron]]
When using the template to separate words in italics in navboxes (typically lists of artworks), put it ''within the italics'' to display with proper spacing on both sides: compare
<nowiki>''[[Salt]]''{{·}} ''[[Pepper]]''</nowiki>
<nowiki>''[[Salt]]{{·}} [[Pepper]]''</nowiki>
<div style="font-size:90%">
''[[Salt]]''{{·}} ''[[Pepper]]'' <br>
''[[Salt]]{{·}} [[Pepper]]''
</div>
(This also improves code brevity and clarity.)
===Usage issues===
Putting one or more spaces before the template will cause it to render differently, like these examples:
<nowiki>[[Salt]] {{·}}[[Pepper]]</nowiki>
Line 55 ⟶ 68:
:[[Salt]]
:'''·''' [[Pepper]]
Alternatively an &nbsp; can be added before and after the template to create extra padding around the middot.
Line 64 ⟶ 76:
The space after the dot is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space.
The NBSP causes some display problems on [[Mozilla Firefox]], with the content occasionally sticking of the (nav)box's right edge; a way to bypass it is to use [[template:nowrap]] or directly a span with white-space:nowrap.
=== Dot size reference list ===
Line 108 ⟶ 122:
* {{tn|nowraplinks}} - Prevents wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
* {{tn|nowrap begin}} - Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex long link lists.
<includeonly>
Line 143 ⟶ 156:
[[tr:Şablon:·]]
[[uk:Шаблон:·]]
</includeonly>
|