Template talk:Talk quote block

Edit of 30 May 2012
I believe that this edit broke the template, see WT:N, which has two examples where the background has been reduced to a single line, and the text is now pushed down onto the second line without a background color. Unscintillating (talk) 00:31, 31 May 2012 (UTC)
 * I have reverted my previous edit. Both edits discussed at Village pump (technical). The wikitext parser gets confused when the closing blockquote tag does not start on a new line if the template is called with a wikilist (and no final newline) in the calling parameter. — Richardguk (talk) 01:37, 31 May 2012 (UTC)

oldid/newid
Is it possible to accommodate a diff with both  and   parameters for instances where an editor posts a comment and then makes corrections/edits to their comment, so that the link can show the final version was posted by the quoted user? Currently, there's only provision for the  so you have to choose between specifying the first edit (which does not reflect the final version that the editor intended) or the last one (which only shows the last edit marked up). —sroc &#x1F4AC; 02:36, 27 February 2014 (UTC)
 * Well, it is possible to use the  parameter to give the URL of a diff, so you can to link to any diff you like. For example:
 * Here's the code:  –&#160;PartTimeGnome (talk&#160;&#124; contribs) 22:15, 27 February 2014 (UTC)
 * Perfect. Thanks!  —sroc &#x1F4AC; 15:11, 7 March 2014 (UTC)
 * Perfect. Thanks!  —sroc &#x1F4AC; 15:11, 7 March 2014 (UTC)

RfC: Change the TQ template font colour
There is an RfC at Template talk:Tq proposing the change the formatting of both tq and talkquote to unify their format/colours and distinguish from the colour of the xt template. Comments would be most welcome there. —sroc &#x1F4AC; 18:42, 15 April 2014 (UTC)

Contents
Am I doing something wrong here? For some reason the contents box is recognizing my talkquote sections as headings in the page itself. But it only does it for the first talkquote and not the second. I'm confused.

Also, while I'm already here. Is there a reason spans nuke a talkquote? Is there additional markup needed to use a span within a talkquote? Timothy Joseph Wood 14:57, 17 April 2016 (UTC)

