Template:Quote: Difference between revisions

From A Best PCs Wiki
Jump to navigation Jump to search
import>HoodMoney54
No edit summary
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{| style="margin:0.5em auto; max-width:50em;"
| style="border:none; color:{{{color|#B2B7F2}}}; font-family:'Times New Roman',Times,serif; font-size:{{{size|3em}}}; font-weight:bold; line-height:41px; padding:0 16px 0 0; vertical-align:top; width:20px;" | “
| style="border:none; font-size:1.2em; font-style:italic; padding:0; vertical-align:middle;"|{{{1|Flub}}}
| style="border:none; color:{{{color|#B2B7F2}}}; font-family:'Times New Roman',Times,serif; font-size:{{{size|3em}}}; font-weight:bold; line-height:11px; padding:0 0 0 16px; vertical-align:bottom; width:20px" | ”
{{#if:{{{2|}}}|
{{!}}-
{{!}} colspan="3" style="font-size:smaller; padding:8px 36px; text-align:right;" {{!}} <cite>{{{2}}}{{#if:{{{3|}}}|, {{{3}}}}}</cite>}}
|}</includeonly><noinclude>{{usage|1=This is a formatting template used to add a block quote to an article.


{{(!}} class="cquote pullquote" role="presentation" {{#if:{{{rtl|}}}|dir="rtl"}} style="{{#switch:{{{float|}}}
The format for using this template is as follows:<br />
  | left = float:left
 
  | right = float:right
'''<pre>{{Quote|1=That's defermation!|2=Tophia Slydell|3=said a lot during her lives.}}</pre>'''
  | #default = margin:auto
 
  }}; border-collapse: collapse; border: none; background-color: {{{bgcolor|transparent}}}; width: {{#if: {{{wide|}}} | 100% | {{{width|auto}}}}}; {{#if: {{{bgcolor|}}} | border: 1px solid #AAAAAA;}}"
 
{{!}} style="width: 20px; vertical-align: top; border: none; color: {{{qcolor|#B2B7F2}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{2|20px}}}}}}}}}}}}
- Displays:{{Quote|1=That's defermation!|2=Tophia Slydell|3=said a lot during her lives.}}
|10px=20px
'''Template structure'''
|30px=60px
 
|40px=80px
<nowiki>{{quote| 1 | 2 | 3 |color=silver|size=360%}}</nowiki>
|50px=100px
 
|60px=120px
'''Notes'''
|#default=40px}}; font-family: {{#if:{{{rtl|}}}|Roman|'Times New Roman', Times}}, serif; font-weight: bold; line-height: .6em; text-align: left; padding: {{#if:{{{small|}}}|10px 2px|10px 10px}};" {{!}} {{#if:{{{rtl|}}}|”|“}}
# The "color" and "size" parameters refer to the quotation marks—not the text.
{{!}} style="vertical-align: top; border: none;{{#if:{{{rtl|}}}|direction:rtl;}} padding: {{#if:{{{small|}}}|4px 2px|4px 10px}}; {{#ifeq:{{{quotealign|}}}|center|text-align:center;}}" {{!}} {{trim quotes|{{{text|{{{content|{{{quotetext|{{{quote|{{{1|<includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly><noinclude>{{lorem ipsum}}</noinclude>}}}}}}}}}}}}}}}}}
# If you want to change the color and size variables, you must declare the parameter explicitly (i.e. you must include "color=" or "size=").
{{!}} style="width: 20px; vertical-align: bottom; border: none; color: {{{qcolor|#B2B7F2}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{2|20px}}}}}}}}}}}}
#If you want to change the size parameter, then you must include a unit of measurement (e.g. %, px, pt).
|10px=20px
# "If a parameter value contains an equals sign, the parameter name must be declared explicitly." This means that if you want to include a URL in your quote, and if that URL contains an equals sign, then you must explicitly declare the parameter. All that means is that you should add "1=", "2=", or "3=", as appropriate, ahead of your quote text, speaker, or source, like this: <nowiki>{{quote|1=Quote text|2=Person|3=Source|color=silver|size=360%}}</nowiki>
|30px=60px
 
|40px=80px
'''<pre>{{Quote|1=Trigger warning|2=Tophia|3=URL with = sign|color=blue|size=500%}}</pre>'''
|50px=100px
 
|60px=120px
 
|#default=40px}}; font-family: {{#if:{{{rtl|}}}|Roman|'Times New Roman', Times}}, serif; font-weight: bold; line-height: .6em; text-align: right; padding: {{#if:{{{small|}}}|10px 2px|10px 10px}};" {{!}} {{#if:{{{rtl|}}}|“|”}}
- Displays:{{Quote|1=Trigger warning|2=Tophia|3=URL with = sign|color=blue|size=500%}}
{{!-}}
{{#if:{{{author|{{{personquoted|{{{source|{{{publication|{{{title|{{{quotesource|{{{4|{{{5|}}}}}}}}}}}}}}}}}}}}}}}}|{{#if:{{NAMESPACE}}||[[Category:Articles with attributed pull quotes]]}}
{{!}} colspan="3" class="cquotecite" style="border: none; padding-right: 4%; font-size: smaller; line-height:normal; text-align: right;" {{!}} <cite>—&#8202;{{#if:{{{author|{{{personquoted|{{{4|}}}}}}}}}|{{{author|{{{personquoted|{{{4}}}}}}}}}{{#if:{{{source|{{{publication|{{{title|{{{quotesource|{{{5|}}}}}}}}}}}}}}}|, {{{source|{{{publication|{{{title|{{{quotesource|{{{5}}}}}}}}}}}}}}}}}|{{#if:{{{source|{{{publication|{{{title|{{{quotesource|{{{5|}}}}}}}}}}}}}}}|{{{source|{{{publication|{{{title|{{{quotesource|{{{5}}}}}}}}}}}}}}}}}}}</cite>
}}
}}
{{!)}}<!-- {{subst:FULLPAGENAME}} --><noinclude>
 
{{documentation}}
[[Category:Formatting and function templates|{{PAGENAME}}]]
</noinclude>

Latest revision as of 02:02, 9 November 2024

Usage

These usage notes will not be included in articles bearing this template.

This is a formatting template used to add a block quote to an article.

The format for using this template is as follows:

{{Quote|1=That's defermation!|2=Tophia Slydell|3=said a lot during her lives.}}


- Displays:

That's defermation!
Tophia Slydell, said a lot during her lives.

Template structure

{{quote| 1 | 2 | 3 |color=silver|size=360%}}

Notes

  1. The "color" and "size" parameters refer to the quotation marks—not the text.
  2. If you want to change the color and size variables, you must declare the parameter explicitly (i.e. you must include "color=" or "size=").
  3. If you want to change the size parameter, then you must include a unit of measurement (e.g. %, px, pt).
  4. "If a parameter value contains an equals sign, the parameter name must be declared explicitly." This means that if you want to include a URL in your quote, and if that URL contains an equals sign, then you must explicitly declare the parameter. All that means is that you should add "1=", "2=", or "3=", as appropriate, ahead of your quote text, speaker, or source, like this: {{quote|1=Quote text|2=Person|3=Source|color=silver|size=360%}}
{{Quote|1=Trigger warning|2=Tophia|3=URL with = sign|color=blue|size=500%}}


- Displays:

Trigger warning
Tophia, URL with = sign