Jump to content

Template:Pullquote: Difference between revisions

fixed "inset"; noted that "width" works if you use 'px'
(docs: amazing what you notice when you actually read the template code, such as the existence of a third parameter!)
(fixed "inset"; noted that "width" works if you use 'px')
Line 1: Line 1:
<includeonly><table align="center" style="border-collapse:collapse; border-style:none; background-color:transparent; max-width:40em; width:{{{width|auto}}}; margin:0 {{{inset|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%}}};">
<tr>
<tr>
  <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>
  <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>
Line 19: Line 19:
:'''Parameter 3''': The source of the quote (optional). Where was it published? Put your citation link here if you have one.
:'''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").
:'''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 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 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. It doesn't seem to accomplish much good to set this. Default is 10%.
:'''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).
:'''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|"Last Exit to Springfield"}}</nowiki></code> yields:
For example, <code><nowiki>{{Pullquote|It was the best of times, it was the ''blurst'' of times?!|Mr. Burns|[https://genius.com/2663067 "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/2663067 "Last Exit to Springfield"]}}
{{Pullquote|It was the best of times, it was the… ''blurst'' of times?!|Mr. Burns|[https://genius.com/2663067 "Last Exit to Springfield"]}}