Difference between revisions of "Template:-!"

From CWCki
Jump to navigation Jump to search
m (Added documentation.)
(Added Usage. Recategorized as formatting template.)
 
Line 1: Line 1:
 |
&nbsp;|<noinclude>{{Usage|1=This template adds a non-breaking space followed by a pipe (<nowiki>|</nowiki>) character. It is useful in lists where a line break is only wanted after the pipe.
<noinclude>
 
{{documentation}}
For example, in the string <nowiki>"Item1 | Item2 | Item3"</nowiki> one probably does not want a line break between each pipe and its preceding space. This could be used to fix it: <nowiki>"Item1{{-!}} Item2{{-!}} Item3".</nowiki>
</noinclude>
 
The format for using this template is as follows:<br />
 
'''<pre>{{-!}}</pre>'''
 
 
- Displays:{{-!}}
 
 
'''<pre>Item1{{-!}} Item2{{-!}} Item3</pre>'''
 
- Displays:Item1{{-!}}Item2{{-!}}Item3}}
 
[[Category:Formatting and function templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 02:06, 30 November 2010

 |

Usage

These usage notes will not be included in articles bearing this template.

This template adds a non-breaking space followed by a pipe (|) character. It is useful in lists where a line break is only wanted after the pipe.

For example, in the string "Item1 | Item2 | Item3" one probably does not want a line break between each pipe and its preceding space. This could be used to fix it: "Item1{{-!}} Item2{{-!}} Item3".

The format for using this template is as follows:

{{-!}}


- Displays: |


Item1{{-!}} Item2{{-!}} Item3

- Displays:Item1 |Item2 |Item3