Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Indentation within indentation  



1.1.1  With {{In5}}  





1.1.2  With {{Block indent}}  





1.1.3  TemplateData  









2 See also  














Template:Hanging indent









Монгол



Português
Qaraqalpaqsha
Русский
Shqip
Simple English
 



 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Multilingual Wikisource
Wikibooks
Wikisource
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{{1}}}

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:

Lorem ipsum dolor sit amet, consectetur adipiscing 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.

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:

      Lorem ipsum dolor sit amet, consectetur adipiscing 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.

(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:

Lorem ipsum dolor sit amet, consectetur adipiscing 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.

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Hanging indent in articles based on its TemplateData.

TemplateData for Hanging indent

This template creates a paragraph with a hanging indent.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Indentindent

Indentation level as a CSS length.

Default
1.6em
Stringoptional
Contenttext content 1

no description

Contentrequired

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Hanging_indent&oldid=1044523947"

Categories: 
Inline spacing templates
Typing-aid templates
Semantic markup templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 15 September 2021, at 17:59 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki