Difference between revisions of "Template:Quote"

From CWCki
Jump to navigation Jump to search
(Font size changed to match Level 3 header.)
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<!-- The nested div fixes a spacing problem in Firefox. -->
<includeonly>{| style="margin:0.5em auto; max-width:50em;"
<!-- All the other changes are intended to address aesthetic considerations in various browsers -->
| 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;" |
<onlyinclude>
| style="border:none; font-size:1.2em; font-style:italic; padding:0; vertical-align:middle;"|{{{1|Flub}}}
<div style="clear:none; max-width:50em; margin-right: auto; margin-left: auto;"><div style="margin: 0 10%;">
| 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" |
{| style="border-collapse:collapse; background-color:transparent;"
{{#if:{{{2|}}}|
| valign="top" style="overflow:hidden; margin: 0 0 1em 0; color:{{{color|silver}}}; font-size:{{{size|3.6em}}}; font-family:serif; font-weight:bold; text-align:left;" | <span style="line-height:0.4em;">&nbsp;</span><br />“
{{!}}-
| valign="middle" style="overflow:hidden; padding:0 1em; text-align:left;  font-style:italic;" | &nbsp;<br /><big><big>{{{1}}}</big></big><br />&nbsp;
{{!}} colspan="3" style="font-size:smaller; padding:8px 36px; text-align:right;" {{!}} <cite>{{{2}}}{{#if:{{{3|}}}|, {{{3}}}}}</cite>}}
| valign="bottom" style="overflow:hidden; color:{{{color|silver}}}; font-size:{{{size|3.6em}}}; font-family:serif; font-weight:bold; text-align:right;" | „<br /><span style="line-height:0.55em;">&nbsp;</span>
|}</includeonly><noinclude>{{usage|1=This is a formatting template used to add a block quote to an article.
|-
| colspan="3" | <p style="font-size:85%; line-height:1em; text-align:right"><cite style="font-style:normal;">{{ #if:{{{2|}}} |—{{{2| }}}}}{{ #if:{{{3|}}} |, ''{{{3}}}''}}</cite></p>
|}</div></div><!-- {{subst:FULLPAGENAME}} -->
</onlyinclude>


The format for using this template is as follows:<br />


'''Template structure'''
'''<pre>{{Quote|1=I'LL BREAK YOU DEAD!|2=Christian Weston Chandler|3=Phone message to Jason Kendrick Howell}}</pre>'''  


<nowiki>{{quote| 1 | 2 | 3 |color=silver|size=360%}}</nowiki>


- Displays:{{Quote|I'LL BREAK YOU DEAD!|Christian Weston Chandler|Phone message to Jason Kendrick Howell}}


'''Template usage'''  
'''Template structure'''


<nowiki>{{Squote|Quote Text|Person|Source|color=silver|size=360%}}</nowiki>
<nowiki>{{quote| 1 | 2 | 3 |color=silver|size=360%}}</nowiki>


'''Notes'''  
'''Notes'''  
Line 28: Line 25:
# "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>
# "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>


<noinclude>[[Category: Templates]]</noinclude>
'''<pre>{{Quote|1=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}}</pre>'''
 
 
- Displays:{{Quote|1=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}}
}}
 
[[Category:Formatting and function templates|{{PAGENAME}}]]
 
 
See [[Template:Squote]] for displaying block quotes in a smaller font size.</noinclude>

Latest revision as of 19:37, 18 December 2019

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=I'LL BREAK YOU DEAD!|2=Christian Weston Chandler|3=Phone message to Jason Kendrick Howell}}


- Displays:

I'LL BREAK YOU DEAD!
Christian Weston Chandler, Phone message to Jason Kendrick Howell

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=I'LL BREAK YOU DEAD!|2=Chris|3=URL with = sign|color=blue|size=500%}}


- Displays:

I'LL BREAK YOU DEAD!
Chris, URL with = sign




See Template:Squote for displaying block quotes in a smaller font size.