Difference between revisions of "Template:Hanging indent/doc"
imported>SMcCandlish (→See also: +2) |
imported>Unready m (<pre> for no lang) |
||
Line 8: | Line 8: | ||
'''Wiki-markup example:''' | '''Wiki-markup example:''' | ||
− | < | + | <pre>{{Hanging indent |text={{Lorem ipsum}}}}</pre> |
produces: | produces: | ||
Line 20: | Line 20: | ||
====With {{tl|In5}}==== | ====With {{tl|In5}}==== | ||
− | < | + | <pre>{{Hanging indent |text={{in5}}{{Lorem ipsum}}}}</pre> |
produces a slight indentation of wrapped material: | produces a slight indentation of wrapped material: | ||
Line 26: | Line 26: | ||
(But note that this will not work: | (But note that this will not work: | ||
− | < | + | <pre>{{in5}}{{Hanging indent |text={{Lorem ipsum}}}}</pre> |
because it's trying to apply inline style to a block element.) | because it's trying to apply inline style to a block element.) | ||
====With {{tl|Block indent}}==== | ====With {{tl|Block indent}}==== | ||
− | < | + | <pre>{{block indent|1={{Hanging indent |text={{Lorem ipsum}}}} }}</pre> |
produces full indentation of wrapped material: | produces full indentation of wrapped material: | ||
Revision as of 23:58, 26 November 2016
![]() | This is a documentation subpage for Template:Hanging indent. It contains usage information, categories and other content that is not part of the original template page. |
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}}