Template:Space

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This 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.

Example calls

{{indent|2}}, {{space|7}}, etc.
     space and indent are limited to adding 30 spaces, and have a large-ish cost in pre-expansion template size from their logic. Using them repeatedly multiplies that cost on a page, so it is recommended that the particular 'switch line' be hand substituted in, once a desirable format effect is achieved, at least within a template.

  • Better results can frequently be gained by using {{nowrap}} and/or the HTML formatting <tt> ...</tt> 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 with most turn-key personal computer sales.

Related pages

{{s}} or 'SP'brief 'switch logic' version for inline use, defaults to 3 spaces given no numeric argument, will expand up to 8 spaces. (Subset of {{space}}, recommend replacing BOTH, on grounds of costs to pre-expansion template limits, with inline expansions of {{space}} or using the below special versions, particularly in templates, where these tend to be most useful—at least once a format is settled.)
really short Nn space versions for use in tables and templates:
{{Sp2}} uses unicode forced &emsp and &nbsp spaces to make browsers behave and GIVE two spaces
{{Sp3}} Same as Sp2, but three spaces of the same pattern as {{space}} expansion.
also likely: {{Sp4}}, {{Sp5}}