You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
Do you have permission to re-use this image? Just because scans appear on Wiktenauer does not mean that they are free to use. Wiktenauer is a 501(c)(3) nonprofit, and many of the scans we host are only licensed for nonprofit use. In other cases, the scans have no standard license and Wiktenauer has received special permission to host them (and can't grant that permission to anyone else). The license terms appear in the Copyright and License Terms box at the bottom of the page that sent you here. When in doubt, always check with the museum or library that owns a manuscript before publishing or otherwise reusing its scans. |
Template:Indent/doc
This is a documentation subpage for Template:Indent. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
The indenter Template:indent performs a newline and indents by a specified number of spaces. However, the spaces are not all the same size, but rather a mixture of en-size & em-size spaces that have been tested to work on a wide range of browsers. (To skip by n equal-size spaces, instead use {{in5|n}} which puts all as the standard-size " " space.)
Usage
The indentation spacing generated by Template:indent will match the alignment of a colon-shift (":") by using {{indent|5}}, or to match "::" then align by {{indent|10}}.
Usage: {{indent|# of spaces}}
- Indents up to 30 spaces. (use {{in5|n}} to skip up to 50 spaces)
- Indent differs from {{space}} only in that it automatically begins a wrapped-newline, then spaces over n spaces, whereas {{space}} spaces over n in the same (current) line.
Examples
The following are detailed examples, also comparing to the equivalent indentation generated if a colon-shift ":" were used instead.
Example 1 - Indenting by 5:
Some text.{{indent|5}}Some more text.
Results:
Some text.
Some more text.
Example 2 - Alignment with ":" or "::" indentations:
: Line of colon-shifted text.
{{indent|5}}Line of indent-5-shifted text.
<br> Line of br-6-nbsp-shifted text.
<br> Line of br-5-nbsp-shifted text.
<br> Line of br-5-nbsp-true-shifted text.
:: Line of 2-colon-shifted text.
{{space|10}}Line of space-10-shifted text.
Results:
- Line of colon-shifted text.
Line of indent-5-shifted text.
Line of br-6-nbsp-shifted text.
Line of br-5-nbsp-shifted text.
Line of br-5-nbsp-true-shifted text.
- Line of 2-colon-shifted text.
Line of space-10-shifted text.
Note that if the prior line is already colon-shifted text, then using "{{indent|5}}" generates a blank line first, so instead, use "{{space|5}}" (or such) after a colon-shifted line.
Analysis of uneven spacing
The non-breaking " " is exactly the same size as a space (by definition, it must be the same), so it can be alternated with spaces to skip a wider area. Notice that neither {{indent}} nor {{space}} use true space-size, but rather mix en+em spaces, whereas "{{in5|n}}" will actually skip n count of spaces, as if inserting n repetitions of an " " space.
History
This template originated on the sister project Wikisource—(home page)
- —and was subsequently ported to English Wikipedia at 21:27, 26 May 2006 (UTC).
See also
- {{space}} - skips similar spacing mix of en-size & em-size spaces.
- {{spaces}} - uses non-breaking spaces.
- {{in5}} - skips up to 50 equal-size spaces as all en-size spaces.