Play nice with ordered and unordered lists
Is there a way to get this template to function when used at the beginning of a list item? For instance  will turn the bullet (or number) into a regular indent, rather than showing the bullet/number. It's fine if you put something between the bullet and template, but it'd be nice if it didn't need the hack. czar 23:05, 6 February 2017 (UTC)
 * As you can see by your own example above, this is now fixed. (It was fixed some time ago, I'm not sure exactly when.) Lists now play nicely with the templates, or vice versa. You can even colon-indent them on Talk pages, now!
 * Thanks! czar  20:11, 20 July 2019 (UTC)
 * Thanks! czar  20:11, 20 July 2019 (UTC)

Color
It'd be nice to have a few different color options—say blue/red/yellow—in lieu of just the green when comparing quotes czar  22:24, 9 June 2017 (UTC)

Requested move 16 January 2018

 * The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review. No further edits should be made to this section. 

The result of the move request was: Moved. No opposition and it has been relisted. (non-admin closure) –Ammarpad (talk) 13:06, 31 January 2018 (UTC)

— Rationale: I have never once remembered which of these templates is the block and which is inline. Moving the templates (and keeping the redirects) would make it easier for editors to save those extra few seconds of brainpower without adversely affecting editors with a better memory than mine.
 * Template:Talkquote → Template:Talk quote block
 * Template:Talk quotation → Template:Talk quote inline

Note: If this gains consensus, I would anticipate that
 * talkquote and its aliases talk quote and tq2 would be updated to point directly to Template:Talk quote block
 * talk quotation and its aliases tq and tqi would be updated to point directly to Template:Talk quote inline
 * The navbox Quotation templates would be updated to refer to the new names

— OwenBlacker (talk; please &#123;&#123;ping&#125;&#125; me in replies) 18:38, 16 January 2018 (UTC) --Relisting.  samee  talk 19:21, 23 January 2018 (UTC)
 * Support This drives me nuts, too.  — SMcCandlish ☏ ¢ 😼  19:10, 19 January 2018 (UTC)
 * Support as per nom. Definitely clearer than the status quo; and the short versions (tq) aren't changed. power~enwiki ( π,  ν ) 21:17, 24 January 2018 (UTC)
 * SUPPORT – It's a little thing, but it's so annoying. 142.161.81.20 (talk) 08:05, 29 January 2018 (UTC)
 * Support Don't generally get them confused (using aliases of tq and tq2 only), but it is still confusing as hell. Galobtter (pingó mió) 06:34, 31 January 2018 (UTC)

Documentation updated
I noticed that Template:Talk quote inline/doc had been updated to reflect the new canonical name (Talk quote inline), but Template:Talk quote block/doc had not, and still referred to the template as talkquote. Should be all fixed up now. -- FeRDNYC (talk) 06:36, 18 October 2018 (UTC)

Colors don't preview in Visual Editor
I noticed that when this template is used with the Visual Editor (even in wikitext source mode), the background coloring doesn't show up in the "Show preview" rendering. Presumably this is due to the use of Template Styles, specifically Template:Talk quote block/styles.css. Regardless the reason, it's still fairly disconcerting. Is there any way we could get the styles to be applied correctly in the preview? -- FeRDNYC (talk) 06:49, 18 October 2018 (UTC)

Quoted URLs with query strings break the template
I'm having trouble quoting URLs that contain query strings, like: http://example.com/over/there?name=ferret

This is particularly a problem when quoting Wikipedia diff URLs, like: https://en.wikipedia.org/w/index.php?title=User:IamNotU/sandbox&diff=904787385&oldid=904785977

For example, this:

Shows up ok as:

While this:

Doesn't display at all:

The same goes if I use square brackets for the URLs. Am I doing something wrong? As a workaround, I used:

Which displays ok, though it's inconvenient and looks different (doesn't have the external link pointer):

Can this be fixed? --IamNotU (talk) 15:12, 4 July 2019 (UTC)


 * When your template arguments contain an equals sign, you can't use implicit positional parameters because everything preceding the first equals sign gets parsed as the parameter name. The trick, in those situations, is to make the assignment explicit, so that your entire argument is unambiguously parsed as the value being assigned to that parameter. IOW:






 * Writing the transclusion as puts the entire URL on the right-hand side of an assignment to the first unnamed parameter, rather than it being parsed as a template parameter named   that's being assigned the value   -- FeRDNYC (talk) 16:25, 5 July 2019 (UTC)


 * , that makes sense, thanks for the tip! --IamNotU (talk) 13:50, 6 July 2019 (UTC)

Background color
It would useful if the background color could be set for this template. I see that one other editor has brought this up before Does anyone have any objections to adding such a parameter? If not, I would like to submit an edit request. - MrX 🖋 17:38, 12 April 2020 (UTC)

Overhaul
Sandbox:
 * Revised logic. (see the testcases)
 * Enhanced capability.
 * And a bit more to come. (if granted permission)

— Wikipedian Right (talk) 21:12, 13 June 2020 (UTC)
 * ❌ (yet). Please take a look at the testcases page and adjust the sandbox appropriately. If you are proposing new functionality, add more test cases to the testcases page. – Jonesey95 (talk) 21:30, 13 June 2020 (UTC)

Getting this template to function decently
I was trying to get this template to function just now in a situation where I wanted the first line to be text, the next to be a bullet, and all of it to be indented. After playing around with it for several minutes and reading through a bunch of the documentation here (again, as I've encountered trouble frequently, as I'm sure many Wikipedians have), I gave up and just left out the indentation. This is a pretty absurd situation – to be useful, this template needs to actually work as expected, not break anytime you try to indent it or use a list item unless you fiddle with it to get it formatted in a special way. Is there really no way to do that? I see proposed some changes above — would those do anything to help? &#123;{u&#124; Sdkb  }&#125;  talk 05:31, 24 July 2020 (UTC)

Emphasis added and the like
Sometimes you just want to put something after the timestamp like ea. Should that feature be added here? &#8211; MJL &thinsp;‐Talk‐☖ 20:52, 27 February 2021 (UTC)

Reflist
Is there a way to make reflist work inside this template as with quote frame (see example below)? It seems to break indentation when used like this.

Thanks. --Sangdeboeuf (talk) 23:16, 18 October 2021 (UTC) edited 18:54, 24 August 2022 (UTC)

"Talkquote" listed at Redirects for discussion
An editor has identified a potential problem with the redirect Talkquote and has thus listed it for discussion. This discussion will occur at Redirects for discussion/Log/2022 March 13 until a consensus is reached, and readers of this page are welcome to contribute to the discussion. Veverve (talk) 10:07, 13 March 2022 (UTC)

Template-protected edit request on 23 August 2022
Could the italics please be removed from the "talkquote-source" style in the CSS? It seems like an odd deviation. And it's preventing me from using the field to cite the book from which I'm quoting. Thanks, Graham (talk) 03:55, 23 August 2022 (UTC)
 * Don't understand. Clue me in editor – if you are quoting from a book, shouldn't its title be italicized? as in Grimms' Fairy Tales?  P.I. Ellsworth &thinsp;,  ed.  put'r there 04:53, 23 August 2022 (UTC)
 * The title should be italicized, but to cite a book you would at least have to include the author's name, and preferably also the publisher, year of publication, and page number (or section/paragraph/folio/etc. number, depending on the work). Graham (talk) 05:01, 23 August 2022 (UTC)
 * what I wonder is why the italics style has been used since the css style subpage was created in July 2018? Could it be that only titles that are italicized are supposed to be used in the source parameter? Also, what widespread effects might a change like this have?  P.I. Ellsworth &thinsp;, ed.  put'r there 05:57, 23 August 2022 (UTC)
 * My guess is the parameter was originally created with the intention of being used solely for pages on Wikipedia (policies, guidelines, maybe articles) and the italics were intended to be decorative. I don't think the parameter was originally intended for the title of a book because how often does one quote a book without even including the author's name?
 * But this decoration renders the template unusable for anything else (without hackily using no italics, I suppose, which most of the template's users probably wouldn't think to do).
 * Here's an example of what I was trying to do: Graham (talk) 06:17, 23 August 2022 (UTC)
 * Re the addition to your reply (Also, what widespread effects might a change like this have?): I had thought about that, and I can't conceive of any effects beyond the obvious (i.e., that where a quotation would have previously ended with "&mdash; Verifiability", it will now read "&mdash; Verifiability"). Graham (talk) 06:24, 23 August 2022 (UTC)
 * Seems harmless enough. Shall cede the final word to editor, who created Talk quote block/styles.css back in 2018.  P.I. Ellsworth &thinsp;, ed.  put'r there 06:32, 23 August 2022 (UTC)
 * The italics of interest have been present since the parameter was introduced in 2012. I simply transferred them to the TemplateStyles. Izno (talk) 17:45, 23 August 2022 (UTC)
 * If quoting an external source such as a book, in a talk page discussion, it may be more appropriate to just use and provide a citation externally. The "talk quote" formatting templates seems as though they were intended to style internal quotes, in the manner of a "quoted reply" in email or a forum discussion. (Hence the colored border line on the left edge of the quoted block, commonly associated with quoted text in email threads.) The attribution styling is just that, attribution to the source (wikilink to a user or policy page), not really a citation per se. FeRDNYC (talk) 07:07, 23 August 2022 (UTC)
 * The "talk quote" formatting templates seems as though they were intended to style internal quotes Which is why the existence of this parameter in this template confuses me personally, since I got pinged above. It is more or less outside the scope I perceive also. Izno (talk) 17:46, 23 August 2022 (UTC)
 * Then since we have an editor,, who would like to off the italics, we can try that and see if it brings more input.
 * ✅.  P.I. Ellsworth &thinsp;, ed.  put'r there 22:03, 23 August 2022 (UTC)
 * Thanks, ! Graham (talk) 02:06, 24 August 2022 (UTC)
 * my pleasure!  Paine  04:39, 24 August 2022 (UTC)
 * Thanks also. This was a good change. This idea of italicizing entire blocks of attribution data is some nonsense that WHATWG came up with, and it makes no sense to anyone but them.  — SMcCandlish ☏ ¢ 😼  03:37, 4 July 2023 (UTC)
 * Happy to help! Happy to help!  Paine   05:30, 4 July 2023 (UTC)
 * Thanks also. This was a good change. This idea of italicizing entire blocks of attribution data is some nonsense that WHATWG came up with, and it makes no sense to anyone but them.  — SMcCandlish ☏ ¢ 😼  03:37, 4 July 2023 (UTC)
 * Happy to help! Happy to help!  Paine   05:30, 4 July 2023 (UTC)

Comment links support
Now that there are comment links (they work in enwiki already, but timestamps are not linked yet, but will be soon I suppose), we can make a link from the timestamp to the comment in this template. I suggest to add an id parameter for that purpose.

Two more points:
 * 1) When there is a comment link, you can easily access the quoted comment. No point to make the author into a link then – it would just contribute to MOS:SEAOFBLUE.
 * 2) Actually, there is no point to link the author when a oldid or diff is linked (using oldid and diff) as well. Seeing the author's userpage is not the most relevant link for me when I see their quote.

