Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Clarified the "Normal usage" example. "See also": Added Wikipedia:Line break handling.
(Moved to the new "Category:Wikipedia formatting templates" and fixed sort order. Changed to simpler template links.)
(Clarified the "Normal usage" example. "See also": Added Wikipedia:Line break handling.)
Line 14:
=== Normal usage ===
 
The recommended usage is to use ''no'' space before the template, aand one space ''can'' be used after the template, like this:
 
<nowiki>[[Salt]]{{&middot;}}[[Pepper]]</nowiki>
Or like this:
<nowiki>[[Salt]]{{&middot;}} [[Pepper]]</nowiki>
 
The template can also be used with no space after it, but then the code does not wrap in the edit window thus making editing harder. Like this:
It will render one space on each side of the dot, like this:
 
<nowiki>[[Salt]]{{&middot;}}[[Pepper]]</nowiki>
 
ItBoth examples will render one space on each side of the dot, like this:
:[[Salt]] '''&middot;''' [[Pepper]]
 
Line 122 ⟶ 125:
 
* {{tl|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.
* {{tl|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.
* [[Wikipedia:Line break handling]] - The how-to guide detailing how to handle line wrapping on Wikipedia.
 
<includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu