Template:Text-indent/doc

This template adds indentation to text using the CSS  property. This property controls the indentation of the first line of a paragraph of text. It can be specified with any valid CSS unit, but em is the preferred unit. The indentation can be  to disable an inherited indent, or negative to achieve various special effects such as hanging indents (but use  for that). The default value is.

See the policy on indentation of paragraphs.
 * Note that this template should not be used to attempt to replicate the printing style where the first line of every new paragraph is indented.

Usage
The primary calling convention for this template is the block-based one:

For a single shorter run of text containing no characters that are significant in wikicode (equals signs in particular), you can also use the inline calling convention:

For most use cases though, the block calling convention is strongly recommended as it is the most flexible and creates the fewest surprising edge cases and weird behaviour..

Arguments
This template uses positional (unnamed) parameters. If only one parameter is provided it is assumed to be a CSS length value and is passed directly into the  attribute for the container (so make sure you provide a valid value here!). If you are using the inline calling convention you can also provide the text the template should apply to in the second unnamed parameter. In either case you can leave the indent amount empty and the template will default to.

Basic use
For a single shorter run of text containing no characters that are significant in wikicode (equals signs in particular), you can use the inline calling convention: the amount of indentation is given in the first parameter, and the text to which it is to be applied in the second. For most use cases though, the block calling convention is strongly recommended.

Please note that the last paragraph is not indented, since there are two new lines before it. This makes MediaWiki insert a  before it which "steals" the indentation.

Page:ed use
When transcribing in Page namespace, text with indented paragraph(s) may continue across Page: breaks. On the first page, in the body, and  in the footer should be used. On a continuation of an indented paragraph(s) to a subsequent page(s), ( or ) should be placed in the header (which cancels the indentation for the first 'paragraph' on the Page:, but not when the text is combined on transcription.) and at the end of the portion containing indented paragraphs. (either in the body, or footer dependent on the circumstances.