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: | Line 1: | ||
{{template doc page}} |
|||
<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 --> |
||
__NOTOC__ |
|||
This is the '''bold middot''' template, it looks like this: " '''·''' ". |
This is the '''bold middot''' template, it looks like this: " '''·''' ". |
||
It works similarly to the html+wiki markup sequence "<code>'''&nbsp;<nowiki>''' |
It works similarly to the html+wiki markup sequence "<code>'''&nbsp;<nowiki>'''&middot;'''</nowiki>''' </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. |
{{tl|dot}} and {{tl|middot}} redirect here and can be used as alternative names for this template. |
||
Line 41: | Line 41: | ||
:[[Salt]] '''·''' [[Pepper]] '''·''' |
:[[Salt]] '''·''' [[Pepper]] '''·''' |
||
:[[Curry]] '''·''' [[Saffron]] |
:[[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=== |
===Usage issues=== |
||
Putting one or more spaces before the template will cause it to render differently, like these examples: |
Putting one or more spaces before the template will cause it to render differently, like these examples: |
||
<nowiki>[[Salt]] {{·}}[[Pepper]]</nowiki> |
<nowiki>[[Salt]] {{·}}[[Pepper]]</nowiki> |
||
Line 55: | Line 68: | ||
:[[Salt]] |
:[[Salt]] |
||
:'''·''' [[Pepper]] |
:'''·''' [[Pepper]] |
||
Alternatively an &nbsp; can be added before and after the template to create extra padding around the middot. |
Alternatively an &nbsp; can be added before and after the template to create extra padding around the middot. |
||
Line 64: | Line 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 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 === |
=== Dot size reference list === |
||
Line 108: | Line 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|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. |
* {{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> |
<includeonly> |
||
Line 143: | Line 156: | ||
[[tr:Şablon:·]] |
[[tr:Şablon:·]] |
||
[[uk:Шаблон:·]] |
[[uk:Шаблон:·]] |
||
</includeonly> |
</includeonly> |