Template:Pullquote: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (it's not just the equals sign that can break this template)
m (docs: that is *not* what "size" does)
Line 10: Line 10:
</tr>
</tr>
</table></includeonly>
</table></includeonly>
<noinclude>{{Pullquote|This is a fun way to mark a block of quoted text. Stolen 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.}}
<noinclude>{{Pullquote|This 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, as in a newspaper (that would be the [[:Template:Quotebox|Quotebox]] template), but rather to demand your full attention, perhaps at the top of an article.}}
{{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, as in a newspaper (that would be the [[:Template:Quotebox|Quotebox]] template), but rather to demand your full attention, perhaps at the top of an article.}}
Line 20: Line 20:
:'''width''': The overall width of the box as a percentage of the screen; default is "auto". This parameter doesn't seem to work properly, however.
:'''width''': The overall width of the box as a percentage of the screen; default is "auto". This parameter doesn't seem to work properly, however.
:'''inset''': How far over to put the quote box. It doesn't seem to accomplish much good to set this. Default is 10%.
:'''inset''': How far over to put the quote box. It doesn't seem to accomplish much good to set this. Default is 10%.
:'''size''': The font size, in the unit that you specify (default is 3.6em).
:'''size''': The size of the quote marks, in the unit that you specify (default is 3.6em).
|color=blue}}
|color=blue}}


{{Pullquote|P.S.: If the template is being confused by a certain symbol in the text you're passing it, you have to set the parameter explicitly using its number: <nowiki>{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}</nowiki> yields<br /><br />{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}Equals signs and square brackets are known to require this workaround. Note that when you number a parameter you also have to assign numbers to the following parameters.}}
{{Pullquote|P.S.: If the template is being confused by a certain symbol in the text you're passing it, you have to set the parameter explicitly using its number: <nowiki>{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}</nowiki> yields<br /><br />{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}Equals signs and square brackets are known to require this workaround. Note that when you number one parameter you also have to assign numbers to the following parameters.}}


[[Category:Message box templates]]</noinclude>
[[Category:Message box templates]]</noinclude>

Revision as of 22:11, 6 April 2023

This 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, as in a newspaper (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 source. Who said it?
color: The color of the quote marks! The default is "silver"; here, we used "color=blue".
width: The overall width of the box as a percentage of the screen; default is "auto". This parameter doesn't seem to work properly, however.
inset: How far over to put the quote box. It doesn't seem to accomplish much good to set this. Default is 10%.
size: The size of the quote marks, in the unit that you specify (default is 3.6em).


P.S.: If the template is being confused by a certain symbol in the text you're passing it, 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

Equals signs and square brackets are known to require this workaround. Note that when you number one parameter you also have to assign numbers to the following parameters.