Template:Indent

From AwkwardTV
Jump to: navigation, search


{{#switch: {{{1}}} | 1=  | 2=   | 3=    | 4=      | 5=      | 6=       | 7=        | 8=         | 9=          |10=           |11=            |12=             |13=              |14=               |15=                |16=                 |17=                  |18=                   |19=                    |20=                     |21=                      |22=                       |23=                        |24=                         |25=                          |26=                           |27=                            |28=                             |29=                              |30=                               |0|#default=}} The indenter Template:Indent puts a newline and indents the specified count of spaces.

Usage: {{indent|# of spaces}}

  • Indents up to 30 spaces, mixing en-size & em-size spaces.
  • Indent differs from Template:Tl only in that it automatically begins a wrapped-newline, then spaces
    across n spaces, whereas Template:Tl spaces over n in the same (current) line.

Example (indenting by 5):  Some text.{{indent|5}}Some more text.
Result:
Some text.{{#if:|
}}
{{#switch: 5 | 1=  | 2=   | 3=    | 4=      | 5=      | 6=       | 7=        | 8=         | 9=          |10=           |11=            |12=             |13=              |14=               |15=                |16=                 |17=                  |18=                   |19=                    |20=                     |21=                      |22=                       |23=                        |24=                         |25=                          |26=                           |27=                            |28=                             |29=                              |30=                               |0|#default=}}Some more text.

For more detailed examples, and for comparisons with colon-shifts ":" or "::" for indenting,
see the full documentation: Template:Indent/doc.

Also see: Template:Tl2 - to shift by n equal-size spaces.