Difference between revisions of "Template:Awrap"

From blackwiki
Jump to navigation Jump to search
imported>Watchduck
imported>Watchduck
Line 3: Line 3:
 
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>
 
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>
  
{{awrap|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.}}
+
{{awrap|{{color|blue|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.}}
+
{{awrap|{{color|green|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:28, 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.