Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
Line 42: Line 42:
:[[Curry]] '''·''' [[Saffron]]
:[[Curry]] '''·''' [[Saffron]]


===Incorrect usage===
===Usage issues===
Putting one or more spaces before the template will cause it to render differently, like these examples:
If the template is used slightly wrongly, it will in some cases still behave well. For instance if there are no or several spaces after the template. Like these examples:

<nowiki>[[Salt]]{{&middot;}}[[Pepper]]</nowiki>
<nowiki>[[Salt]]{{&middot;}} [[Pepper]]</nowiki>

Both of them will render exactly as before, with just one space on each side of the dot, like this:
:[[Salt]] '''&middot;''' [[Pepper]]

And it will still only line break ''after'' the dot, like this:
:[[Salt]] '''&middot;'''
:[[Pepper]]

But putting one or more spaces before the template will cause problems, like these examples:
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>
Line 67: Line 55:
:[[Salt]]
:[[Salt]]
:'''&middot;''' [[Pepper]]
:'''&middot;''' [[Pepper]]

<nowiki>Insert non-formatted text here</nowiki>

Alternatively an &amp;nbsp; can be added before and after the template to create extra padding around the middot.


=== Technical details ===
=== Technical details ===