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)

[edit] Trailing newline and referencing

The template emits a new line at the end which causes trailing referencing to end up on a new line. If the quotation is supposed to stand alone, would it not usually be terminated with a new line in the calling article? Testing with a trailing external link as a substitute for a citation. (SEWilco 18:18, 9 April 2007 (UTC))

This is an example quotation

[2]

That isn't how blockquotes work. It's an actual block of text, which means that text inside the block is inline, and all text outside of the blockquote tags is moved onto a separate line. Put the citation inside the block, on the same line of the text it would follow, like so:
{{quote|This is an example quotation.<ref>Example</ref>|Reference<ref>Example</ref>}}

This is an example quotation.[1]

Reference[2]
Down10 TACO 18:50, 17 April 2007 (UTC)

[edit] Notice of imminent CSS-ification

This is a notice that I am going to move this template's styling to MediaWiki:Common.css. This will cause the template to temporarily lose styling if an old, cached version of the external stylesheet is used, but this will be quickly resolved. Any objections? — Edward Z. Yang(Talk) 15:40, 29 May 2007 (UTC)

Great. You read #Styling, right? — Omegatron 17:35, 29 May 2007 (UTC)
Yeah, I'll be implementing (mostly) Down10's solution. It's a pretty straight-forward move, so I don't expect too many objections, but if I'm going to edit Common.css, might as well make sure everyone agrees with the move. There will be a slight tweak by changing small to a div rather than a p, because attribution is not a paragraph in any conventional English sense of the term (it also means we can independently style p tags without having to override them). — Edward Z. Yang(Talk) 21:40, 29 May 2007 (UTC)

I just modified it to implement a workaround (not a fix) for Bugzilla:6200, so you shouldn't have to type paragraph tags manually anymore. But I think it might be better to do the CSS with a descendant selector? I'm not too familiar with them, though. In other words, I created class="templatequotecite", but if we could select only divs that contain a cite tag instead, that would be better. — Omegatron 23:19, 23 July 2007 (UTC)

Need to take into account whether this would work in all browsers, too. — Omegatron 23:20, 23 July 2007 (UTC)
Also I'd like to add "display:table;" to the blockquote statement, so that it displays with indents when next to an image. — Omegatron 23:40, 23 July 2007 (UTC)
Currently the template doesn't render correctly for me. I use IE 7.0--Esprit15d (talk ¤ contribs) 14:18, 24 July 2007 (UTC)
What doesn't render correctly? — Omegatron 00:32, 26 July 2007 (UTC)
The template doesn't render correctly for me. It just spits it out as regular text.--Esprit15d (talk ¤ contribs) 12:49, 26 July 2007 (UTC)
It is regular text.  :-) Can you give an example? A screenshot? Anything to demonstrate what is wrong? Have you bypassed your cache since the changes were made? — Omegatron 03:00, 27 July 2007 (UTC)
Let's say the quote is "I am a three-toed sloth". Using {{quote}}, for me it displays like this:
I am a three-toed sloth
and not like this:

I am a three-toed sloth

There is no indentation, and the font is the same size. And yes, I've overridden the cache.--Esprit15d (talk ¤ contribs) 19:56, 27 July 2007 (UTC)
I am now on a Windows computer (XP Pro SP2) in IE7 (7.0.5730.11), and the block quotes in Abraham Lincoln and Aristotle are correctly formatted as indented text in a smaller font, with the attribution line indented a little further, just like it appears in Firefox. It would help if you could describe your setup in more detail and include a screenshot. This stopped appearing correctly after my change to the site's CSS, or has it always been this way? — Omegatron 23:59, 27 July 2007 (UTC)
It started hapening after you changed the site's CSS. But now I realize, it only doens't display correctly within other templates. For example in {{FGAN}}, I sometimes use it to quote passages that need attention. But it won't display correctly anymore. In other situations, it still works.--Esprit15d 16:36, 30 July 2007 (UTC)

Yes, I see now. I originally removed all #newlines from the template so that it would work inside other tags like that, but then when I added the div and newlines to work around the paragraph bug, the "inside other tags" bug came back. There might be a way to get both to work, but I don't know what it would be. (Besides getting the software itself fixed, of course, but don't hold your breath for that...) — Omegatron 00:19, 31 July 2007 (UTC)

I feel like someone with a rare disease that finally got a diagnosis. Not necessarily good news, but satisfying nontheless. I don't know if you create many templates, but with your knowledge, would it be possible for you to create some type of quote template for use within other templates, since this is extremely useful for FA and GA reviewers like myself? Or will using <blockquote class="templatequote"> work equally as well?--Esprit15d 14:38, 31 July 2007 (UTC)
Well, you can copy this template into another one, and undo the change I made that works around the bug. You have to choose between working around the newlines bug and working around the "inside other tags" bug. There might be a way to do both, but I haven't figured it out. — Omegatron 19:36, 9 December 2007 (UTC)

[edit] Long URLs seem to break {{quote}}

For example:

Insert the text of the quote here, without quotation marks.

Look at the source to see what I'm talking about. This also affects {{cquote}} and other quotation templates. SharkD (talk) 03:09, 6 December 2007 (UTC)

This is because there are ='s in the URL. You have to use |1=text instead of |text, i.e.

If you're curious (and wish to establish notability), Here is a machine translation of the Japanese Wikipedia article on the subject.

Ms2ger (talk) 18:50, 25 December 2007 (UTC)

[edit] Bulleting, I Haven't Tried, But Maybe Numbering Is Affected Too, An By Extrapolotion, Probabbly Other Things As Well

Let's say I have this:

Asdfffa.

asdfah, asfhash 25.6

Asdf asgh.

asdfasdhazsh h, aashsh ash 2356.636

As you can see, the bullets do not indent the quotes. I have no idea if

Asdfffa.

asdfah, asfhash 25.6

Asdf asgh.

asdfasdhazsh h, aashsh ash 2356.636

even shows up a line space. You've got to fix this.68.148.164.166 (talk) 18:37, 3 June 2008 (UTC)