Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
update documentation to reflect the revert to   for now
(Some minor fixes of the new documentation.)
(update documentation to reflect the revert to   for now)
Line 42:
=== Incorrect usage ===
 
If the template is used slightly wrong, it will in mostsome cases still behave well. For instance if there are no or several spaces after the template. Like these examples:
 
<nowiki>[[Salt]]{{&middot;}}[[Pepper]]</nowiki>
Line 60:
<nowiki>[[Salt]] {{&middot;}} [[Pepper]]</nowiki>
 
Then it will still only render justwith onetwo spacespaces onbefore eachthe sidedot, ofand theone dotafter, like this:
:[[Salt]] &nbsp;'''&middot;''' [[Pepper]]
 
But ifIf it line breaks it might break ''before'' the dot, like this:
:[[Salt]]
:'''&middot;''' [[Pepper]]
Line 69:
=== Technical details ===
 
The space before the dot is a "[[non-wrapping" but "collapsing"breaking space]]. That means it will not line break, but itand will not collapse together with normal spaces that come before the template to form one single space. It is not simply a <code>&amp;nbsp;</code> since that one will not collapse.
 
The space after the dot is a normal space. That is it wraps and it collapses.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu