Difference between revisions of "Template:Quote"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (added a bit of top and bottom margin so consecutive quotes don't run into each other)
(implement templatestyles)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><blockquote style="position: relative; margin: 0.1em 0; padding-left: 4em;">
+
<includeonly><templatestyles src="Template:Quote/styles.css" />
    <div class="nomobile" style="position: absolute; left: 0.2em; top: 50%; margin-top: -0.4em; font: bold 5em &quot;Times New Roman&quot;,Times,Georgia,serif; color: rgb(41, 129, 178);"><!--
+
{|
    -->&ldquo;<!--
+
|-
--></div>
+
|rowspan="2" class="decorativequotemark"|&ldquo;
    <div style="font-style: italic; font-family: Geneva,Tahoma,Verdana,sans-serif; line-height: 1.53846em; border-left: 1px solid rgb(47, 148, 204); padding: 0.1em 0.1em 0.1em 1em; font-size: 1.1em;"><!--
+
|class="quotetext"|&ldquo;{{{1}}}&rdquo;<!--
    -->&ldquo;{{{1}}}&rdquo;<!--
+
-->{{#if:{{{2|}}}|<nowiki />
--></div><!--
+
{{!}}-
-->{{#if:{{{2|}}}{{{3|}}}|
+
{{!}}class="quotesource"{{!}}&mdash; {{{2|}}}}}
        <cite style="display: block; <!--color:#6; invalid color--> text-align: left; font-size: 0.9em; font-style: italic; border-left: 1px solid rgb(47, 148, 204); padding: 0.1em 0.1em 0.1em 10em;"><!--
+
|-
        -->{{#if:{{{2|}}}|&mdash; {{{2}}}}}{{#if:{{{3|}}}|, {{{3}}}}}<!--
+
|}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
    --></cite>
 
    }}
 
</blockquote></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Latest revision as of 17:34, 17 November 2021

Description

This template is used to format a quotation.

Use

This template can be used by entering the following onto a relevant page.

{{Quote|Quoted Text|Author}}

Examples

Quoted Text

{{Quote|Example Text.}}

“Example Text.”

Quoted Text with Source

{{Quote|Quoted Text.|Author}}

“Quoted Text.”
— Author

Quoted Text with Linked Source

{{Quote|Quoted Text.|[http://www.example.com/ Author]}}

“Quoted Text.”
Author