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
 

















Template:Quote frame






العربية
Авар
Azərbaycanca
Basa Bali

Башҡортса
Беларуская

Bislama
Català
Čeština
Corsu
Dansk
Esperanto
فارسی
Føroyskt


Հայերեն
Igbo
Ilokano
Bahasa Indonesia
Қазақша
Kiswahili
Latviešu
Македонски



Нохчийн
Occitan

Português
Русиньскый
Русский

Scots

Simple English
Soomaaliga
Српски / srpski
ி
Татарча / tatarça


Türkçe
Українська
اردو
Tiếng Vit


Yorùbá


Betawi
 

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  



Wikimedia Commons
MediaWiki
Meta-Wiki
Wikibooks
Wikidata
Wikinews
Wikiquote
Wikisource
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Boxquote)

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.

The Manual of Style guidelines for block quotations recommend formatting block quotations using the {{Blockquote}} template or the HTML <blockquote> element, for which that template provides a wrapper.

Usage

This template provides a quotation in a bordered box, on a light grey background, and spanning the page width by default. Do not put quotation marks around the quoted material.

Markup Renders as
{{Quote frame |quote=Quoted material |author=Author |title=Title |source=other details}}

{{Quote frame|Quoted material|Author|Title|other details}}

Quoted material
— Author, Title, other details

{{Quote frame |quote=Quoted material |author=Author |source="Article Title", ''Newspaper Name'', date}}

{{Quote frame|Quoted material|Author||"Article Title", ''Newspaper Name'', date}}

Quoted material
— Author, "Article Title", Newspaper Name, date

In the short syntax, the 3rd parameter (which auto-italicizes) has been included but left empty to skip it, and we use the 4th to manually apply italics where needed.
{{Quote frame |quote=Quoted material |author=Author |title=Title}}

{{Quote frame|Quoted material|Author|Title}}

Quoted material
— Author, Title

{{Quote frame |quote=Quoted material}}

{{Quote frame|Quoted material}}

Quoted material

{{Quote frame |quote=Quoted material |source="Article Title", ''Newspaper Name'', date}}

{{Quote frame|Quoted material|||"Article Title", ''Newspaper Name'', date}}

Quoted material
— "Article Title", Newspaper Name, date

In the short syntax, we skip two parameters by giving them empty.
{{Quote frame|Quoted material |align=center}}

Quoted material

{{Quote frame|Quoted material |align=right}}

Quoted material

{{Quote frame|Quoted material |align=right |width=33%}}

Quoted material

The |width= parameter takes any valid CSS width value, such as 33%or25em. This should not be specified in fixed pixel sizes (like 100px). As shown in the table above, the width is relative to the size of the container not the entire page, so the displayed width will be smaller if used inside a table.

The equal sign (=)

If any of the parameters' content include an equal sign (=) in its input, this will make the template not recognize the parameter properly unless:

     {{Quote frame|quote=Einstein's equation, E=mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it. |author=Abdul Kalam}}
     {{Quote frame|1=Einstein's equation, E=mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it. |2=Abdul Kalam}}

     {{Quote frame|Einstein's equation, E{{=}}mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it.|Abdul Kalam}}

     {{Quote frame|Einstein's equation, E&#61;mc2, has to reach everywhere. Science is a beautiful gift to humanity, we should not distort it.|Abdul Kalam}}

Technical issues with block templates

If the block-formatted content uses a named parameter (including |1=) and begins with a list (or any other wikimarkup that is dependent upon a specific markup character being at the beginning of a line), because MediaWiki behavior is to strip whitespace from named parameters, a <nowiki /> and a new line must exist before the list (or whatever) starts. This no longer affects unnamed parameters. Compare:

  code result
Works as intended {{Quote frame|
*Firstly, ...
*Secondly, ...
*Thirdly, ...
}}

  • Firstly, ...
  • Secondly, ...
  • Thirdly, ...

FAIL {{Quote frame|1=
*Firstly, ...
*Secondly, ...
*Thirdly, ...
}}

*Firstly, ...

  • Secondly, ...
  • Thirdly, ...

Works as intended {{Quote frame|1=<nowiki />
*Firstly, ...
*Secondly, ...
*Thirdly, ...
}}

  • Firstly, ...
  • Secondly, ...
  • Thirdly, ...

To embed a table in block markup like this, the block template's content parameter must be named or numbered and include the self-closing nowiki – as in |1=<nowiki /> – then every | character in the table markup must be escaped with {{!}}. An alternative is to use explicit HTML <table>, <tr>, <th>, and <td> markup.

TemplateData

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

TemplateData for Quote frame

insert description here

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Quoted material1

Stringrequired
Author2

Stringoptional
Title3

Stringoptional
Publication4

Use <ref>and {{Cite book}} etc.

Stringoptional
Alignmentalign

Alignment of the quote box on the page—left / right / center / none. Defaults to none alignment.

Suggested values
left center right none
Stringoptional
Widthwidth

Fixed width of the quote box, in a valid CSS value. Defaults to no fixed width.

Stringoptional

Redirects

See also


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

Category: 
Enhanced quote templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 19 July 2024, at 18:03 (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