Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Rquote/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}} <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE. -->__NOTOC__ {{Cquote/boilerplate}} == Usage == For quotes, this template, a variant of the {{tlx|Cquote}}, results in a floating quote with the article text wrapping around it, like an image. It is intended for relatively short quotes of 50 or 100 words. Align quote box to the '''right''': <nowiki>{{</nowiki>{{BASEPAGENAME}} |1=right |2={{var|text of quotation}} |3={{var|person quoted}} |4={{var|cited source}}<nowiki>}}</nowiki> Align quote box to the '''left''': <nowiki>{{</nowiki>{{BASEPAGENAME}} |1=left |2={{var|text of quotation}} |3={{var|person quoted}} |4={{var|cited source}}<nowiki>}}</nowiki> Named parameters may also be used: <nowiki>{{</nowiki>{{BASEPAGENAME}} |align=right |quote={{var|text of quotation}} |author={{var|person quoted}} |source={{var|cited source}}<nowiki>}}</nowiki> It is always safest to explicitly number or name the parameters (especially the quoted text, author, and source), since the presence of any <code>=</code> character in it will break the template if the parameter is not named/numbered. ===Compact form=== If you do not want to use numbered/named parameters, you must use compact form, without whitespace between parameters; MediaWiki parses the entire contents of unnamed parameters extremely literally, including whitespace. Align quote box to the '''right''' (compact version): <nowiki>{{</nowiki>{{BASEPAGENAME}}|right|{{var|text of quotation}}|{{var|person quoted}}|{{var|cited source}}<nowiki>}}</nowiki> Align quote box to the '''left''' (compact version): <nowiki>{{</nowiki>{{BASEPAGENAME}}|left|{{var|text of quotation}}|{{var|person quoted}}|{{var|cited source}}<nowiki>}}</nowiki> If any parameter is numbered, all of them must also be numbered. ===TemplateData=== {{TemplateData header}} <templatedata> { "params": { "1": { "label": "Alignment", "aliases": [ "align" ], "description": "left or right only (case-sensitive). No default", "example": "right", "type": "string", "required": true }, "2": { "aliases": [ "text", "quote" ], "label": "Text of quote", "description": "Do not use quotation marks. If the text contains an equals symbol, either replace those characters with {{=}} or use an explicit. Soft hyphens (­) or <wbrs>...</wbrs> can be used for suggested line breaks.", "example": "None of you are sick with ME/CFS because of how you live or think.", "type": "string", "required": true }, "3": { "aliases": [ "author", "personquoted" ], "label": "Author of quote", "description": "Person being quoted. This is only required when the fourth parameter is also specified.", "example": "Nancy Klimas", "type": "string", "suggested": true }, "4": { "aliases": [ "source", "title", "publication", "location", "identifier", "date" ], "label": "Extra identifier", "description": "An extra identifier that better identifies the location or time of the occurrence of the quotation. It must not be confused with the title of the source. For example, imagine a John Doe publishes a book; in it, he attributes a quotation to Albert Einstein, claiming Einstein said it in a letter to his colleague. What is put in this parameter is 'in a letter to his colleague', not the title of the book. This parameter is optional", "example": "Consumer-Contested Evidence: Why the ME/CFS Exercise Dispute Matters So Much", "type": "string", "default": "Sized to fit content (auto)", "suggested": true }, "width": { "label": "Width", "description": "Width of the quote. Examples: 20em, 300px. Avoiding using px. It should be a number with a CSS unit of length added to it.", "example": "30%", "type": "string", "default": "Sized to fit content (auto)" }, "style": { "label": "Style", "description": "Additional CSS style for the quote. Use only as a last measure", "example": "", "type": "string" } }, "description": "This template is intended for quotes as an alternative to the <blockquote> element.", "paramOrder": [ "1", "2", "3", "4", "width", "style" ], "format": "block" } </templatedata> {{Quotation templates}} <includeonly>{{sandbox other|| [[Category:Enhanced quote templates]] }}</includeonly> == Parameters == ===Required parameters=== 1. '''Align''' (1): The first unnamed parameter. "left" or "right" (case-sensitive) are acceptable values. This parameter is mandatory; there is no default. 2. '''Text''' (2 or quote): The second unnamed parameter. If the material contains = characters, remember to either replace those characters with <nowiki>{{=}}</nowiki> or use an explicit {{para|2}}. Quotation marks are supplied by the template and should not be included here. Soft hyphens (<code>&shy;</code>) or {{Tag|wbrs}} can be used to influence line breaks within the quote text. ===Optional parameters=== 3. '''Author''' (3 or personquoted): The third unnamed parameter. This should not be confused with the author of the source who published the quotation. For example, imagine a John Doe publishes a book, in which he attributes a quotation to Albert Einstein. In that case, "Albert Einstein" is what should be put in this parameter, not "John Doe". This parameter is only mandatory when the fourth parameter is also specified 4. '''Identifier''' (4, source, title, publication, location, or date): An optional extra identifier that better identifies the location or time of the occurrence of the quotation. It must not be confused with the title of the source. For example, imagine a John Doe publishes a book; in it, he attributes a quotation to Albert Einstein, claiming Einstein said it in a letter to his colleague. What is put in this parameter is "in a letter to his colleague", not the title of John Doe's book. This parameter is fully optional. A standard {{tag|ref}} citations is normally attached to the second, third or fourth parameter, whichever comes last. {{strong|If any parameter is explicitly numbered, they must all be numbered. If none are numbered, do not use any whitespace between them.}} These parameters are all optional. ;{{Para|width}}: Width of the quote. It should be a number with a CSS unit of length added to it. Default is 33%. Examples: 20em, 300px. Use of the "px" unit is discouraged. ;{{Para|style}}: Additional CSS style for the quote. Use only as a last measure. == Limitations == # This template does not always "play nice" and wrap properly when it is on the left, especially when what immediately follows it is a heading or a list. # If the quoted content is extremely short, this template looks terrible. The content needs to be at least reach to the other side of the template. If the content is shorter than that, use {{tlx|Cquote}} with its {{para|float}} option. # As noted above, if any parameter is explicitly numbered, they must all be numbered. If none are numbered, do not use any whitespace between them. == Example == ===Align right →=== ====Code==== <pre> {{Rquote |1=right |2=This is an example quote with the first option set to ''right''. |3=Anonymous |4=''Reduced quote template page'' }} {{str left|{{Lorem ipsum}}|335}} </pre> ====Result==== {{Rquote |1=right |2=This is an example quote with the first option set to ''right''. |3=Anonymous |4=''Reduced quote template page'' }} {{str left|{{Lorem ipsum}}|335}} ===Align left ←=== ====Code==== <pre> {{Rquote |1=left |2=This is another, slightly longer example quote with the first option set to ''left''. |3=Anonymous |4=''Reduced quote template page'' }} {{Lorem ipsum}} </pre><pre style="overflow:auto;"> {{Rquote |1=left |2=This is another, slightly longer ex&shy;ample pull&shy;quote with the first option set to ''left'' and two soft hyphens included in the quote text. |3=[[Anonymity|Anonymous]] |4=''Reduced quote template page'' }} {{Lorem ipsum}} </pre> ====Result==== {{Rquote |1=left |2=This is another, slightly longer example quote with the first option set to ''left''. |3=Anonymous |4=''Reduced quote template page'' }} {{Lorem ipsum}} {{Rquote |1=left |2=This is another, slightly longer ex&shy;ample pull&shy;quote with the first option set to ''left'' and two soft hyphens included in the quote text. |3=Anonymous |4=''Reduced quote template page'' }} {{Lorem ipsum}} {{clear}} {{Quotation templates}} <includeonly> <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> [[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/boilerplate
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Lorem ipsum
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Navbox
(
edit
)
Template:Para
(
edit
)
Template:Quotation templates
(
edit
)
Template:Rquote
(
edit
)
Template:Str left
(
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:Warning
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Aligned table
(
edit
)
Module:Arguments
(
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