P.S. There is a mistake in the docs currently: they state But diff currently requires a full link. Jack who built the house (talk) 10:47, 10 February 2024 (UTC)
 * : The revision ID of the diff comparing target.
 * I'm going to implement the id parameter. It seems that T365974 will be released any day now (but the links are already working). I'll also add the noping parameter to allow to suppress pings. Now I think it's probably a good idea to have it by default because people likely want to know when they are quoted. At the same time, when the author can know it without a ping (when someone replies to them, for example), people likely don't specify by generally, so the author won't be bothered by a ping. In Convenient Discussions, I made it so that regular replies use tq, whereas tqb is used when the quoted comment is not the one you're replying to. Jack who built the house (talk) 17:20, 4 June 2024 (UTC)

Ugly bottom padding
Is there a way to remove the ugly bottom padding

while still being accessibility-friendly? Aaron Liu (talk) 23:21, 22 February 2024 (UTC)
 * I think this is a side effect of the fix for that did not account for this case. I have adjusted the css for this template, which is a hack, but it doesn't seem to have worked (I don't see the change applied when I inspect the style; a real fix is welcome). If that bug gets another patch, my attempted css change may have to be adjusted or removed. See also Template talk:Quote_box. – Jonesey95 (talk) 06:12, 23 February 2024 (UTC)
 * I think the selector should be . Or something like (based on the loader's css in my debug console)   Aaron Liu  (talk) 15:12, 23 February 2024 (UTC)
 * Hey @Jonesey95, would you kindly take a look at this? Aaron Liu  (talk) 20:21, 25 February 2024 (UTC)
 * I have tried to implement this change in the sandbox, but it is not doing anything for me; I still get padding-bottom=0.5em. I don't really understand CSS as well as I should. You are welcome to fiddle with the sandbox version of the template and the sandbox version of styles.css. – Jonesey95 (talk) 00:30, 26 February 2024 (UTC)
 * @Jonesey95 I think I've fixed it! (insert happy child squealing [[File:Wikimedia Sound Logo Finalist BY23.wav]]) Aaron Liu (talk) 03:11, 26 February 2024 (UTC)
 * I have put that version in the live CSS page. I think the resulting bottom padding may be too small now. What do others think? As far as I know, we are trying to work around a change to MediaWiki that amounts to a bug in an edge case, but I could be wrong. – Jonesey95 (talk) 04:05, 26 February 2024 (UTC)


 * @Jonesey95 What would you think of changing the bottom padding to 0? It seems like the top has a padding of 0 too, and the bottom had a padding of 0 before the change. Aaron Liu  (talk) 15:27, 14 April 2024 (UTC)
 * If it works, it's fine with me. The WMF developers are still working on vertical spacing (I think the main task is ), so further changes to this template might be necessary if they ever untangle their spacing mess. If you use the sandbox and testcases page, you should be able to figure out if your proposal is safe at this time. – Jonesey95 (talk) 15:35, 14 April 2024 (UTC)
 * Alright, I've started an edit request and put that in Template:Talk quote block/sandbox/styles.css. Aaron Liu  (talk) 19:11, 14 April 2024 (UTC)
 * Aaron Liu the edit request you opened is for the sandbox. Did you mean to open one for the live version? SWinxy (talk) 23:47, 14 April 2024 (UTC)
 * Whoops, corrected! Aaron Liu  (talk) 00:54, 15 April 2024 (UTC)
 * ✅ * Pppery * it has begun... 02:26, 15 April 2024 (UTC)
 * Welp, that's not what I thought I was endorsing. I really don't think we should have skin-specific CSS styling in our templates. Didn't we learn that this was a bad idea in the Internet Explorer / Netscape days? That way lies madness. – Jonesey95 (talk) 02:36, 15 April 2024 (UTC)
 * I personally have no opinion on this, just copied to code from the sandbox since it seemed technically OK. And I don't see why what I just did is at all the gateway to madness. And we already have had logic that like Template:Skip to talk/styles.css that hides entire templates on certain skins, which makes this seem trivial. * Pppery * it has begun... 02:44, 15 April 2024 (UTC)
 * It's skin-specific because the bottom padding problem only exists in Vector 2022. Aaron Liu  (talk) 03:35, 15 April 2024 (UTC)
 * There are very few (16 pages at this writing) templatestyles pages that apply styling to the Vector or Vector 2022 skins. Some of them are TOC-related, which is understandable, and some appear to be working around bugs. I hope that we will be able to remove the skin-specific styling from this template when the WMF developers get their heads around the rather complex vertical spacing issues. – Jonesey95 (talk) 04:01, 15 April 2024 (UTC)
 * Not sure what's happening, but the change works in testcases but not on this very talk page. Aaron Liu  (talk) 03:38, 15 April 2024 (UTC)

IP users
Is it possible to extend the "by" parameter to cover IP users? This would be helpful in highlighting talking points in discussions with them. Thanks. UaMaol (talk) 21:48, 10 April 2024 (UTC)
 * It looks like it works fine. See the testcases page, specifically the "with IP user" case. What makes you think that it doesn't work? – Jonesey95 (talk) 05:17, 11 April 2024 (UTC)

Edit request 22 June 2024
Description of suggested change: Add CSS per Recommendations for night mode compatibility on Wikimedia wikis Diff: Andumé (talk) 19:50, 22 June 2024 (UTC)
 * ✅ Sohom ( talk ) 20:16, 22 June 2024 (UTC)