ទំព័រគំរូ:Hanging indent/doc
This is a documentation subpage for ទំព័រគំរូ:Hanging indent. It may contain usage information, categories and other content that is not part of the original ទំព័រគំរូ page. |
This template creates a paragraph with a hanging indent.
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
កែប្រែ:
character) just to get an indentation effect.The entire paragraph itself can be indented and still preserve this hanging-indent effect relevant to its own indentation:
{{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.
TemplateData
កែប្រែTemplateData for Hanging indent
This template creates a paragraph with a hanging indent.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Indent | indent | Indentation level as a CSS length.
| String | optional |
Content | text content 1 | no description | Content | required |
See also
កែប្រែ- {{Indent}}
- {{In5}}
- {{Block indent}}