Difference between revisions of "Template:Nowraplinks"
m (1 revision) |
Trombonista (talk | contribs) m |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span class="nowraplinks">{{#if:{{{1|}}}|{{{1}}}</span>|}}</includeonly> | <includeonly><span class="nowraplinks">{{#if:{{{1|}}}|{{{1}}}</span>|}}</includeonly><noinclude>{{Usage|1=This is a formatting template used to prevent word wraps (line breaks) inside links (links with spaces in them) and only allows word wraps between the links and in normal text. This is useful for instance for long link lists. It works similarly to [[Template:nowrap]] and [[Template:nowrap begin]]. | ||
The format for using this template is as follows:<br /> | |||
'''<pre>{{nowraplinks}} | |||
[[Sonichu|This link will not wrap]] - [[DIRTY CRAPPED BRIEFS|This link also won't wrap]] - | |||
[[Chris|And so on]] - But this sentence might word wrap. | |||
{{nowraplinks end}}</pre>''' | |||
- Displays:{{nowraplinks}} | |||
[[Sonichu|This link will not wrap]] - [[DIRTY CRAPPED BRIEFS|This link also won't wrap]] - | |||
[[Chris|And so on]] - But this sentence might word wrap. | |||
{{nowraplinks end}} | |||
The template prevents the text from breaking the up the words in the links. However, the unlinked sentences could break as usual. [[Template:nowraplinks end]] closes the formatting and the text afterward breaks as usual. | |||
}} | |||
[[Category:Formatting and function templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 12:35, 30 November 2010
Usage
These usage notes will not be included in articles bearing this template.
This is a formatting template used to prevent word wraps (line breaks) inside links (links with spaces in them) and only allows word wraps between the links and in normal text. This is useful for instance for long link lists. It works similarly to Template:nowrap and Template:nowrap begin.
The format for using this template is as follows:
{{nowraplinks}} [[Sonichu|This link will not wrap]] - [[DIRTY CRAPPED BRIEFS|This link also won't wrap]] - [[Chris|And so on]] - But this sentence might word wrap. {{nowraplinks end}}
- Displays:
This link will not wrap - This link also won't wrap - And so on - But this sentence might word wrap.
The template prevents the text from breaking the up the words in the links. However, the unlinked sentences could break as usual. Template:nowraplinks end closes the formatting and the text afterward breaks as usual.