Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(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: Line 14:
=== Normal usage ===
=== Normal usage ===


The recommended usage is to use ''no'' space before the template, a space ''can'' be used after the template, like this:
The recommended usage is to use ''no'' space before the template and one space after the template, like this:

<nowiki>[[Salt]]{{&middot;}}[[Pepper]]</nowiki>
Or like this:
<nowiki>[[Salt]]{{&middot;}} [[Pepper]]</nowiki>
<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>

Both examples will render one space on each side of the dot, like this:
:[[Salt]] '''&middot;''' [[Pepper]]
:[[Salt]] '''&middot;''' [[Pepper]]


Line 122: Line 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|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.
* {{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 link lists.
* [[Wikipedia:Line break handling]] - The how-to guide detailing how to handle line wrapping on Wikipedia.


<includeonly>
<includeonly>