Template:Hanging indent View history

(created template)
 
(Updated category name)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="text-indent: -{{{indent|1.6em}}}; margin-left: {{{indent|1.6em}}};">{{{text}}}</div><noinclude>
<div style="text-indent: -{{{indent|1.6em}}}; margin-left: {{{indent|1.6em}}};">{{{text|{{{1|}}}}}}</div><noinclude>
{{documentation|content=
{{documentation|content=
This template creates a paragraph with a hanging indent.
This template creates a paragraph with a hanging indent.


''Wikipedia markup example:''
This template requires one parameter which can be unnamed or named {{para|text}}
''WIki markup example:''


<code><nowiki>{{Hanging indent| text=This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence.}}</nowiki></code>
<code><nowiki>{{Hanging indent| text=This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence. ...}}</nowiki></code>


Produces:
<code><nowiki>{{Hanging indent|This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence. ...}}</nowiki></code>


{{Hanging indent| text=This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence.}}
Both Produces:


== See also ==
{{Hanging indent| text={{Lorem ipsum|1|This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence. }}}}
* {{tl|indent}}


[[Category:Typing-aid templates]]
[[Category:Typing-aid templates]]
[[Category:Formatting and function templates]]
[[Category:Text formatting templates]]
}}</noinclude>
}}</noinclude>

Latest revision as of 06:43, 10 August 2022

Documentation icon Template documentation

This template creates a paragraph with a hanging indent.

This template requires one parameter which can be unnamed or named |text= WIki markup example:

{{Hanging indent| text=This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence. ...}}

{{Hanging indent|This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence. ...}}

Both Produces:

This is the paragraph to be formatted with a hanging indent. Typically paragraphs contain more than one sentence. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Subpages of this template.