Template:Pullquote: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
m (link fix)
 
(44 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| align="center" style="border-collapse:collapse;border-style:none;background-color:transparent;max-width:40em;width:auto;margin:0 10%;"
<includeonly><table align="center" style="border-collapse:collapse; border-style:none; background-color:transparent; max-width:40em; width:{{{width|auto}}}; margin-top:0; margin-bottom:0; margin-left:{{{inset|10%}}};">
| valign="top" style="color:{{{color|silver}}};font-size:{{{size|3.6em}}};font-family:serif;font-weight:bold;text-align:left;padding:10px 0;" |
<tr>
| valign="top" style="padding:0 1em;" | {{{1|Insert the text of the quote here, without quotation marks.</noinclude>}}}
<td valign="top" style="color:{{{color|silver}}}; font-size:{{{size|3.6em}}}; font-family:serif; font-weight:bold; text-align:left; padding:10px 0; line-height:0.5em;"></td>
| valign="bottom" style="color:{{{color|silver}}};font-size:{{{size|3.6em}}};font-family:serif;font-weight:bold;text-align:left;padding:10px 0;" |
<td valign="top" style="padding:0 1em; text-align:{{{align|left}}}">{{{1|Insert the text of the quote here, without quotation marks.</noinclude>}}}</td>
|-
<td valign="bottom" style="color:{{{color|silver}}}; font-size:{{{size|3.6em}}}; font-family:serif; font-weight:bold; text-align:right; padding:10px 0; line-height:0.75em;"></td>
| colspan="3" style="padding:1ex 0 0 0;" | {{#if:{{{2|<noinclude>Origin</noinclude>}}}|<p style="line-height:1em;text-align:left;"><small><cite style="font-style:normal;">—{{{2}}}{{#if:{{{3|<noinclude>Source</noinclude>}}}|,&nbsp;{{{3}}}}}</cite></small></p>}}
</tr><tr>
|}<!-- {{subst:FULLPAGENAME}} --></includeonly>
<td colspan="3" style="padding:1ex 0 0 0;"> {{#if:{{{2|<noinclude>Origin</noinclude>}}}|
<p style="line-height:1em; text-align:right;"><small><cite style="font-style:normal;">—{{{2}}}{{#if:{{{3|<noinclude>Source</noinclude>}}}|,&nbsp;{{{3}}}}}</cite></small></p>}}
</td>
</tr>
</table></includeonly>
<noinclude>{{Pullquote|This template is a fun way to mark a block of quoted text. Taken from Wikipedia, where it was called Cquote (Centered quote), and reminiscent of the "pull quote" tradition in periodicals where an excerpted quotation appears in an inset box in the article to draw the reader's eye.}}
 
{{Pullquote|It could be annoying if a whole article was written this way, couldn't it? But it's fun for short quotations. It's not intended to be set on the side with text wrapping around it, as in a newspaper pullquote (that would be the [[:Template:Quotebox|Quotebox]] template), but rather to demand your full attention, perhaps at the top of an article.|color=blue}}
 
Here are the parameters you can use with this template:
:'''Parameter 1''': The body of the quote text. This is the only required parameter.
:'''Parameter 2''': The origin of the quote (optional). Who said it?
:'''Parameter 3''': The source of the quote (optional). Where was it published? Put your citation link here if you have one.
:'''color''': The color of the quote marks. The default is "silver"; above, we used "color=blue". You can choose from any of the [https://www.w3schools.com/colors/colors_names.asp named HTML colors] or specify one in hex (e.g. "color=#FF00AA").
:'''width''': The width of the whole area (counting the large quote marks). You must specify the number in pixels, e.g. "300px"; a percentage like "50%" will not work. Default is "auto".
:'''inset''': How far in from the left to place the quote area. Default is 10%.
:'''size''': The size of the quote marks, in the unit that you specify (default is 3.6em).
 
 
For example, <code><nowiki>{{Pullquote|It was the best of times, it was the ''blurst'' of times?!|Mr. Burns|[https://genius.com/The-simpsons-last-exit-to-springfield-annotated "Last Exit to Springfield"]}}</nowiki></code> yields:
{{Pullquote|It was the best of times, it was the… ''blurst'' of times?!|Mr. Burns|[https://genius.com/The-simpsons-last-exit-to-springfield-annotated "Last Exit to Springfield"]}}
 
If the template markup is broken by a certain symbol in the text you're passing it, such as an equals sign, you have to set the parameter explicitly using its number: <code><nowiki>{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}</nowiki></code> yields:
{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}
Square brackets are also known to require this workaround. Note that if you number one parameter you have to number the subsequent parameters too.
 
[[Category:Message box templates]]</noinclude>

Latest revision as of 01:37, 18 December 2023

This template is a fun way to mark a block of quoted text. Taken from Wikipedia, where it was called Cquote (Centered quote), and reminiscent of the "pull quote" tradition in periodicals where an excerpted quotation appears in an inset box in the article to draw the reader's eye.


It could be annoying if a whole article was written this way, couldn't it? But it's fun for short quotations. It's not intended to be set on the side with text wrapping around it, as in a newspaper pullquote (that would be the Quotebox template), but rather to demand your full attention, perhaps at the top of an article.


Here are the parameters you can use with this template:

Parameter 1: The body of the quote text. This is the only required parameter.
Parameter 2: The origin of the quote (optional). Who said it?
Parameter 3: The source of the quote (optional). Where was it published? Put your citation link here if you have one.
color: The color of the quote marks. The default is "silver"; above, we used "color=blue". You can choose from any of the named HTML colors or specify one in hex (e.g. "color=#FF00AA").
width: The width of the whole area (counting the large quote marks). You must specify the number in pixels, e.g. "300px"; a percentage like "50%" will not work. Default is "auto".
inset: How far in from the left to place the quote area. Default is 10%.
size: The size of the quote marks, in the unit that you specify (default is 3.6em).


For example, {{Pullquote|It was the best of times, it was the ''blurst'' of times?!|Mr. Burns|[https://genius.com/The-simpsons-last-exit-to-springfield-annotated "Last Exit to Springfield"]}} yields:

It was the best of times, it was the… blurst of times?!

—Mr. Burns, "Last Exit to Springfield"


If the template markup is broken by a certain symbol in the text you're passing it, such as an equals sign, you have to set the parameter explicitly using its number: {{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}} yields:

E = mc2, but templates are confusing.

—Albert Einstein

Square brackets are also known to require this workaround. Note that if you number one parameter you have to number the subsequent parameters too.