Template:Rquote: Difference between revisions

387 bytes removed ,  2 years ago
no edit summary
(Major overhaul! Now uses parser functions and reduces cleanly. Better documentation, as well.)
No edit summary
 
(67 intermediate revisions by 36 users not shown)
Line 1:
<templatestyles src="Rquote/styles.css"/>
{| width="33%" cellspacing="10" align="{{{1}}}" style="display:block;background-color:inherit;border-collapse:collapse;border-style:none;float:{{{1}}};clear:{{{1}}};margin:0 1em;"
{| class="rquote pullquote float{{{1|{{{align}}}}}}" role="presentation" style="display:table; border-collapse:collapse; border-style:none; float:{{{1|{{{align}}}}}}; margin:0.5em 0.75em; width:{{{width|33%}}}; {{{style|}}}"
| width="20" valign=top | {{Click|image=cquote1.png|link={{FULLPAGENAME}}|width=20px|height=20px}}
|- style="text-align:left; vertical-align:top;"
| align="left" style="padding:0 10px" | {{{2<noinclude>|{{sample text}}</noinclude>}}}
| style="color:#b2b7f2; font-size:3.3em; font-family:'Times New Roman',serif; font-weight:bold; padding:4px 2px 2px; width:0.5em; line-height: 1em;"| “
| width="20" valign=bottom | {{Click|image=cquote2.png|link={{FULLPAGENAME}}|width=20px|height=20px}}
| style="padding:0 10px;"| {{trim quotes|{{{text|{{{content|{{{quotetext|{{{quote|{{{2|<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>}}}}}}}}}}}}}}}}}
| style="color:#b2b7f2; font-size:3.3em; font-family:'Times New Roman',serif; font-weight:bold; padding:4px 2px 2px; text-align:right; vertical-align:bottom; width:0.5em; line-height: 1em;"| ”
|-
| class="rquotecite" colspan="3" style="padding-top: 10px; 0"font-size:smaller; line-height:normal; text-align:right;"| {{#if:{{{3|{{{author|{{{4|{{{source|}}}}}}}}}}}}|<cite>—&nbsp;{{{3|{{{author|<noinclude>Xperson quoted</noinclude>}}}|<p style="font-size}}}{{#if:smaller;line-height:1em;text-align: right">'''<cite style="font-style:normal;">—{{{34|{{{source|}}}}}}|{{#if:{{{3|{{{author|}}}}}}|,}}&#32;{{{4|{{{source<noinclude>X|cited source</noinclude>}}}|, ''{{{4}}}''}}</cite>'''</p>}}
|}<!--Markup inserted from Template:Rquote--><noinclude>
{{Documentation}}
<noinclude>'''Rquote''' is a [[:Category:Quotation templates|quotation template]] meant for brief [[pullquote]]s of less than 50 words in length.
</noinclude>
 
For longer pullquotes of 50 words or more (in a similar style), use '''[[:Template:Cquote|Cquote]]'''.
==Usage==
<nowiki>{{Rquote|right/left|Quote text here|Source of quote, e.g. name of quoter|Cited source of quote}}</nowiki>
 
'''You should not put [[quotation marks]] around the quote. This template serves as a [[block quote]] to separate it from the text instead.'''
==Examples==
{{Rquote|right|This is an example pullquote with the first option set to ''right''.|[[Anonymous]]|The Rquote template page}}{{Lorem Ipsum}}
 
{{Rquote|left|This is an example pullquote with the first option set to ''left''.|[[Anonymous]]|The Rquote template page}}{{Lorem Ipsum}}
==Related templates==
{{See also|:Template:Cquote|:Template:Quote box|:Template:Quotation}}
[[Category:Quotation templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]</noinclude>