Difference between revisions of "Template:nowrap"

From LCA2015 Delegate wiki
Jump to: navigation, search
(Template so that images stay on the same line as their text.)
 
m (Added the template documentation, due to missing $wgNamespacesWithSubpages variable.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly><span style="white-space:nowrap;">{{{1}}}</span></includeonly><noinclude>
 
<includeonly><span style="white-space:nowrap;">{{{1}}}</span></includeonly><noinclude>
{{/doc}}
+
This template prevents text from wrapping as it does by default. This will cause the text to extending one line without being interrupted by line breaks. The template has only one parameter and that is the text it includes.
  
[[Category:Templates|N]]</noinclude>
+
===Example===
 +
<pre>{{Nowrap|This text won't wrap with the rest of the text.}}</pre>
 +
 
 +
[[Category:Markup Templates|N]]</noinclude>

Latest revision as of 04:52, 10 December 2014

This template prevents text from wrapping as it does by default. This will cause the text to extending one line without being interrupted by line breaks. The template has only one parameter and that is the text it includes.

Example

{{Nowrap|This text won't wrap with the rest of the text.}}