Template:Inline block/doc

Usage
The template creates an element—by default a —that has the CSS property. There is support for a range of common style properties as template parameters, and an all-purpose  parameter.

One intended use is to replace nowrap when coding templates with complex layout, which need to display differently on mobile and desktop. Like, it holds content together and avoids wrapping it where possible. However, if necessary, such as on small screens, the content will wrap.

Example of wrapping control
In each case the outline represents a width constraint, which might be affected by the user's screen size, other parts of the template, or both.

&ensp;&ensp;&ensp; &ensp;&ensp;&ensp; &ensp;&ensp;&ensp;

Here, each grey box and the text "Color of ..." are wrapped in templates. If had been used instead, there would be no visible difference in the first two cases. In the third case, however, the text would have been unable to wrap into the space available. On mobile, this might mean that a table or the whole article is forced to become horizontally scrollable.