Difference between revisions of "Template:Hanging indent"
imported>SMcCandlish (support other parameter names people will expect) |
|||
| (12 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <div style="text-indent: -{{{indent| | + | <div style="text-indent: -{{{indent|1.6em}}}; margin-left: {{{indent|1.6em}}};">{{{text|{{{content|{{{1}}}}}}}}}</div><noinclude> |
| + | {{Documentation}} | ||
| + | </noinclude> | ||
Latest revision as of 21:07, 13 March 2016
This template creates a paragraph with a hanging indent.
Contents
Usage
This template has one parameter, which may be unnamed, numbered as |1=, or named as either |text= or |content=. It is always safest to use the number or a name, since if it is unnamed, any = (equals) character in the content will break the template.
Wiki-markup example:
{{Hanging indent |text={{Lorem ipsum}}}}
produces:
Indentation within indentation
The entire paragraph itself can be indented and still preserve this hanging-indent effect relevant to its own indentation:
With {{In5}}
{{Hanging indent |text={{in5}}{{Lorem ipsum}}}}
produces a slight indentation of wrapped material:
(But note that this will not work:
{{in5}}{{Hanging indent |text={{Lorem ipsum}}}}
because it's trying to apply inline style to a block element.)
With {{Block indent}}
{{block indent|1={{Hanging indent |text={{Lorem ipsum}}}} }}
produces full indentation of wrapped material:
Note: Do not abuse {{Quote}}, {{Pull quote}}, <blockquote>, or any other block quotation markup for non-quotations; the {{block indent}} template exists for a reason.
See also
- {{Indent}}
- {{In5}}
- {{Block indent}}
| The above documentation is transcluded from Template:Hanging indent/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |