Template talk:Quote

From Wikipedia, the free encyclopedia

Contents

[edit] Reusing legacy template

This template was redirected to {{wikiquote}} two years ago to handle articles that used it for providing a convenient external link to en:Wikiquote. It was recently changed without fixing those legacy articles, so I've reverted the change back to the redirect. I will look into converting these articles to free up this name, but meanwhile, I would recommend that editors not re-use such legacy templates for new purposes without first addressing the current usage of those templates. Thank you. ~ Jeff Q (talk) 00:17, 4 September 2006 (UTC)

I've completed updating the 40 or so articles that used the legacy {{quote}} template so they now use {{wikiquote}} directly. The way is clear to reuse this for more obvious purposes. But be careful! Many people may still think that this template is for WQ links. There are not so many pages currently using it that they can't be checked to verify proper use. ~ Jeff Q (talk) 04:37, 5 September 2006 (UTC)

[edit] Blockquote indention and quotation marks

Quotation marks shouldn't be used on blockquoted text. It's considered a redundancy... ?? --Renice 14:09, 15 October 2006 (UTC)

[edit] Why is this labeled with Template:Esoteric?

There's nothing {{Esoteric}} about the content in this template. It's all quite straightforward. — SMcCandlish [talk] [contrib] 17:43, 29 January 2007 (UTC)

[edit] Styling

Instead of <p style="line-height: 1em; text-align: left; padding-left: 2em;"><small>—<cite style="font-style: normal;">, we should just have <p class="templatequotecite"> or something like that and set the style with CSS. — Omegatron 06:08, 4 February 2007 (UTC)

If you can add this into Common.css, please do — I don't have editor status. I should note that the former markup purposely uses the <cite> tag, as it's standard HTML for citing a reference (the quote, in this case). —Down10 TACO 06:34, 8 February 2007 (UTC)
Yeah, cite as a tag is fine, but the styling for that cite should be set by CSS. Also the blockquote has style="margin-top:0;" for some unknown reason. — Omegatron 23:30, 10 February 2007 (UTC)

Ok, let's do this. The template

{{Quote|Phrase|Somebody|Source}}

produces:

Phrase

Somebody, Source

which is made up of this code:

<blockquote class="templatequote" style="margin-top: 0pt;">
    <p>Phrase</p>
    <p style="line-height: 1em; text-align: left; padding-left: 2em;">
        <small>
            —
            <cite style="font-style: normal;">
                Somebody, Source
            </cite>
        </small>
    </p>
</blockquote>

This should ideally be done with simpler code. But like this?

<blockquote class="templatequote">
    <p>Phrase</p>
    <p>
        —
        <cite>
            Somebody, Source
        </cite>
    </p>
</blockquote>

or like this?

<blockquote class="templatequote">
    <p>Phrase</p>
    <cite>
        —Somebody, Source
    </cite>
</blockquote>

How does the cite tag work, exactly? — Omegatron 02:50, 21 February 2007 (UTC)

The first example, wrapped in paragraph tags, is correct. According to the W3C, the CITE tag is a phrase element, so it's to be used the same way as EM and STRONG tags.[1]

Also, please note that most browsers automatically style the text in a CITE tag as italic, so this should be reverted back to normal text in its CSS.

The style="margin-top:0;" is because the template was producing two line breaks above the element in articles, which I believe is due to MediaWiki's preordained styling of paragraph margins. I suggest the template look like this:

<blockquote class="templatequote">
    <p>Phrase</p>
    <p class="cited">
        —<cite>Somebody, Source</cite>
    </p>
</blockquote>
...and the CSS look something like this:
blockquote.templatequote { margin-top: 0; }

blockquote.templatequote p.cited { 
    line-height: 1em;
    text-align: left;
    padding-left: 2em;
    margin-top: 0;
}

blockquote.templatequote p.cited cite {
    font-size: smaller;
    font-style: normal;
}
Good idea? I also am working out a similar solution to the pullquote debacle, so that the resulting article text syntax would remain sound while the text display would be styled according to Monobook and/or the user's personal choice of CSS. —Down10 TACO 07:07, 8 March 2007 (UTC)

[edit] Newlines

I removed some newlines from the template, which were causing it to not work inside lists:

  • Here is a quote

Omegatron 02:40, 21 February 2007 (UTC)

[edit] Links not working

The hyperlink to the author of the quote doesn't seem to work. Whoever groks this template fix it please. Grue 18:34, 27 February 2007 (UTC)

Or maybe it's not a bug, but a sudden and swiping change of behaviour. Either way, it's irresponsible thing to do. Grue 18:41, 27 February 2007 (UTC)
Example? — Omegatron 03:29, 28 February 2007 (UTC)