Template:Space/doc

These templates alternate HTML and unicode acceptable variations of ways to declaring spaces, forcing browsers to recognize each in turn, when their rendering would normally compact and eliminate successive spaces. In short, they force padding within, before, or after a field which includes them in a line (which in practice, is usually within a wikitable, to force alignments of long and short words, such as month names, etc.)

Usage
Note this is common usage for &#123;{Space}&#125; and the derivative templates (in the set: {S & SP, S2, S3, S4, S5 }) of which those with a numeric suffix {S2, S3, S4, S5} (i.e. excepting S & SP which are just short-names of &#123;{Space}&#125;) should be used when they work as well (most times) because &#123;{Space}&#125; [and therefore 'S' or 'SP'] is a large template and could cause pre-expansion template limits to be exceeded on some pages.
 * Furthermore, those, unlike &#123;{Space}&#125; will substitute well. Subst'ing &#123;{Space}&#125; gives something of a mess.
 * Space, on the other hand can expand to 30 logical spaces (What you get will depend on browser, font selections, etc.).

This Space template 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' 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 space and indent are limited to adding 30 spaces, and have a large-ish cost in pre-expansion template size, because their logic contains 30 sets of the counted spaces. Template in allows 40 spaces and has logic 4x shorter than space. However, using them repeatedly multiplies their cost on a page, so it is recommended that specific-numbered templates be used (such as i5 to indent by 5), or else the particular 'switch line' be hand substituted in, once a desirable format effect is achieved, at least within a (frequently-used) template. For example, to indent many lines by 9 spaces, consider using the quick templates " " together, as 5+4 = 9 spaces (for less than 100 lines, just use 9).


 * Example 1 - ''comparing sp2/sp3/sp4/sp5:
 * Testing sp2 on colon-line, spaced here:&#123;{sp2}}to here.
 * Testing sp3 on colon-line, spaced here:&#123;{sp3}}to here.
 * Testing sp4 on colon-line, spaced here:&#123;{sp4}}to here.
 * Testing sp5 on colon-line, spaced here:&#123;{sp5}}to here.
 * Testing 'x' s on colon-line, 5 exes here:xxxxxto here.


 * Results
 * Testing sp2 on a colon-line, spaced here:to here.
 * Testing sp3 on a colon-line, spaced here:to here.
 * Testing sp4 on a colon-line, spaced here:to here.
 * Testing sp5 on a colon-line, spaced here:to here.
 * Testing 'x' s on a colon-line, 5 exes here:xxxxxto here.


 * Better results, for indenting large sections, can frequently be gained by using nowrap and/or the HTML formatting  about any of the spacing templates, since browser design philosophy is to trim consecutive spaces, check results also in different zoom settings, and on more than one browser if possible. One repeat offender is the IE browser family... which is unfortunately the numerically predominate browser of the world, by a large margin, since it's embedded within most turn-key personal computer sales.