Difference between revisions of "Template:Awrap"

From blackwiki
Jump to navigation Jump to search
imported>Watchduck
(Created page with '<span style="display: inline-block;">{{{1}}}</span><noinclude> Unlike {{tlx|nowrap}} this template only avoids line breaks, but does not forbid them.<br> So <cod...')
 
imported>Watchduck
Line 1: Line 1:
 
<span style="display: inline-block;">{{{1}}}</span><noinclude>
 
<span style="display: inline-block;">{{{1}}}</span><noinclude>
Unlike {{tlx|nowrap}} this template only avoids line breaks, but does not forbid them.<br>
+
Unlike {{tlx|nowrap}} this template only avoids line breaks, but does not forbid them. (The ''A'' stands for ''avoid''.)<br>
So <code>{{nowrap|Lorem ipsum...}}</code> will stay in the same line as long as the window is long enough for it, but break if not.<br>
+
So the text in this template will stay in the same line as long as the window is long enough for it, but break if not:<br>
The ''A'' stands for ''avoid''.
+
 
 +
{{awrap|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.}}
 +
{{awrap|Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium.}}
  
 
[[Category:Line-handling templates]]
 
[[Category:Line-handling templates]]
 
</noinclude>
 
</noinclude>

Revision as of 22:27, 20 September 2019

{{{1}}} Unlike {{nowrap}} this template only avoids line breaks, but does not forbid them. (The A stands for avoid.)
So the text in this template will stay in the same line as long as the window is long enough for it, but break if not:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium.