Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Cquote/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> == Usage == For quotes, this template provides a centered, borderless quote, with scalable decorative quotation marks, and optional attribution of the source of the quote. It can be used with or without the names of the parameters. ===Syntax=== * {{tlx|{{BASEPAGENAME}}|2=quote={{var|text of the quotation}}|3=author={{var|person quoted}}|4=source={{var|source of the quotation}}}} ===Parameters=== ; Parameter <code>quote</code>, <code>text</code>,<code>1</code>: text of the quote; use {{tag|p}} around second or subsequent paragraphs. : '''''Required''''' : if the quote text contains a <code>=</code> (equal sign), then the template must be called with a named parameter for the content. For example: {{tlx|Cquote|quote{{=}}{{var|quote text{{=}}more quoted text}}}}. ; <code>author</code>, <code>2</code>: Name of the person that wrote or spoke the text being quoted. Can include wiki syntax. ; <code>source</code>, <code>3</code>: Source of the quote (publication title, speech, etc.). Can include wiki syntax. Can be used without {{para|author}} (e.g. for a scripture, law, or other source without an author ''per se'') ; <code>bgcolor</code>: The color of the background. ; <code>float</code>: Defaults to center, but can also be right or left. Usually used with {{para|width|30%}} or so (otherwise for quotes longer than one line on the rendered page, the float will have no useful effect). ; <code>width</code>: for example {{para|width|30%}} ; <code>qcolor</code>: color of quotemarks, for example {{para|qcolor|#0000FF}} for a blue color ; <code>rtl</code>: set to any non-blank value for quotes that should be rendered from right to left (e.g., Arabic). Adds the necessary dir attribute and reverses the quotes. ; <code style="color: DarkRed;">wide</code>: In older versions of the template, when this was set to "yes", the quote expanded to the entire width of the page, which was useful for long quotes. However, it clashed with other floating objects, such as infoboxes, and the template now auto expands and line wraps as needed (full page, or within a {{para|width}} constraint). ===Note: rtl=== rtl parameter not currently working ===Simple example=== <pre>{{Cquote|quote text}}</pre> {{Cquote|To be, or not to be ...}} ===Sourced example=== <source lang="moin">{{Cquote|Life is like riding a bicycle. To keep your balance you must keep moving. |author=Albert Einstein |source=in a letter to his son<ref>Walter Isaacson, ''Einstein: His Life and Universe'' (2007), p. 367.</ref> }}</source> {{Cquote|Life is like riding a bicycle. To keep your balance you must keep moving. |author=Albert Einstein |source=in a letter to his son<ref>Walter Isaacson, ''Einstein: His Life and Universe'' (2007), p. 367.</ref> }} {{reflist}} ===Other examples=== <pre>{{Cquote|1=F=ma|author=Isaac Newton}}</pre> (the ''1='' is necessary as quote text contains an equal sign) {{Cquote|1=F=ma|author=Isaac Newton}} <pre>{{Cquote|1=Thus: {{in5}}<math>E=mc^2</math>|author=Albert Einstein}}</pre> (quote text contains an equal sign and math syntax) {{Cquote|1=Thus: {{in5}}<math>E=mc^2</math>|author=Albert Einstein}} <pre>{{Cquote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |float=right |width=30%}}</pre> (source with no author; floated right and width-constrained) {{Cquote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |float=right |width=30%}} Note that it will wrap around article text like this.{{Lorem ipsum}}{{clear|both}} <pre>{{Cquote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |width=50%}}</pre> (same quote, no float, width constraint) {{Cquote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |width=50%}} <pre>{{Cquote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States}}</pre> (same quote, no float, no width setting β for short quote, would use as much of line as necessary, and for longer quotes, full width of page, wrapping for multiple lines.) {{Cquote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States}} ===Alternative parameters names, numbers, colors === <pre>{{Cquote|text=E=mc<sup>2</sup>|citation=Mathematical Principles of Natural Philosophy (1687)|bgcolor=#ffffee|qcolor=#222222}}</pre> {{Cquote|text=E=mc<sup>2</sup>|citation=Mathematical Principles of Natural Philosophy (1687(|bgcolor=#ffffee|qcolor=#222222}} <pre>{{Cquote|Each force has an equal and opposite reaction|Isaac Newton|Laws of Motion}}</pre> {{Cquote|Each force has an equal and opposite reaction|Isaac Newton|Laws of Motion}} ===Darkskin timeless example=== <pre><div style="color:#cccccc">{{Cquote|quote=F=ma|author=Isaac Newton|bgcolor=#333333|qcolor=#cccccc}}</div></pre> <div style="color:#cccccc">{{Cquote|quote=F=ma|author=Isaac Newton|qcolor=#cccccc|bgcolor=#333333}}</div> ===TemplateData=== {{TemplateData header}} <templatedata> { "params": { "quote": { "aliases": [ "1", "quotetext", "text", "content" ], "label": "Quote", "description": "The quote to be visually repeated", "type": "content", "required": true }, "author": { "aliases": [ "2", "personquoted" ], "label": "Author", "description": "Name of the person that wrote or spoke the text being quoted", "example": "[[Albert Einstein]]", "type": "content", "suggested": true }, "source": { "aliases": [ "publication", "title", "3", "quotesource" ], "label": "Source", "description": "Source of the quote (publication title, speech, etc.). Can include wiki syntax. Can be used without |author= (e.g. for a scripture, law, or other source without an author per se)", "example": "in a letter to his son<ref>[[Walter Isaacson]], ''Einstein: His Life and Universe'' (2007), p. 367.</ref>", "type": "content", "suggested": true }, "float": { "label": "Float", "description": "Position the quote to float on the right or left side of the content", "example": "left", "type": "string" }, "bgcolor": { "label": "Background color", "description": "The background color for the quote", "type": "string", "default": "transparent" }, "width": { "label": "Width", "description": "The width of the quote", "example": "30%", "type": "string", "default": "Sized to fit content (auto)", "autovalue": "" }, "qcolor": { "label": "Quotation mark color", "description": "Color of quotemarks (only for use in WP:Signpost, and personal pages; do not use in articles, guidelines, etc.)", "example": "#FF0000 for a red color", "default": "#B2B7F2" }, "rtl": { "label": "Direction", "description": "Sets scrript direction right-to-left (Arabic, Hebrew)", "example": "rtl=yes" } }, "description": "This template is intended for quotes. The Manual of Style guidelines for block quotations recommend formatting block quotations using the {{Quote}} template.", "paramOrder": [ "quote", "author", "source", "width", "float", "bgcolor", "qcolor", "rtl" ], "format": "block" } </templatedata> {{Quotation templates}} <includeonly>{{sandbox other|| [[Category:Enhanced quote templates]] }}</includeonly>
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:!((
(
edit
)
Template:!))
(
edit
)
Template:Aligned table
(
edit
)
Template:C
(
edit
)
Template:Clear
(
edit
)
Template:Code
(
edit
)
Template:Cquote
(
edit
)
Template:Documentation subpage
(
edit
)
Template:In5
(
edit
)
Template:Lorem ipsum
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Navbox
(
edit
)
Template:Para
(
edit
)
Template:Quotation templates
(
edit
)
Template:Reflist
(
edit
)
Template:Strong
(
edit
)
Template:Tag
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template error report
(
view source
) (protected)
Template:Template link expanded
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlb
(
edit
)
Template:Tlg
(
edit
)
Template:Tlx
(
edit
)
Template:Var
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Aligned table
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:In5
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Navbar
(
edit
)
Module:Navbox
(
edit
)
Module:No globals
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Yesno
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs