Template:Space/doc

Purpose
This template inserts the specified number of non-breaking spaces (1 to 30) passed in parameter 1, as a string of "&amp;nbsp;" characters repeated.

Usage
Using {&#123;space}} (shortcut redirect: {&#123;s}} ) can be used inline to create alignment between adjacent text lines, or to space out titles, etc. Like indent, it takes a numeric argument nn (up to 30) after the pipe and provides that many consecutive spaces. Indent differs only in that it automatically begins a newline, then spaces over nn spaces.

Examples
,, etc.
 * The templates {&#123;space}} and {&#123;indent}} are limited to adding 30 spaces, and have a cost in pre-expansion template size, because their logic contains 30 sets of the counted spaces.

Better results, for indenting large sections, can frequently be gained by using template {&#123;nowrap}} aka {&#123;j}} to join text which should not wrap. Inserting leading white-space can also be denoted by using the HTML formatting, where "XX" is a numeric em value. Since browser design philosophy is to trim consecutive spaces, check the results also in different zoom settings, and on more than one browser if possible. One type is the Internet Explorer browser family.

History
Formerly, for six years, this template inserted strings of em-spaces or alternating non-breaking spaces "&amp;nbsp;" mixed with regular spaces " ". However, it was changed on 17 October 2011, to insert only continuous strings of non-breaking spaces, as in "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...". To insert a single wrappable (breaking) space, put "&amp;#32;" or use the template. To insert multiple wrapping spaces, use the interwiki template, to put 17 spaces which can wrap on narrowed windows.