Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
display problems in FF, when using with italics in navboxes put it ''within the italics''
m (+interwiki de)
(display problems in FF, when using with italics in navboxes put it ''within the italics'')
Line 1:
{{template doc page}}
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
__NOTOC__
This is the '''bold middot''' template, it looks like this: " '''&middot;''' ".
 
It works similarly to the html+wiki markup sequence "<code>'''&amp;nbsp;<nowiki>'''</nowiki>&amp;middot;<nowiki>'''</nowiki>'''&nbsp;</code>". That is, a [[non-breaking space]], a bolded middot and a normal space.
 
{{tl|dot}} and {{tl|middot}} redirect here and can be used as alternative names for this template.
Line 41:
:[[Salt]] '''&middot;''' [[Pepper]] '''&middot;'''
:[[Curry]] '''&middot;''' [[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]]''{{&middot;}} ''[[Pepper]]''</nowiki>
<nowiki>''[[Salt]]{{&middot;}} [[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]] {{&middot;}}[[Pepper]]</nowiki>
Line 55 ⟶ 68:
:[[Salt]]
:'''&middot;''' [[Pepper]]
 
 
Alternatively an &amp;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>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu