Template:Nowrap
{{{1}}}
Displays the given text normally, but ensures all text is displayed on a single line by treating it as a single "word" for the purposes of wrapping text onto new lines. In other words, the spacing and boundaries between punctuation in the content become ineligible to be points where the text wraps.
Note that the content will not wrap even if it is too wide to fit in the width of the page, so use with caution.
Syntax
{{Nowrap|content|optional css styles|class=optional css class}}
Examples
On desktop computers, the width of the browser window can be adjusted to see the no-wrap effect more clearly.
- Punctuation
Mana symbols in parentheses can wrap between the parentheses and the symbols. With {{nowrap}}, the full parenthesized content wraps as one word. At an appropriate screen width, compare:
Color identity can be colorless (
), white (
), blue (
), black (
), red (
) and green (
), or any mix.
vs.
Color identity can be colorless (
), white (
), blue (
), black (
), red (
) and green (
), or any mix.
(Font size increased to emphasize effect.)
The latter block with restricted wrapping is created with:
Color identity can be colorless {{nowrap|({{C}})}}, white {{nowrap|({{W}})}}, blue {{nowrap|({{U}})}}, black {{nowrap|({{B}})}}, red {{nowrap|({{R}})}} and green {{nowrap|({{G}})}}, or any mix.
- Multiple large uses
{{Nowrap|Once upon a time,|font-size:300%;}} {{nowrap|in a galaxy far, far away|color:blue;}}, {{nowrap|the quick brown fox jumped over the lazy dog|font-size:150%;}}, {{nowrap|and there was much rejoicing.}}
produces
Once upon a time, in a galaxy far, far away, the quick brown fox jumped over the lazy dog, and there was much rejoicing.
- Too-long content
{{Nowrap|This is the song that never ends, it goes on and on my friends, some people started singing it not knowing what it was...|font-size:200%; font-color:#440000;}}
produces
This is the song that never ends, it goes on and on my friends, some people started singing it not knowing what it was...